检测点 10.1
assume cs:codestack segment
db 16 dup (0)
stack ends
code segment
start:
mov ax,stack
mov ss,ax
mov sp,16
mov ax,1000H;retf先变cs
push ax;push之后(sp)-2
mov ax,0000H;retf再变ip
push ax
retf
code ends
end start 本帖最后由 wen3126457 于 2021-12-28 21:50 编辑
assume cs:code
stack segment
db 16 dup(0)
stack ends
code segment
start: mov ax,stack
mov ss,ax
mov sp,16
mov ax,1000h ;把1000h压栈
push ax
mov ax,0 ;把0h压栈
push ax
retf ;POP = IP POP=CS JMP=1000:0
code ends
end start
页:
[1]