Int 13h 用于低级磁盘服务,因此您可以直接读取或写入您想要的任何(我认为)硬盘(和软盘)扇区(功能 2 和 3)。
Int 21h 允许您进行更高级的文件操作(上面列出了其中一些操作)。查找第一个文件和第一个下一个文件查找与特定搜索模式匹配的文件(就像 Windows 的查找一样,因此您可以列出名称为“ab?c.e?d”的所有文件)。我不确定这些函数是否也列出了目录,您应该检查
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
发布评论
评论(1)
出于安全原因,FAT 可能受到操作系统的保护,所以我猜您无法读取/写入它。您仍然可以使用中断#21h(3D - 打开,3E - 关闭,3F - 读取,40 - 写入,42 - 查找,4E - 查找第一个文件,4F - 查找下一个文件)或 中断#13h。
Int 13h 用于低级磁盘服务,因此您可以直接读取或写入您想要的任何(我认为)硬盘(和软盘)扇区(功能 2 和 3)。
Int 21h 允许您进行更高级的文件操作(上面列出了其中一些操作)。查找第一个文件和第一个下一个文件查找与特定搜索模式匹配的文件(就像 Windows 的查找一样,因此您可以列出名称为“ab?c.e?d”的所有文件)。我不确定这些函数是否也列出了目录,您应该检查
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