汇编网首页登录博客注册
tolearn的学习博客
博客首页博客互动【做检测题】论坛求助

我的博客

个人首页 |  我的文章 |  我的相册 |  我的好友 |  最新访客 |  文章收藏 |  论坛提问 |  友情链接 |  给我留言  
图片载入中
学习动态
友情链接

[2010-10-16 20:15] 第9章 实验8

assume cs:code
code segment
        mov ax,4c00h                ;cs:0 
        int 21h                        ;cs:3
start:        mov ax,0                ;cs:5 执行后:ip=ip+3=8
    s:        nop                ;cs:8 执行后:ip=ip+2=10再由eb f6可知 jmp 000;
        nop                        ;cs:9        
        mov di,offset s                ;cs:a 执行后:ip=ip+3=dH,di=8
        mov si,offset s2        ;cs:d 执行后:ip=ip+3=10,si=20
        mov ax,cs:[si]                ;cs:10 执行后:ip=ip+3=13,ax=f6ebH
        mov cs:[di],ax        ;cs:13 执行后:ip=ip+3=16,s处变为 eb f6
   s0:        jmp short s                :cs:16 
   s1:        mov ax,0                ;cs:18 
        int 21h                        ;cs:1b
        mov ax,0                ;cs:1d
   s2:        jmp short s1                ;cs:20
        nop                        ;cs:22
code ends
end start

分析:程序可以返回,仔细想想便知道了。
评论次数(0)  |  浏览次数(753)  |  类型(汇编作业) |  收藏此文  | 
 
 请输入验证码  (提示:点击验证码输入框,以获取验证码