当前位置: 代码迷 >> 综合 >> 王爽汇编第二版第10章
  详细解决方案

王爽汇编第二版第10章

热度:68   发布时间:2024-01-16 02:07:34.0

ret ----------------->pop    ip

retf------------------>pop ip   pop cs

检测点10.1

补全程序,实现从内存1000:0000处开始执行指令

assume cs:code

stack segment
    db 16 dup(0)
stack ends

code segment
start:    mov ax,stack    
        mov ss,ax
        mov sp,16
        mov ax,1000h
        push ax
        mov ax,0
        push ax
        retf
code ends
end start


检测点10.2

下面的程序执行后,ax中的数值为0006H

检测点10.3

ax = 1010H

检测点10.4

ax = 000BH

执行call指令时,进行两步操作:

1.将当前的IP或CS和IP压入栈中;

2.转移。

执行完call指令后,栈顶元素为IP或CS+IP


乘法指令mul

两个相乘的数,同8位或同16位,一个默认放在Al或者Ax中

结果默认放在Ax,或者放在DX+Ax中



  相关解决方案