实验3 编程、编译、连接
(1)将书中给出的程序保存为t1.asm文件,将其生成可执行文件t1.exe
![](https://img-blog.csdnimg.cn/img_convert/7b110e179620b8e8bbc236aa91f31a2a.png)
![](https://img-blog.csdnimg.cn/img_convert/a9adbccf7f1cde5d9c21f511ea64e0be.png)
![](https://img-blog.csdnimg.cn/img_convert/31b67014694ca0bb718c80bf2e2b1daa.png)
(2)用debug跟踪t1.exe的执行过程,写出每一步执行后,相关寄存器中的内容和栈顶的内容
![](https://img-blog.csdnimg.cn/img_convert/158ca7b7d0b289f20a6b7021ad00f01f.png)
![](https://img-blog.csdnimg.cn/img_convert/da77131451acde9862b84f93e348a162.png)
执行至int 21H时,用p指令结束程序
显示"program terminated normally"表示程序已正常执行完毕
![](https://img-blog.csdnimg.cn/img_convert/42db6d30ef05f5b16e8af318ca8ef0c4.png)
(3)PSP的头两个字节是CD20,用debug加载t1.exe,查看PSP的内容
利用r命令查看寄存器内容
查看075a
![](https://img-blog.csdnimg.cn/img_convert/d91a08d6d114144677ed57c9b8d250b3.png)
(1)将书中给出的程序保存为t1.asm文件,将其生成可执行文件t1.exe
(2)用debug跟踪t1.exe的执行过程,写出每一步执行后,相关寄存器中的内容和栈顶的内容
执行至int 21H时,用p指令结束程序
显示"program terminated normally"表示程序已正常执行完毕
(3)PSP的头两个字节是CD20,用debug加载t1.exe,查看PSP的内容
利用r命令查看寄存器内容
查看075a