下面的程序将code段中a处的8个数据累加,结果存储到b处的dword中,补全程序。
assume cs:code
code segment
a dw 1,2,3,4,5,6,7,8
b dd 0
start:
mov si,0
mov cx,8
s: mov ax,a[si]
add word ptr b,ax
adc word ptr b[2],0
add si,2
loop s
mov ax,4c00h
int 21h
code ends
end start
- [游客] 正确! 03/14 15:35
- [crazyman] 博主还需要在理解一下,因为你这么做应该是对这类标号的认识还不够清晰。 03/06 20:43
- [crazyman] add word ptr b,ax adc word ptr b[2],0 ========= 03/06 20:42
- [crazyman] 正确。这个题目也就是靠的一个细心劲。 03/06 20:38
- [crazyman] 不错,到后面用上中断的知识,就能够做一个控制退出的时间程序了。 02/26 17:54
- [tomato] 正确! 02/26 09:16
- [tomato] 正确! 02/26 09:01
- [游客] 努力啊! 02/25 09:00
- [游客] 正确! 02/25 08:59
- [游客] 嗯!对了. 02/25 08:57
- [cbf782082393] 高手求助求助 我需要求π值汇编程序 07/12 19:56