單片機編譯錯誤 error A45: UNDEFINED SYMBOL
MOV A,#FFH
Power.asm(118): error A45: UNDEFINED SYMBOL (PASS-2)
JBC P2.0,CXSM
LJMP CIRCLE
Power.asm(179): error A51: TARGET OUT OF RANGE
NDIV4: DJNZ B,NDIV2 提示錯誤:Power.asm(285): error A45: UNDEFINED SYMBOL (PASS-2)
CLR PSW.5
RET
答:
MOV A,#FFH
后面的16進制數(shù)字,不能以字母開頭。比如說 :B5H應(yīng)該寫成: 0B5H。FFH → 0FFH
后面的16進制數(shù)字,不能以字母開頭。比如說 :B5H應(yīng)該寫成: 0B5H。FFH → 0FFH
評論