8279

[Keil u]Compiler失敗了!!請幫看一下程式碼

以下程式碼DR_ADDR_8279EQU8060HIR_ADDR_8279EQU8061HKEY_CODEEQU20HKEY_CODE12EQU21HKEY_CODE34EQU22HKEY_CODE56EQU23HKEY_CODE78EQU24H;ORG00HJMPSTARTORG30HMOVSP

#70HSTART:MOVKEY_CODE12

#00HMOVKEY_CODE34

#00HMOVKEY_CODE56

#00HMOVKEY_CODE78

#00HINC_NUMBER:CLRCYCLRACCALLINC_KEY_CODEDISP_NUMBER:CALLINIT_8279MOVA

KEY_CODE78CALLDISP_Ato7SMOVA

KEY_CODE56CALLDISP_Ato7SMOVA

KEY_CODE34CALLDISP_Ato7SMOVA

KEY_CODE12CALLDISP_Ato7SCALLDELAY_xSJMPINC_NUMBER;INIT_8279:MOVA

#00010000BMOVDPTR

#IR_ADDR_8279MOVX*DPTR

AMOVA

#00110100BMOVX*DPTR

AMOVA

#11011111BMOVX*DPTR

ANOT_CLEAR_OK:MOVXA

*DPTRJBACC.7

NOT_CLEAR_OKMOVA

#01000000BMOVX*DPTR

AMOVA

#10010000BMOVX*DPTR

ARET;CONVERT_DISP_CODE:MOVA

KEY_CODEMOVDPTR

#CODE_TABLEMOVCA

*A DPTRMOVDISP_CODE

ARET;DISP:MOVA

DISP_CODEMOVDPTR

#DR_ADDR_8279MOVX*DPTR

ARET;INC_KEY_CODE:MOVA

KEY_CODE12INCADAAMOVKEY_CODE12

AMOVA

KEY_CODE34ADDCA

#0DAAMOVKEY_CODE34

AMOVA

KEY_CODE56ADDCA

#0DAAMOVKEY_CODE56

AMOVA

KEY_CODE78ADDCA

#0DAAMOVKEY_CODE78

ARET;DISP_Ato7S:PUSHACCANLA

#F0HSWAPAMOVKEY_CODE

ACALLCONVERT_DISP_CODECALLDISPPOPACCANLA

#0FHMOVKEY_CODE

ACALLCONVERT_DISP_CODECALLDISPRET;DELAY_xS:MOVR7

#01LOOP3:MOVR6

#200LOOP2:MOVR5

#248NOPLOOP11:DJNZR5

LOOP11 DJNZR6

LOOP2DJNZR7

LOOP3RET;CODE_TABLE:DB11000000B;0DB11111001B;1DB10100100B;2DB10110000B;3DB10011001B;4DB10010010B;5DB10000010B;6DB11111000B;7DB10000000B;8DB10010000B;9DB10001000B;ADB10000011B;BDB11000110B;CDB10100001B;DDB10000110B;EDB10001110B;FDB0C0H

0F9H

0A4H

0B0HDB99H

92H

82H

0F8HDB80H

90H

88H

83HDB0C6H

0A1H

86H

8EH;END以下為偵錯碼:Build target

8201無敵 發表在 痞客邦 留言(0) 人氣()