ssume ds:data,cs:code
data segment
db 'welcome to masm'; db定义后字节型数据存储方式
data ends
code segment
start: mov ax,data; start的作用
mov ds,ax
mov ax,b800h
mov es,ax
mov bx,0
mov di,0
mov cx,16
s: mov al,[bx]
mov ah,02h
mov es:730h[di],ax
mov al,[bx]
mov ah,24h
mov es:7d0h[di],ax
mov al,[bx]
mov ah,71h
mov es:870h[di],ax
mov di,2
inc bx
loop s
mov ax,4c00h
int 21h
code ends
end start
-------------------------------------------------------
DEBUG上编译结果:Symbol not defined: B800H————这个不明白?谢谢回答!!
Source filename [.ASM]: p1
Object filename [p1.OBJ]:
Source listing [NUL.LST]:
Cross-reference [NUL.CRF]:
p1.ASM(10): error A2009: Symbol not defined: B800H
50602 + 445974 Bytes symbol space free
0 Warning Errors
1 Severe Errors
C:\DOCUME~1\ADMINI~1> |