代码是:
assume cs:code, ds:data
code segment
start:
mov ax, 0
mov ds, ax
mov bx, 200h
mov cx, 64
mov dx, 0
s: mov [bx], dx
inc bx
inc dx
loop s
mov ax, 4c00h
int 21h
code ends
end start
报错为:sy1.asm(1) : error A2006: undefined symbol : data
请帮我改一下
------解决方案--------------------------------------------------------
assume cs:code, ds:data
data segment
data ends
code segment
start:
mov ax, data
mov ds, ax
mov bx, 200h
mov cx, 64
mov dx, 0
s: mov [bx], dx
inc bx
inc dx
loop s
mov ax, 4c00h
int 21h
code ends
end start