assume cs:code
code segment
dw 0123h,0456h,0789h,0abch,0defh,0fedh,0cbah,0987h
dw 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
start:
mov ax,cs
mov ss,ax
mov sp,30h
mov cx,10h
mov bx,0
s:
mov al,0
mov ah,cs:[bx]
push ax
inc bx
inc sp
loop s
mov cx,10h
mov bx,0
s0:
sub sp,1
pop ax
mov al,0
mov cs:[bx],ah
inc bx
loop s0
mov ax,4c00h
int 21h
code ends
end start
关键在于对sp寄存器的修改
〔汇编,数据逆存,王爽,6.2〕基于字节的数据的利用栈逆存放,而非字
最新推荐文章于 2024-09-11 22:55:35 发布