#2
wmf20142015-11-23 04:54
|
程序代码:
DATA SEGMENT
SQ1 DB 23H
SQ2 DB '?'
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
START: MOV AX,DATA
MOV DS,AX
MOV AL,SQ1
CMP AL,0
JGE BQ1
MOV SQ2,0FFH
JMP DONE
BQ1: JE BQ2
MOV SQ2,1
JMP DONE
BQ2 MOV SQ2,0
DONE: MOV AH,4CH
INT 21H
CODE ENDS
END START
SQ1 DB 23H
SQ2 DB '?'
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
START: MOV AX,DATA
MOV DS,AX
MOV AL,SQ1
CMP AL,0
JGE BQ1
MOV SQ2,0FFH
JMP DONE
BQ1: JE BQ2
MOV SQ2,1
JMP DONE
BQ2 MOV SQ2,0
DONE: MOV AH,4CH
INT 21H
CODE ENDS
END START
为什么执行后会出现:(11) undeclared label: JGE BQ1