王爽的汇编题,检测点6.1
用内存0-15的单元中内容改写程序的数据,用栈实现。
assume cs:codeseg
codeseg segment
dw 0123h,0456h,0789h,0abch,0defh,0fedh,0cbah,0987h
dw 0,0,0,0,0
start: mov ax,(cs)---填空
mov ss,ax
mov sp,(26)---填空
mov ax,0
mov ds,ax
mov bx,0
mov cx,8
s:
push [bx]
(pop cs:[bx])---填空
add bx,2
loop s
mov ax,4c00h
int 21h
codeseg ends
end start
一步步执行查看,数据确实被内存的0-15的数据改写了,但执行了完了后为什么只有
程序中的第一个数据被正确改写,其它的都不对?会的请帮忙看看,谢谢。