检测点16.1
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[0],ax
adc word ptr b[2],0
add si,2
loop s
mov ax,4c00h
int 21h
code ends
end start
检测16.2
assume cs:code,es:data
data segment
a db 1,2,3,4,5,6,7,8
b dw 0
data ends
code segment
start: mov ax,data
mov es,ax
mov si,0
mov cx,8
s: mov al,a[si]
mov ah,0
add b,ax
inc si
loop s
mov ax,4c00h
int 21h
code ends
end start
- [tomato] 对了就对了,那就没问题了。 11/30 21:10
- [mantuluo] 对了,怎么了? 11/30 19:27
- [tomato] 运行结果对了吗? 11/30 18:35
- [tomato] 对了。 11/30 18:35
- [tomato] 没问题。 11/28 22:06
- [tomato] 建议发上来啊,大家帮你检查一下,给你找找毛病哈! 11/25 19:13
- [tomato] 这个程序照葫芦画瓢就可以了哈! 11/25 19:12
- [mantuluo] 前面的都完成了,只是忘了提交 11/25 11:54
- [tomato] 怎么第一篇博文就是到第11章了呢?前面的都完成了吗? 11/24 20:59