当前位置: 代码迷 >> 汇编语言 >> 不明白以下代码的运行结果。该怎么解决
  详细解决方案

不明白以下代码的运行结果。该怎么解决

热度:7611   发布时间:2013-02-26 00:00:00.0
不明白以下代码的运行结果。。
(1)进入debug
C:\debug 回车

(2)输入程序并汇编
-A 100 回车
0AF0:0100 mov dl,65 回车
0AF0:0102 mov ah,2 回车
0AF0:0104 int 21h 回车
0AF0:0106 int 20h 回车
0AF0:0108 回车
(3)运行程序
-g=100
e
Program terminated normally

请问ascii码中的65不是代表字符A吗?为什么最后会是输出e而不是A?

------解决方案--------------------------------------------------------
探讨
(1)进入debug
C:\debug 回车

(2)输入程序并汇编
-A 100 回车
0AF0:0100 mov dl,65 回车
0AF0:0102 mov ah,2 回车
0AF0:0104 int 21h 回车
0AF0:0106 int 20h 回车
0AF0:0108 回车
(3)运行程序
-g=100
e
Program terminated normal……
  相关解决方案