求大神看看error A2049: Illegal use of register error A2006: Phase error between pa
大神门啊,救救我这个菜鸟吧!!!王爽的书刚看完,这是课程设计2.错误的地方我标记了!!!我真想哭啊 ASSUME CS:DAI
DAI SEGMENT
PUSH CS
POP ES
MOV BX,OFFSET XIN7C
MOV AX,NOP7C-XIN7C
MOV DX,0
MOV BX,512
DIV BX
INC AL
MOV AH,3
MOV CH,0
MOV CL,1
MOV DH,0
MOV DL,0
INT 13H
MOV AX,4C00H
INT 21H
XIN7C:
XZLB0 DB '0): cong xin qi dong PC','$'
XZLB1 DB '1): yin dao winds xp','$'
XZLB2 DB '2): **\**\** **:**:**','$'
XZLB3 DB '3): she zhi VVVVVVV','$'
DTSJ DB '**\**\** **:**:**','$'
SJLB DB 9,8,7,4,2,0
XSLB DW XZLB0,XZLB1,XZLB2,XZLB3,0
BIAN DW CXQD,YDXT,XSSJ,SZSJ,BYAS,0
ASCMM DB 31H,32H,33H,34H,35H,0
XIANS:
PUSH CS
POP DS
MOV AX,0B800H
MOV ES,AX
MOV DI,0
MOV CX,4000
QING:
MOV BYTE PTR ES:[DI],' '
ADD DI,2
LOOP QING
MOV SI,0
MOV CL,8
KAIS: CALL BIJIA
MOV AH,2
MOV BH,0
MOV DH,CL
MOV DL,28
INT 10H
MOV AH,9
MOV DX,XSLB[SI]
INT 21H
INC SI
INC SI
INC CL
INC CL
MOV CX,XSLB[SI]
JCXZ XIANS
JMP KAIS
BIJIA:
PUSH AX
PUSH BX
PUSH CX
PUSH DX
PUSH SI
PUSH DI
PUSH ES
IN AL,60H
MOV AH,0
MOV SI,0
BIJIA0:
MOV CL,ASCMM[SI]
CMP AL,CL
JNE SIJIA
JMP WORD PTR BIAN[SI]
SIJIA:
INC SI
INC SI
INC AH
MOV CX,BIAN[SI]
LOOP BIJIA0
POP ES
POP DI
POP SI
POP DX
POP CX
POP BX
POP AX
RET
CXQD:
MOV AX,0FFFFH
PUSH AX
MOV AX,0
PUSH AX
retf
YDXT:
MOV AX,0
MOV ES,AX
MOV BX,7E00H
MOV AH,2
MOV DL,80H
MOV DH,0
MOV CH,0
MOV CL,1
MOV AL,1
INT 13H
MOV AX,0
PUSH AX
MOV AX,7E00H
PUSH AX
retf
XSSJ:
MOV SI,0
MOV DI,0
MOV CX,6
XSSJ0:
CALL BIJIA
MOV AL,SJLB[SI]
OUT 70H,AL
IN AL,71H
MOV AH,AL
SHL AL,1
SHL AL,1
SHL AL,1
SHL AL,1
AND AH,0FH
MOV DTSJ[DI],AL
MOV DTSJ[DI+1],AH
INC SI
ADD DI,3
LOOP XSSJ0
MOV AH,2
MOV BH,0
MOV DH,24
MOV DL,50
INT 10H
MOV AH,9
MOV DL,DTSJ[0]
MOV DH,0
INT 21H
JMP XSSJ
SZSJ:
MOV DI,0B800H
MOV ES,DI
MOV DI,24*160+100
MOV CL,50
PAND:
MOV AH,0
INT 16H
CMP AH,4BH
JE ZUOY
CMP AH,4DH
JE YOUY
CMP AH,1CH
JE SZSJW
CMP AL,31H
JNB PAND
CMP AL,35H
JA PAND
SJZH:
MOV AH,2
MOV BH,0
MOV DH,24
MOV DL,CL
INT 10H
AND AL,0FH
错误 MOV BYTE PTR ES[DI],AL error A2049: Illegal use of register
JMP PAND
ZUOY: DEC DI
DEC DI
错误 MOV BYTE PTR CH,ES[DI] error A2049: Illegal use of register
CMP AL,' '
JNE ZUOY1
DEC DI
DEC DI
错误 MOV BYTE PTR CH,ES[DI] error A2049: Illegal use of register
CMP AL,' '
JE SZSJ
DEC CL
DEC CL
JMP PAND
错误 ZUOY1: error A2006: Phase error between passes
DEC CL
JMP PAND
YOUY: INC DI
INC DI
错误 MOV BYTE PTR CH,ES[DI] error A2049: Illegal use of register
CMP AL,' '
JNE YOUY1
INC DI
INC DI
错误 MOV BYTE PTR CH,ES[DI] error A2049: Illegal use of register
CMP AL,' '
JE SZSJ
INC CL
INC CL
JMP PAND
YOUY1: INC CL
JMP PAND
SZSJW: CALL PAND
MOV AX,0B800H
MOV ES,AX
MOV DI,24*160+100
MOV CX,6
MOV BX,0
错误 SZSJ1: error A2006: Phase error between passes
错误 MOV AH,ES[DI] error A2049: Illegal use of register
错误 MOV AL,ES[DI+2] error A2049: Illegal use of register
SHL AH,1
SHL AH,1
SHL AH,1
SHL AH,1
ADD AH,AL
MOV AL,SJLB[BX]
OUT 70H,AL
MOV AL,AH
OUT 71H,AL
INC BX
ADD DI,6
LOOP SZSJ1
JMP XSSJ
BYAS:
MOV AX,0B800H
MOV ES,AX
MOV DI,24*160+101
MOV CX,11
BYAS1:
INC BYTE PTR ES:[DI]
INC DI
INC DI
LOOP BYAS1
JMP XSSJ
NOP7C:
NOP
DAI ENDS
END