预备知识:
(1)
ret :修改IP IP = SS*16 + SP SP+=2
retf :修改CS,IP IP = SS*16 + SP ,SP+=2 , CS = SS*16 + SP , SP+=2
Source Code:
assume cs:code stack segment db 16 dup (0) stack ends code segment mov ax,4c00H int 21H start: mov ax,stack mov ss,ax mov sp,16 push ax mov bx,0 ret code ends end start
时间: 2024-11-20 19:52:02