push只能保存16位寄存器不能保存8位寄存器 push ah这都是违法的
功能是备份和还原数据
.MODEL SMALL
.STACK 64
;******************************************
.DATA
;******************************************
.CODE
MAIN PROC FAR
mov ax,@data
mov ds,ax
mov es,ax
mov dl,'G'
push dx
mov dl,'F'
mov ah,02h
int 21h
;if you can't see the output,please take following two lines effect
mov ah,0AH
int 21h
;return DOS
mov ax,4C00H
int 21h
MAIN ENDP
END MAIN ;set entry point