关于监测点10.6(重发)
下面的程序执行后,ax和bx中的数值为多少?assume cs:codesg
stack segment
dw 8 dup(0)
stack ends
codesg segment
start:
mov ax,stack
mov ss,ax
mov sp,10h
mov word ptr ss:,offset s (ss:)=1ah
mov ss:,cs (ss:)=cs
call dword ptr ss: cs入栈,ip=19h入栈,转到cs:1ah处执行指令(ss:)=cs,(ss:)=ip
s:mov ax,offset s ax=1ah
sub ax,ss: ax=1ah-(ss:)=1ah-19h=1
mov bx,cs bx=cs=0c5bh
sub bx,ss: bx=cs-cs=0
mov ax,4c00h
int 21h
codesg ends
end start
为什么ss:=19h,为什么ss:=cs???求助啊!!!
页:
[1]