王爽第二版汇编实验5的问题
意思是将啊,b两个段的数分别对应相加,放到c段里,我的程序如下:assume cs:code
a segment
db 1,2,3,4,5,6,7,8
a ends
b segment
db 1,2,3,4,5,6,7,8
b ends
c segment
db 0,0,0,0,0,0,0,0
c ends
code segment
start:
mov ax,c
mov ds,ax
mov cx,8
mov bx,0
s:mov ax,a
mov es,ax
add [bx],es:[bx]
mov ax,b
mov es,ax
add [bx],es:[bx]
inc bx
loop s
code ends
end start
编译时报两个错误Improper operand type
小弟初学汇编,请大神指导~!