1. 编译器不会用么?
2. 错误信息不会看?
E:\>masm cc.asm
Microsoft (R) Macro Assembler Version 5.00
Copyright (C) Microsoft Corp 1981-1985, 1987.
All rights reserved.
Object filename [cc.OBJ]:
Source listing
[NUL.LST]:
Cross-reference [NUL.CRF]:
cc.asm(3): error A2028: Operator expected
都告诉你第几行错了,自己不会搞?
cc.asm(4): error A2028: Operator expected
cc.asm(5): error A2028: Operator expected
cc.asm(6): error A2028: Operator expected
cc.asm(8): error A2028: Operator expected
cc.asm(11): error A2028: Operator expected
cc.asm(12): error A2107: Non-digit in number
50032 + 398096 Bytes symbol space free
0 Warning Errors
7 Severe
Errors
3. 能编译过的代码
程序代码:
assume cs:code
code segment
mov dx,0020
mov ds,dx
mov bx,0
mov cx,63
s:
mov ds:[bx],bx
inc bx
loop s
mov ax,4c00h
int 21h
code ends
end