data1 segment
aa DB dup(10)
data1 ends
stack segment stack
db 100 dup(0)
stack ends
code segment
assume cs:code;ds:data1;ss:stack
start:
mov ax,data1
mov ds,ax
xor ax,ax
mov bx,ax
mov cx,10
don: mov al,[aa+bx]
inc bx
loop don
code ends
end start
在编译时一直有错