摘要
利用PC汇编语言编写的莱单程序,要求程序能够在可执行文件加载执行完以后退回到菜单程序。文中对在DOS系统下内存管理分析的基础上,结合有关DOS的内存管理功能,得出:在用4BH功能之前,要首先在菜单程序的开头保存PSP的段地址,并用4AH功能修改菜单程序进入内存后所占内存空间的大小。文中在最后给出了一个实例程序,该程序在DOS3.30环境下运行通过。
sing 8086 assembly language to compile a menu program, it's needed to execute an executable file under loading by the menu program,and then back to the menu program. On the base of analysing the memory management under the DOS environment with the DOS's INT 21H function about the memory management,we can conclude that before using the INT 21H-4BH function,the segment of PSP must be kept at the begining of the menu program,and the size of memory that the menu program used must be modified by INT 21H-4AH function with the preserved PSP segment address. At the end of the article an example program is presented. This program can be executed sucessfully under the environment of DOS3. 30.
出处
《数据采集与处理》
CSCD
1994年第1期28-33,共6页
Journal of Data Acquisition and Processing
关键词
汇编语言
菜单
程序设计
program control
assembly language
microcomputers
memory contral block