Comment lire la table grasse dans le langage d'assemblage [fermé
Question
NC - Commandant Norton Je devrais écrire un programme comme NC. J'ai besoin d'accéder à la table grasse dans l'assemblage pour afficher des fichiers et des répertoires dans mon programme. Quelqu'un sait-il comment je peux accéder aux graisses dans l'assemblage (à la fois disquette et disque dur) quelles interruptions dois-je utiliser?
Merci d'avance.
La solution
Probably the FAT is protected by the OS for security reasons, so I guess you can't read/write it. You can still use the interrupt #21h (3D - open, 3E - close, 3F - read, 40 - write, 42 - seek, 4E - find first file, 4F - find next file) or the interrupt #13h.
Int 13h is for low level disk services, so you can directly read or write any (I think) hard disk's (and floppy's) sector you want (functions 2 and 3).
Int 21h allows you more high level file operations (some of which are listed above). Find first file and first next file find files that match a certain search pattern (just like windows's find, so you can list all files whose name is "ab?c.e?d"). I'm not sure if these functions list the directories too, you should check