马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
本帖最后由 sslas 于 2011-8-16 11:08 编辑 assume cs:code,ds:a,ss:b
code segment
start:mov ax,a
mov ds,ax
mov ax,b
mov ss,ax
mov sp,10h
mov bx,0
mov cx,8
s:push [bx]
add bx,2
loop s
mov ax,4c00H
int 21H
code ends
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
end start
代码是将a 段前8字型数据push 到b段中 代码是正确的 可有一个小疑问如下-r
AX=4C00 BX=0010 CX=0000 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=13C3 ES=13B1 SS=13C5 CS=13C1 IP=001D NV UP EI PL NZ AC PO NC
13C1:001D CD21 INT 21
-d 13c3:0
13C3:0000 01 00 02 00 03 00 04 00-05 00 06 00 07 00 08 00 ................
13C3:0010 09 00 0A 00 0B 00 0C 00-0D 00 0E 00 0F 00 FF 00 ................
13C3:0020 08 00 07 00 06 00 05 00-04 00 03 00 02 00 01 00 ................
13C3:0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
13C3:0040 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
13C3:0050 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
13C3:0060 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
13C3:0070 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
-d 13c5:0
13C5:0000 08 00 07 00 06 00 05 00-04 00 03 00 02 00 01 00 ................
13C5:0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
13C5:0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
13C5:0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
13C5:0040 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
13C5:0050 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
13C5:0060 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
13C5:0070 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
我定义cs ds ss都是相连的而且每个段都没有超过64kb 怎么在debug中 DS=13C3 SS=13C5 CS=13C1
那既然CS=13C1 ds 怎么不是13c2 ss怎么不是13c3呢?
|