我的老师给了我这个汇编代码来编写MC9S08SE8微芯片,但是由于语法错误我无法编译它。我一直在互联网上搜索,但我找不到与错误有关的内容,我不知道应该运行什么指令。
mainLoop:
INCLUDE 'MC9S08SE8.INC'
ORG Z_RAMStart
CH DC.B 0
ORG ROMStart
RST LDA #02
STA SOPT1
MOV #$FF,PTBDD
MOV #$FE,PTADD
MOV #0,SCIBDH
MOV #31,SCIBDL
MOV #$00,SCIC1
MOV #$0C,SCIC2
MOV #$80,PTBD
CLR CH
BRCLR 0,PTAD,*
BRA ASK
PREG BRCLR 7,PTBD,APAG
BRA ENC
ENC CLRH
CLRX
OT BRCLR 7,SCIS1,*
LDA ON,X
STA SCID
AIX #+1
CPX #9
BNE OT
BRA ASK
APAG CLRH
CLRX
OTR BRCLR 7,SCIS1,*
LDA OFF,X
STA SCID
AIX #+1
CPX #7
BNE OTR
BRA ASK
ASK 7,SCIS1,* ;Sintaxis error
LDA SCID
CMP #$30
BNE S
BCLR 7,PTBD
S CMP #$31
BNE SS
BSET 7,PTBD
SS CMP #$32
BNE ASK
BRA PREG
OFF DC.B $41,$70,$61,$67,$61,$64,$6F
ON DC.B $45,$6E,$63,$65,$6E,$64,$69,$64,$6F