648905586 发表于 2014-10-13 10:29:32

检测点10.5(2)问题

题目:下面的程序执行后,ax和bx的值是多少?
assume cs:codesg
stack segment
    dw 8 dup(0)
stack ends

codesg segment
    start:
    mov ax,stack
    mov ss,ax
    mov sp,10h
    mov word ptr ss:,offset s
    mov ss:,cs
    call dword ptr ss:
    nop
s: mov ax,offset s
    sub ax,ss:
    mov bx,cs
    sub bx,ss:

    mov ax,4c00h
    int 21h
codesg ends
end start

小靚同学Leon 发表于 2014-10-13 18:26:57

楼主不妨自己动手调试下

ilboyvm 发表于 2014-10-13 23:01:55

不会,帮楼主顶上去

avatar10010 发表于 2014-10-13 23:14:42

ilboyvm 发表于 2014-10-13 23:01
不会,帮楼主顶上去
这问题。。。。
进入debug后先g再r就完事了

大个的糖果 发表于 2014-11-1 04:51:52

Ъγ:_小ツ雨oο 发表于 2014-11-1 11:12:50

去 百度 你这个标题。我 刚百度过 ,。刚把这题弄懂了 懒得解释~找BAIDU
页: [1]
查看完整版本: 检测点10.5(2)问题