|
《在线等待》这个程序怎么就不能通过呢?
DATA SEGMENT
BBUF DB 86H
ABUF DB 2 DUP(0)
DATA ENDS
STACK1 SEGMENT PARA STACK
DW 20H DUP(0)
STACK1 ENDS
CODE SEGMENT
PROC1 PROC FAR
ASSUME CS:CODE,DS:DATA,SS:STACK1
START: PUSH DS
MOV AX,0
PUSH AX
MOV AX,DATA
MOV DS,AX
MOV AL,BBUF
MOV BL,AL
MOV CL,4
SHR BL,CL
ADD BL,30H
MOV ABUF,BL
AND AL,0FH
ADD AL,30H
MOV ABUF+1,AL
RET
PROC1 ENDP
CODE ENDS
END START
出错信息:
# nasm -f elf 1.asm
1.asm:1: error: parser: instruction expected
1.asm:3: error: comma expected after operand 1
1.asm:4: error: symbol `DATA' redefined
1.asm:4: error: parser: instruction expected
1.asm:6: error: comma expected after operand 1
1.asm:7: error: symbol `STACK1' redefined
1.asm:7: error: parser: instruction expected
1.asm:8: error: parser: instruction expected
1.asm:9: error: parser: instruction expected
1.asm:10: error: parser: instruction expected
1.asm:26: error: symbol `PROC1' redefined
1.asm:26: error: parser: instruction expected
1.asm:27: error: symbol `CODE' redefined
1.asm:27: error: parser: instruction expected
1.asm:28: error: parser: instruction expected
请高手指教~~~ |
|