第 16 章:直接定址表
检测点 16.1
assume cs:code
code segment
a dw 1,2,3,4,5,6,7,8 ; code:[0] ~ code:[15]
b dd 0 ; code:[16]~ code:[19]
start:
mov si,0
mov cx,8
s: mov ax,a[si] ; 将 a 中偏移量为 si 的内存单元按字送入 ax
add word ptr b[0],ax ; 与 bx 的低字相加
adc word ptr b[2],0 ; 与 bx 的高字相加
add si,2 ; ax 单位为字,因此偏移 2 个字节,偏移量的单位是字节
loop s
mov ax,4c00h
int 21h
code ends
end start检测 16.2
参考链接
实验 16 编写包含多个功能子程序的中断例程
参考链接
Last updated