所属分类:
压缩解压
开发工具:C/C++
文件大小:7KB
下载次数:16
上传日期:2006-01-11 13:22:17
说明: 在C语言中,可以用keep ( )函数将程序驻留内存。这个函数有两个参数:status和size。size为驻留内存长度,可以用size=_SS+_SP/16-_psp得到,当然这也是一种估算的方法,并不是精确值。函数执行完以后,出口状态信息保存在status中。比如,对于上面的例子,将“geninterrupt (0x60) ”改写成“keep(0,_SS+_SP/16-_psp) ”后再执行程序,这一段程序就被驻留,此后在其它的任何软件或程序设计中,只要用到了60H号中断,就会在屏幕上显示“This is an example!”的字样。要恢复系统对60H号中断的定义,只能重新启动计算机。
(in C language, we can keep () function will process the presence of memory. This function has two parameters : size and status. The presence of memory size for length, size = can be _SS _SP/16-_psp. of course, this is also an estimate, not exact values. After the implementation of function, export state information were stored in status. For example, the example above, "geninterrupt (0x60)" into a "keep (0, _SS _SP/16-_psp) "after the implementation of procedures, which have been a presence on the proceedings, then in any other software or program design, as long as the formerly used its interruption, will be displayed on the screen, "This is an example!" the words. To restore the system to fly the definition of interruption, only to restart your computer.)