马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
本帖最后由 sslas 于 2011-8-16 10:45 编辑 AX=13EB BX=0008 CX=0000 DX=0000 SP=0002 BP=0000 SI=0000 DI=0000
DS=13E9 ES=13D9 SS=13EB CS=13EC IP=001A NV UP EI PL NZ NA PO NC
13EC:001A B8004C MOV AX,4C00
-t
Program terminated normally
-d 13e9:0
13E9:0000 01 00 02 00 03 00 04 00-05 00 06 00 07 00 08 00 ................
13E9:0010 09 00 0A 00 0B 00 0C 00-0D 00 0E 00 0F 00 FF 00 ................
13E9:0020 02 30 04 00 03 00 02 00-01 00 00 00 00 00 00 00 .0..............
13E9:0030 B8 E9 13 8E D8 B8 EB 13-8E D0 BC 0A 00 BB 00 00 ................
13E9:0040 B9 04 00 FF 37 83 C3 02-E2 F9 B8 00 4C CD 21 00 ....7.......L.!.
13E9:0050 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
13E9:0060 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
13E9:0070 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
-d 13EB:0
13EB:0000 02 30 04 00 03 00 02 00-01 00 00 00 00 00 00 00 .0..............
13EB:0010 B8 E9 13 8E D8 B8 EB 13-8E D0 BC 0A 00 BB 00 00 ................
13EB:0020 B9 04 00 FF 37 83 C3 02-E2 F9 B8 00 4C CD 21 00 ....7.......L.!.
13EB:0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
13EB:0040 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
13EB:0050 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
13EB:0060 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
13EB:0070 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
上面是实验5第六题在debug中调试结果,题目是用push指令将a段中的前8个字型数据逆序存放到b段中
可答案不正确啊 代码如下:
assume cs:code,ss:b,ds:a
a segment
dw 1,2,3,4,5,6,7,8,9,0aH,0bH,0cH,0dH,0eH,0fH,0ffH
a ends
b segment
dw 0,0,0,0,0,0,0,0
b ends
code segment
start:mov ax,a
mov ds,ax
mov ax,b
mov ss,ax
mov sp,10
mov bx,0
mov cx,4
s:push [bx]
add bx,2
loop s
mov ax,4c00H
int 21H
code ends
end start
到底是那出错了呢?
|