文件名称:three
介绍说明--下载内容均来自于网络,请自行研究使用
全盘搜索程序
本程序要用到的 DOS 中断很少,仅为 4EH 和 4FH,功能是查找第一个匹配文件名和继续查找,编程难点是要用到类似于堆栈的数据结构,把找到的子目录名暂时存起来,等当前目录找完后在取出来,然后继续查找下一个目录,我用的方法是开一个缓冲区,定义一个指针,用来指向缓冲区结束的地方。用的是先进先出方式,为了节省空间,每个目录项长度不等长,由每项的前 2 个字节来指向前面一条目录项。
-Comprehensive search program to use this program to the DOS interrupt rarely, only 4EH and 4FH, function is to find the first matching file name and continue to find, programming difficulty is to use a stack data structure similar to a subdirectory found were temporarily kept up, such as the current directory to find after removing it, and then continue to look for a directory, I used method is to open a buffer zone, to define a pointer to the end of the buffer areas. Using a FIFO manner, in order to save space, each directory entry unequal length, the former two bytes to each point in front of a directory entry.
本程序要用到的 DOS 中断很少,仅为 4EH 和 4FH,功能是查找第一个匹配文件名和继续查找,编程难点是要用到类似于堆栈的数据结构,把找到的子目录名暂时存起来,等当前目录找完后在取出来,然后继续查找下一个目录,我用的方法是开一个缓冲区,定义一个指针,用来指向缓冲区结束的地方。用的是先进先出方式,为了节省空间,每个目录项长度不等长,由每项的前 2 个字节来指向前面一条目录项。
-Comprehensive search program to use this program to the DOS interrupt rarely, only 4EH and 4FH, function is to find the first matching file name and continue to find, programming difficulty is to use a stack data structure similar to a subdirectory found were temporarily kept up, such as the current directory to find after removing it, and then continue to look for a directory, I used method is to open a buffer zone, to define a pointer to the end of the buffer areas. Using a FIFO manner, in order to save space, each directory entry unequal length, the former two bytes to each point in front of a directory entry.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
three (2).txt
three.asm