This commit is contained in:
iridiumR 2022-05-19 19:31:06 +08:00
parent 4d21606755
commit 1ef1a4c62f
14 changed files with 295 additions and 364 deletions

View file

@ -1,4 +1,4 @@
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/07/2022 19:38:26 PAGE 1 BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 19:29:35 PAGE 1
BL51 BANKED LINKER/LOCATER V6.22.2.0, INVOKED BY: BL51 BANKED LINKER/LOCATER V6.22.2.0, INVOKED BY:
@ -41,16 +41,15 @@ LINK MAP OF MODULE: .\Objects\MCU_1 (MAIN)
XDATA 0000H 0601H UNIT ?XD?DISPLAY XDATA 0000H 0601H UNIT ?XD?DISPLAY
XDATA 0601H 007BH UNIT ?XD?FOOD XDATA 0601H 007BH UNIT ?XD?FOOD
XDATA 067CH 0079H UNIT ?XD?SNAKE XDATA 067CH 0079H UNIT ?XD?SNAKE
XDATA 06F5H 0004H UNIT ?XD?TEST?DISPLAY XDATA 06F5H 000AH UNIT _XDATA_GROUP_
XDATA 06F9H 0004H UNIT ?XD?LOGICJUDGE?FOOD XDATA 06FFH 0004H UNIT ?XD?LOGICJUDGE?FOOD
XDATA 06FDH 0004H UNIT ?XD?RAND?RAND XDATA 0703H 0004H UNIT ?XD?RAND?RAND
XDATA 0701H 0004H UNIT _XDATA_GROUP_ XDATA 0707H 0003H UNIT ?XD?BODY_MOVE?SNAKE
XDATA 0705H 0003H UNIT ?XD?BODY_MOVE?SNAKE XDATA 070AH 0002H UNIT ?XD?SNAKE_MOVE?SNAKE
XDATA 0708H 0002H UNIT ?XD?SNAKE_MOVE?SNAKE XDATA 070CH 0002H UNIT ?XD?SNAKE_DRAW?SNAKE
XDATA 070AH 0002H UNIT ?XD?SNAKE_DRAW?SNAKE XDATA 070EH 0002H UNIT ?XD?FOOD_ADD?FOOD
XDATA 070CH 0002H UNIT ?XD?FOOD_ADD?FOOD XDATA 0710H 0002H UNIT ?XD?FOOD_DRAW?FOOD
XDATA 070EH 0002H UNIT ?XD?FOOD_DRAW?FOOD XDATA 0712H 0001H UNIT ?XD?_ADDDOT?DISPLAY
XDATA 0710H 0001H UNIT ?XD?_ADDDOT?DISPLAY
* * * * * * * C O D E M E M O R Y * * * * * * * * * * * * * * C O D E M E M O R Y * * * * * * *
CODE 0000H 0003H ABSOLUTE CODE 0000H 0003H ABSOLUTE
@ -59,35 +58,35 @@ LINK MAP OF MODULE: .\Objects\MCU_1 (MAIN)
CODE 08CFH 01A6H UNIT ?PR?LOGICJUDGE?FOOD CODE 08CFH 01A6H UNIT ?PR?LOGICJUDGE?FOOD
CODE 0A75H 011DH UNIT ?PR?DRAW?DISPLAY CODE 0A75H 011DH UNIT ?PR?DRAW?DISPLAY
CODE 0B92H 00DFH UNIT ?PR?FOOD_ADD?FOOD CODE 0B92H 00DFH UNIT ?PR?FOOD_ADD?FOOD
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/07/2022 19:38:26 PAGE 2
CODE 0C71H 00D8H UNIT ?PR?BODY_ADD?SNAKE CODE 0C71H 00D8H UNIT ?PR?BODY_ADD?SNAKE
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 19:29:35 PAGE 2
CODE 0D49H 00C5H UNIT ?PR?CLEAR?DISPLAY CODE 0D49H 00C5H UNIT ?PR?CLEAR?DISPLAY
CODE 0E0EH 00C5H UNIT ?PR?TEST?DISPLAY CODE 0E0EH 00BAH UNIT ?PR?TEST?DISPLAY
CODE 0ED3H 00ABH UNIT ?PR?SNAKE_MOVE?SNAKE CODE 0EC8H 00ABH UNIT ?PR?SNAKE_MOVE?SNAKE
CODE 0F7EH 0099H UNIT ?PR?SNAKE_DRAW?SNAKE CODE 0F73H 0099H UNIT ?PR?SNAKE_DRAW?SNAKE
CODE 1017H 008CH UNIT ?C_C51STARTUP CODE 100CH 008CH UNIT ?C_C51STARTUP
CODE 10A3H 007CH UNIT ?PR?FOOD_DRAW?FOOD CODE 1098H 007CH UNIT ?PR?FOOD_DRAW?FOOD
CODE 111FH 0061H UNIT ?PR?_ADDDOT?DISPLAY CODE 1114H 0061H UNIT ?PR?_ADDDOT?DISPLAY
CODE 1180H 0053H UNIT ?PR?_SADDDOT?DISPLAY CODE 1175H 0053H UNIT ?PR?_SADDDOT?DISPLAY
CODE 11D3H 004DH UNIT ?PR?RAND?RAND CODE 11C8H 004DH UNIT ?PR?RAND?RAND
CODE 1220H 0037H UNIT ?PR?SNAKE_INIT?SNAKE CODE 1215H 0037H UNIT ?PR?SNAKE_INIT?SNAKE
CODE 1257H 0029H UNIT ?PR?BODY_MOVE?SNAKE CODE 124CH 0029H UNIT ?PR?BODY_MOVE?SNAKE
CODE 1280H 0020H UNIT ?PR?_DELAY?DELAY CODE 1275H 0020H UNIT ?PR?_DELAY?DELAY
CODE 12A0H 001CH UNIT ?PR?INIT?DISPLAY CODE 1295H 001CH UNIT ?PR?INIT?DISPLAY
CODE 12BCH 0019H UNIT ?PR?WRITE?DISPLAY CODE 12B1H 0019H UNIT ?PR?WRITE?DISPLAY
CODE 12D5H 0012H UNIT ?PR?SNAKE_TEST?SNAKE CODE 12CAH 0012H UNIT ?PR?SNAKE_TEST?SNAKE
CODE 12E7H 000BH UNIT ?PR?MAIN?MAIN CODE 12DCH 000BH UNIT ?PR?MAIN?MAIN
CODE 12F2H 000BH UNIT ?PR?DELAY100US?DELAY CODE 12E7H 000BH UNIT ?PR?DELAY100US?DELAY
CODE 12FDH 0007H UNIT ?PR?CACHELOCK?DISPLAY CODE 12F2H 0007H UNIT ?PR?CACHELOCK?DISPLAY
CODE 1304H 0007H UNIT ?PR?_WRITEDATA?DISPLAY CODE 12F9H 0007H UNIT ?PR?_WRITEDATA?DISPLAY
CODE 130BH 0007H UNIT ?PR?_SETCOMMAND?DISPLAY CODE 1300H 0007H UNIT ?PR?_SETCOMMAND?DISPLAY
CODE 1312H 0007H UNIT ?PR?_SETPAGE?DISPLAY CODE 1307H 0007H UNIT ?PR?_SETPAGE?DISPLAY
CODE 1319H 0007H UNIT ?PR?_SETLINE?DISPLAY CODE 130EH 0007H UNIT ?PR?_SETLINE?DISPLAY
CODE 1320H 0007H UNIT ?PR?_SETY?DISPLAY CODE 1315H 0007H UNIT ?PR?_SETY?DISPLAY
CODE 1327H 0006H UNIT ?PR?CACHEUNLOCK?DISPLAY CODE 131CH 0006H UNIT ?PR?CACHEUNLOCK?DISPLAY
CODE 132DH 0006H UNIT ?PR?CHECKLOCK?DISPLAY CODE 1322H 0006H UNIT ?PR?CHECKLOCK?DISPLAY
@ -104,7 +103,7 @@ SEGMENT XDATA_GROUP
?PR?MAIN?MAIN ----- ----- ?PR?MAIN?MAIN ----- -----
+--> ?PR?INIT?DISPLAY +--> ?PR?INIT?DISPLAY
+--> ?PR?CLEAR?DISPLAY +--> ?PR?CLEAR?DISPLAY
+--> ?PR?DRAW?DISPLAY +--> ?PR?TEST?DISPLAY
?PR?INIT?DISPLAY ----- ----- ?PR?INIT?DISPLAY ----- -----
+--> ?PR?WRITE?DISPLAY +--> ?PR?WRITE?DISPLAY
@ -112,16 +111,20 @@ SEGMENT XDATA_GROUP
?PR?WRITE?DISPLAY ----- ----- ?PR?WRITE?DISPLAY ----- -----
+--> ?PR?_DELAY?DELAY +--> ?PR?_DELAY?DELAY
?PR?CLEAR?DISPLAY 0701H 0004H ?PR?CLEAR?DISPLAY 06F5H 0004H
+--> ?PR?WRITE?DISPLAY +--> ?PR?WRITE?DISPLAY
?PR?DRAW?DISPLAY 0701H 0004H ?PR?TEST?DISPLAY 06F5H 0006H
+--> ?PR?CACHELOCK?DISPLAY
+--> ?PR?DRAW?DISPLAY
?PR?DRAW?DISPLAY 06FBH 0004H
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 19:29:35 PAGE 3
+--> ?PR?WRITE?DISPLAY +--> ?PR?WRITE?DISPLAY
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/07/2022 19:38:26 PAGE 3
SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN) SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
@ -134,156 +137,155 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
D:00B0H PUBLIC P3 D:00B0H PUBLIC P3
D:00A8H PUBLIC IE D:00A8H PUBLIC IE
D:00B8H PUBLIC IP D:00B8H PUBLIC IP
C:12E7H PUBLIC main C:12DCH PUBLIC main
D:0098H PUBLIC SCON D:0098H PUBLIC SCON
D:0088H PUBLIC TCON D:0088H PUBLIC TCON
D:00C8H PUBLIC T2CON D:00C8H PUBLIC T2CON
D:00D0H PUBLIC PSW D:00D0H PUBLIC PSW
------- PROC MAIN ------- PROC MAIN
C:12E7H LINE# 9 C:12DCH LINE# 10
C:12E7H LINE# 10 C:12DCH LINE# 11
C:12E7H LINE# 11 C:12DCH LINE# 12
C:12EAH LINE# 12 C:12DFH LINE# 13
C:12EDH LINE# 14 C:12E2H LINE# 15
C:12EDH LINE# 15 C:12E2H LINE# 16
C:12EDH LINE# 16 C:12E2H LINE# 18
C:12EDH LINE# 17 C:12E5H LINE# 19
C:12F0H LINE# 19
------- ENDPROC MAIN ------- ENDPROC MAIN
------- ENDMOD MAIN ------- ENDMOD MAIN
------- MODULE DELAY ------- MODULE DELAY
C:0000H SYMBOL _ICE_DUMMY_ C:0000H SYMBOL _ICE_DUMMY_
C:12F2H PUBLIC delay100us C:12E7H PUBLIC delay100us
C:1280H PUBLIC _delay C:1275H PUBLIC _delay
------- PROC DELAY100US ------- PROC DELAY100US
------- DO ------- DO
D:0007H SYMBOL i D:0007H SYMBOL i
D:0006H SYMBOL j D:0006H SYMBOL j
------- ENDDO ------- ENDDO
C:12F2H LINE# 3 C:12E7H LINE# 3
C:12F2H LINE# 4 C:12E7H LINE# 4
C:12F2H LINE# 7 C:12E7H LINE# 7
C:12F3H LINE# 8 C:12E8H LINE# 8
C:12F4H LINE# 9 C:12E9H LINE# 9
C:12F6H LINE# 10 C:12EBH LINE# 10
C:12F8H LINE# 12 C:12EDH LINE# 12
C:12F8H LINE# 13 C:12EDH LINE# 13
C:12FAH LINE# 14 C:12EFH LINE# 14
C:12FCH LINE# 15 C:12F1H LINE# 15
------- ENDPROC DELAY100US ------- ENDPROC DELAY100US
------- PROC _DELAY ------- PROC _DELAY
D:0006H SYMBOL n D:0006H SYMBOL n
------- DO ------- DO
D:0006H SYMBOL i D:0006H SYMBOL i
D:0004H SYMBOL j D:0004H SYMBOL j
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 19:29:35 PAGE 4
------- ENDDO ------- ENDDO
C:1280H LINE# 24 C:1275H LINE# 24
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/07/2022 19:38:26 PAGE 4 C:1275H LINE# 26
C:1275H LINE# 27
C:1280H LINE# 28
C:1280H LINE# 26 C:1294H LINE# 29
C:1280H LINE# 27
C:128BH LINE# 28
C:129FH LINE# 29
------- ENDPROC _DELAY ------- ENDPROC _DELAY
------- ENDMOD DELAY ------- ENDMOD DELAY
------- MODULE DISPLAY ------- MODULE DISPLAY
C:0000H SYMBOL _ICE_DUMMY_ C:0000H SYMBOL _ICE_DUMMY_
D:0090H PUBLIC P1 D:0090H PUBLIC P1
C:12FDH PUBLIC cacheLock C:12F2H PUBLIC cacheLock
D:00B0H PUBLIC P3 D:00B0H PUBLIC P3
C:0D49H PUBLIC clear C:0D49H PUBLIC clear
C:132DH PUBLIC checkLock C:1322H PUBLIC checkLock
D:00A8H PUBLIC IE D:00A8H PUBLIC IE
C:130BH PUBLIC _setCommand C:1300H PUBLIC _setCommand
D:00B8H PUBLIC IP D:00B8H PUBLIC IP
B:00B0H.0 PUBLIC RS B:00B0H.0 PUBLIC RS
X:0000H SYMBOL sDisplayCache X:0000H SYMBOL sDisplayCache
C:1320H PUBLIC _setY C:1315H PUBLIC _setY
C:1180H PUBLIC _sAddDot C:1175H PUBLIC _sAddDot
B:00B0H.1 PUBLIC RW B:00B0H.1 PUBLIC RW
C:1304H PUBLIC _writeData C:12F9H PUBLIC _writeData
X:0200H SYMBOL lock X:0200H SYMBOL lock
C:12C5H PUBLIC write C:12BAH PUBLIC write
C:0A75H PUBLIC draw C:0A75H PUBLIC draw
D:0098H PUBLIC SCON D:0098H PUBLIC SCON
D:0088H PUBLIC TCON D:0088H PUBLIC TCON
C:12A0H PUBLIC init C:1295H PUBLIC init
C:0E0EH PUBLIC test C:0E0EH PUBLIC test
B:00B0H.2 PUBLIC E B:00B0H.2 PUBLIC E
C:1312H PUBLIC _setPage C:1307H PUBLIC _setPage
X:0201H SYMBOL displayCache X:0201H SYMBOL displayCache
C:1125H PUBLIC _addDot C:111AH PUBLIC _addDot
B:00B0H.4 PUBLIC CSA B:00B0H.4 PUBLIC CSA
C:1319H PUBLIC _setLine C:130EH PUBLIC _setLine
B:00B0H.5 PUBLIC CSB B:00B0H.5 PUBLIC CSB
C:1327H PUBLIC cacheUnlock C:131CH PUBLIC cacheUnlock
D:00C8H PUBLIC T2CON D:00C8H PUBLIC T2CON
D:00D0H PUBLIC PSW D:00D0H PUBLIC PSW
------- PROC L?0078 ------- PROC L?0078
------- ENDPROC L?0078 ------- ENDPROC L?0078
------- PROC _ADDDOT ------- PROC _ADDDOT
X:0710H SYMBOL x X:0712H SYMBOL x
D:0005H SYMBOL y D:0005H SYMBOL y
C:1125H LINE# 20 C:111AH LINE# 20
C:112AH LINE# 21 C:111FH LINE# 21
C:112AH LINE# 22 C:111FH LINE# 22
C:1130H LINE# 24 C:1125H LINE# 24
C:117FH LINE# 25 C:1174H LINE# 25
------- ENDPROC _ADDDOT ------- ENDPROC _ADDDOT
------- PROC _SADDDOT ------- PROC _SADDDOT
D:0002H SYMBOL x D:0002H SYMBOL x
D:0003H SYMBOL y D:0003H SYMBOL y
C:1180H LINE# 27 C:1175H LINE# 27
C:1184H LINE# 28 BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 19:29:35 PAGE 5
C:1184H LINE# 29
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/07/2022 19:38:26 PAGE 5
C:11AEH LINE# 31 C:1179H LINE# 28
C:11B9H LINE# 32 C:1179H LINE# 29
C:11BFH LINE# 33 C:11A3H LINE# 31
C:11CBH LINE# 34 C:11AEH LINE# 32
C:11D2H LINE# 35 C:11B4H LINE# 33
C:11C0H LINE# 34
C:11C7H LINE# 35
------- ENDPROC _SADDDOT ------- ENDPROC _SADDDOT
------- PROC CACHELOCK ------- PROC CACHELOCK
C:12FDH LINE# 36 C:12F2H LINE# 36
C:12FDH LINE# 37 C:12F2H LINE# 37
C:12FDH LINE# 38 C:12F2H LINE# 38
C:1303H LINE# 39 C:12F8H LINE# 39
------- ENDPROC CACHELOCK ------- ENDPROC CACHELOCK
------- PROC CACHEUNLOCK ------- PROC CACHEUNLOCK
C:1327H LINE# 41 C:131CH LINE# 41
C:1327H LINE# 42 C:131CH LINE# 42
C:1327H LINE# 43 C:131CH LINE# 43
C:132CH LINE# 44 C:1321H LINE# 44
------- ENDPROC CACHEUNLOCK ------- ENDPROC CACHEUNLOCK
------- PROC CHECKLOCK ------- PROC CHECKLOCK
C:132DH LINE# 46 C:1322H LINE# 46
C:132DH LINE# 47 C:1322H LINE# 47
C:132DH LINE# 48 C:1322H LINE# 48
C:1332H LINE# 49 C:1327H LINE# 49
------- ENDPROC CHECKLOCK ------- ENDPROC CHECKLOCK
C:12BCH SYMBOL L?0077 C:12B1H SYMBOL L?0077
------- PROC L?0076 ------- PROC L?0076
------- ENDPROC L?0076 ------- ENDPROC L?0076
C:12BCH SYMBOL L?0077 C:12B1H SYMBOL L?0077
------- PROC WRITE ------- PROC WRITE
C:12C5H LINE# 51 C:12BAH LINE# 51
C:12C5H LINE# 52 C:12BAH LINE# 52
C:12C5H LINE# 53 C:12BAH LINE# 53
C:12C7H LINE# 54 C:12BCH LINE# 54
C:12C9H LINE# 55 C:12BEH LINE# 55
C:12CBH LINE# 56 C:12C0H LINE# 56
C:12D2H LINE# 57 C:12C7H LINE# 57
C:12D4H LINE# 58 C:12C9H LINE# 58
------- ENDPROC WRITE ------- ENDPROC WRITE
------- PROC DRAW ------- PROC DRAW
------- DO ------- DO
X:0701H SYMBOL i X:06FBH SYMBOL i
X:0703H SYMBOL j X:06FDH SYMBOL j
------- ENDDO ------- ENDDO
C:0A75H LINE# 60 C:0A75H LINE# 60
C:0A75H LINE# 61 C:0A75H LINE# 61
@ -297,11 +299,11 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
C:0A9AH LINE# 74 C:0A9AH LINE# 74
C:0A9AH LINE# 75 C:0A9AH LINE# 75
C:0A9AH LINE# 76 C:0A9AH LINE# 76
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 19:29:35 PAGE 6
C:0A9DH LINE# 77 C:0A9DH LINE# 77
C:0AA0H LINE# 78 C:0AA0H LINE# 78
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/07/2022 19:38:26 PAGE 6
C:0AA3H LINE# 80 C:0AA3H LINE# 80
C:0ABAH LINE# 81 C:0ABAH LINE# 81
C:0ABAH LINE# 82 C:0ABAH LINE# 82
@ -332,8 +334,8 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
------- ENDPROC DRAW ------- ENDPROC DRAW
------- PROC CLEAR ------- PROC CLEAR
------- DO ------- DO
X:0701H SYMBOL i X:06F5H SYMBOL i
X:0703H SYMBOL j X:06F7H SYMBOL j
------- ENDDO ------- ENDDO
C:0D49H LINE# 111 C:0D49H LINE# 111
C:0D49H LINE# 112 C:0D49H LINE# 112
@ -357,11 +359,11 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
C:0D9BH LINE# 132 C:0D9BH LINE# 132
C:0DABH LINE# 133 C:0DABH LINE# 133
C:0DADH LINE# 134 C:0DADH LINE# 134
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 19:29:35 PAGE 7
C:0DAFH LINE# 135 C:0DAFH LINE# 135
C:0DC6H LINE# 136 C:0DC6H LINE# 136
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/07/2022 19:38:26 PAGE 7
C:0DC6H LINE# 137 C:0DC6H LINE# 137
C:0DC6H LINE# 138 C:0DC6H LINE# 138
C:0DC6H LINE# 139 C:0DC6H LINE# 139
@ -379,109 +381,76 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
C:0E0DH LINE# 152 C:0E0DH LINE# 152
------- ENDPROC CLEAR ------- ENDPROC CLEAR
------- PROC INIT ------- PROC INIT
C:12A0H LINE# 154 C:1295H LINE# 154
C:12A0H LINE# 155 C:1295H LINE# 155
C:12A0H LINE# 156 C:1295H LINE# 156
C:12A2H LINE# 157 C:1297H LINE# 157
C:12A4H LINE# 158 C:1299H LINE# 158
C:12A6H LINE# 159 C:129BH LINE# 159
C:12A8H LINE# 160 C:129DH LINE# 160
C:12AAH LINE# 161 C:129FH LINE# 161
C:12ADH LINE# 162 C:12A2H LINE# 162
C:12B0H LINE# 164 C:12A5H LINE# 164
C:12B2H LINE# 165 C:12A7H LINE# 165
C:12B4H LINE# 166 C:12A9H LINE# 166
C:12B6H LINE# 167 C:12ABH LINE# 167
C:12B9H LINE# 168 C:12AEH LINE# 168
------- ENDPROC INIT ------- ENDPROC INIT
------- PROC TEST ------- PROC TEST
------- DO ------- DO
X:06F5H SYMBOL i X:06F5H SYMBOL i
X:06F7H SYMBOL j X:06F7H SYMBOL j
X:06F9H SYMBOL k
------- ENDDO ------- ENDDO
C:0E0EH LINE# 172 C:0E0EH LINE# 172
C:0E0EH LINE# 173 C:0E0EH LINE# 173
C:0E0EH LINE# 175 C:0E0EH LINE# 175
C:0E10H LINE# 176 C:0E15H LINE# 176
C:0E12H LINE# 177 C:0E1CH LINE# 177
C:0E29H LINE# 178 C:0E23H LINE# 178
C:0E29H LINE# 179 C:0EC2H LINE# 179
C:0E29H LINE# 180 C:0EC5H LINE# 180
C:0E29H LINE# 181
C:0E29H LINE# 182
C:0E2CH LINE# 183
C:0E2FH LINE# 184
C:0E32H LINE# 186
C:0E39H LINE# 187
C:0E39H LINE# 188
C:0E3BH LINE# 189
C:0E3DH LINE# 190
C:0E40H LINE# 191
C:0E43H LINE# 192
C:0E60H LINE# 193
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/07/2022 19:38:26 PAGE 8
C:0E70H LINE# 194
C:0E72H LINE# 195
C:0E74H LINE# 196
C:0E8BH LINE# 197
C:0E8BH LINE# 198
C:0E8BH LINE# 199
C:0E8BH LINE# 200
C:0E8BH LINE# 201
C:0E8EH LINE# 202
C:0E91H LINE# 203
C:0E94H LINE# 205
C:0E9BH LINE# 206
C:0E9BH LINE# 207
C:0E9DH LINE# 208
C:0E9FH LINE# 209
C:0EA2H LINE# 210
C:0EA5H LINE# 211
C:0EC2H LINE# 212
C:0ED2H LINE# 213
------- ENDPROC TEST ------- ENDPROC TEST
------- PROC _WRITEDATA ------- PROC _WRITEDATA
D:0007H SYMBOL d D:0007H SYMBOL d
C:1304H LINE# 216 C:12F9H LINE# 184
C:1304H LINE# 217 C:12F9H LINE# 185
C:1304H LINE# 218 C:12F9H LINE# 186
C:1306H LINE# 219 C:12FBH LINE# 187
C:1308H LINE# 220 C:12FDH LINE# 188
C:130AH LINE# 221 C:12FFH LINE# 189
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 19:29:35 PAGE 8
------- ENDPROC _WRITEDATA ------- ENDPROC _WRITEDATA
------- PROC _SETCOMMAND ------- PROC _SETCOMMAND
D:0007H SYMBOL d D:0007H SYMBOL d
C:130BH LINE# 223 C:1300H LINE# 191
C:130BH LINE# 224 C:1300H LINE# 192
C:130BH LINE# 225 C:1300H LINE# 193
C:130DH LINE# 226 C:1302H LINE# 194
C:130FH LINE# 227 C:1304H LINE# 195
C:1311H LINE# 228 C:1306H LINE# 196
------- ENDPROC _SETCOMMAND ------- ENDPROC _SETCOMMAND
------- PROC _SETPAGE ------- PROC _SETPAGE
D:0007H SYMBOL p D:0007H SYMBOL p
C:1312H LINE# 231 C:1307H LINE# 199
C:1312H LINE# 232 C:1307H LINE# 200
C:1312H LINE# 233 C:1307H LINE# 201
------- ENDPROC _SETPAGE ------- ENDPROC _SETPAGE
------- PROC _SETLINE ------- PROC _SETLINE
D:0007H SYMBOL p D:0007H SYMBOL p
C:1319H LINE# 236 C:130EH LINE# 204
C:1319H LINE# 237 C:130EH LINE# 205
C:1319H LINE# 238 C:130EH LINE# 206
------- ENDPROC _SETLINE ------- ENDPROC _SETLINE
------- PROC _SETY ------- PROC _SETY
D:0007H SYMBOL p D:0007H SYMBOL p
C:1320H LINE# 241 C:1315H LINE# 209
C:1320H LINE# 242 C:1315H LINE# 210
C:1320H LINE# 243 C:1315H LINE# 211
------- ENDPROC _SETY ------- ENDPROC _SETY
------- ENDMOD DISPLAY ------- ENDMOD DISPLAY
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/07/2022 19:38:26 PAGE 9
------- MODULE SNAKE ------- MODULE SNAKE
C:0000H SYMBOL _ICE_DUMMY_ C:0000H SYMBOL _ICE_DUMMY_
@ -490,65 +459,65 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
D:00A8H PUBLIC IE D:00A8H PUBLIC IE
X:067CH PUBLIC snake X:067CH PUBLIC snake
D:00B8H PUBLIC IP D:00B8H PUBLIC IP
C:0F7EH PUBLIC snake_draw C:0F73H PUBLIC snake_draw
C:1220H PUBLIC snake_init C:1215H PUBLIC snake_init
C:0ED3H PUBLIC snake_move C:0EC8H PUBLIC snake_move
D:0098H PUBLIC SCON D:0098H PUBLIC SCON
D:0088H PUBLIC TCON D:0088H PUBLIC TCON
C:12D5H PUBLIC snake_test C:12CAH PUBLIC snake_test
C:0C71H PUBLIC body_add C:0C71H PUBLIC body_add
X:06F4H PUBLIC len X:06F4H PUBLIC len
C:1257H PUBLIC body_move C:124CH PUBLIC body_move
D:00C8H PUBLIC T2CON D:00C8H PUBLIC T2CON
D:00D0H PUBLIC PSW D:00D0H PUBLIC PSW
------- PROC SNAKE_INIT ------- PROC SNAKE_INIT
C:1220H LINE# 8 C:1215H LINE# 8
C:1220H LINE# 9 C:1215H LINE# 9
C:1220H LINE# 11 C:1215H LINE# 11
C:1235H LINE# 12 C:122AH LINE# 12
C:1246H LINE# 13 C:123BH LINE# 13
C:1256H LINE# 15 C:124BH LINE# 15
------- ENDPROC SNAKE_INIT ------- ENDPROC SNAKE_INIT
------- PROC BODY_MOVE ------- PROC BODY_MOVE
X:0705H SYMBOL b BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 19:29:35 PAGE 9
C:1257H LINE# 17
C:1257H LINE# 18
C:1257H LINE# 19 X:0707H SYMBOL b
C:1268H LINE# 20 C:124CH LINE# 17
C:1268H LINE# 21 C:124CH LINE# 18
C:1268H LINE# 22 C:124CH LINE# 19
C:126BH LINE# 23 C:125DH LINE# 20
C:126DH LINE# 25 C:125DH LINE# 21
C:126DH LINE# 26 C:125DH LINE# 22
C:1270H LINE# 27 C:1260H LINE# 23
C:1272H LINE# 29 C:1262H LINE# 25
C:1272H LINE# 30 C:1262H LINE# 26
C:1278H LINE# 31 C:1265H LINE# 27
C:1279H LINE# 33 C:1267H LINE# 29
C:1279H LINE# 34 C:1267H LINE# 30
C:127FH LINE# 35 C:126DH LINE# 31
C:127FH LINE# 36 C:126EH LINE# 33
C:127FH LINE# 37 C:126EH LINE# 34
C:1274H LINE# 35
C:1274H LINE# 36
C:1274H LINE# 37
------- ENDPROC BODY_MOVE ------- ENDPROC BODY_MOVE
------- PROC SNAKE_MOVE ------- PROC SNAKE_MOVE
------- DO ------- DO
X:0708H SYMBOL i X:070AH SYMBOL i
------- ENDDO ------- ENDDO
C:0ED3H LINE# 39 C:0EC8H LINE# 39
C:0ED3H LINE# 40 C:0EC8H LINE# 40
C:0ED3H LINE# 41 C:0EC8H LINE# 41
C:0EDAH LINE# 42 C:0ECFH LINE# 42
C:0EF2H LINE# 43 C:0EE7H LINE# 43
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/07/2022 19:38:26 PAGE 10 C:0EE7H LINE# 45
C:0F08H LINE# 46
C:0F18H LINE# 47
C:0EF2H LINE# 45 C:0F38H LINE# 48
C:0F13H LINE# 46 C:0F38H LINE# 50
C:0F23H LINE# 47 C:0F62H LINE# 51
C:0F43H LINE# 48 C:0F72H LINE# 52
C:0F43H LINE# 50
C:0F6DH LINE# 51
C:0F7DH LINE# 52
------- ENDPROC SNAKE_MOVE ------- ENDPROC SNAKE_MOVE
------- PROC BODY_ADD ------- PROC BODY_ADD
C:0C71H LINE# 54 C:0C71H LINE# 54
@ -570,41 +539,41 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
C:0D33H LINE# 75 C:0D33H LINE# 75
C:0D34H LINE# 77 C:0D34H LINE# 77
C:0D34H LINE# 78 C:0D34H LINE# 78
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 19:29:35 PAGE 10
C:0D48H LINE# 79 C:0D48H LINE# 79
C:0D48H LINE# 80 C:0D48H LINE# 80
C:0D48H LINE# 81 C:0D48H LINE# 81
------- ENDPROC BODY_ADD ------- ENDPROC BODY_ADD
------- PROC SNAKE_DRAW ------- PROC SNAKE_DRAW
------- DO ------- DO
X:070AH SYMBOL i X:070CH SYMBOL i
------- ENDDO ------- ENDDO
C:0F7EH LINE# 83 C:0F73H LINE# 83
C:0F7EH LINE# 84 C:0F73H LINE# 84
C:0F7EH LINE# 85 C:0F73H LINE# 85
C:0F86H LINE# 86 C:0F7BH LINE# 86
C:0F91H LINE# 87 C:0F86H LINE# 87
C:0F9DH LINE# 88 C:0F92H LINE# 88
C:0FA9H LINE# 89 C:0F9EH LINE# 89
C:0FB5H LINE# 90 C:0FAAH LINE# 90
C:0FC1H LINE# 92 C:0FB6H LINE# 92
C:0FD9H LINE# 93 C:0FCEH LINE# 93
C:0FD9H LINE# 94 C:0FCEH LINE# 94
C:1006H LINE# 95 C:0FFBH LINE# 95
C:1016H LINE# 96 C:100BH LINE# 96
------- ENDPROC SNAKE_DRAW ------- ENDPROC SNAKE_DRAW
------- PROC SNAKE_TEST ------- PROC SNAKE_TEST
------- DO ------- DO
D:0004H SYMBOL i D:0004H SYMBOL i
------- ENDDO ------- ENDDO
C:12D5H LINE# 98 C:12CAH LINE# 98
C:12D5H LINE# 99 C:12CAH LINE# 99
C:12D5H LINE# 101 C:12CAH LINE# 101
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/07/2022 19:38:26 PAGE 11 C:12CDH LINE# 102
C:12CDH LINE# 103
C:12DBH LINE# 104
C:12D8H LINE# 102
C:12D8H LINE# 103
C:12E6H LINE# 104
------- ENDPROC SNAKE_TEST ------- ENDPROC SNAKE_TEST
------- ENDMOD SNAKE ------- ENDMOD SNAKE
@ -621,15 +590,18 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
C:0B92H PUBLIC food_add C:0B92H PUBLIC food_add
D:0088H PUBLIC TCON D:0088H PUBLIC TCON
X:067AH PUBLIC isGAMEOVER X:067AH PUBLIC isGAMEOVER
C:10A3H PUBLIC food_draw C:1098H PUBLIC food_draw
D:00C8H PUBLIC T2CON D:00C8H PUBLIC T2CON
X:067BH PUBLIC fCount X:067BH PUBLIC fCount
D:00D0H PUBLIC PSW D:00D0H PUBLIC PSW
------- PROC FOOD_ADD ------- PROC FOOD_ADD
------- DO ------- DO
X:070CH SYMBOL i X:070EH SYMBOL i
C:0BB0H SYMBOL Re C:0BB0H SYMBOL Re
------- ENDDO ------- ENDDO
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 19:29:35 PAGE 11
C:0B92H LINE# 11 C:0B92H LINE# 11
C:0B92H LINE# 12 C:0B92H LINE# 12
C:0B92H LINE# 13 C:0B92H LINE# 13
@ -645,26 +617,23 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
------- ENDPROC FOOD_ADD ------- ENDPROC FOOD_ADD
------- PROC FOOD_DRAW ------- PROC FOOD_DRAW
------- DO ------- DO
X:070EH SYMBOL i X:0710H SYMBOL i
------- ENDDO ------- ENDDO
C:10A3H LINE# 28 C:1098H LINE# 28
C:10A3H LINE# 29 C:1098H LINE# 29
C:10A3H LINE# 30 C:1098H LINE# 30
C:10AAH LINE# 31 C:109FH LINE# 31
C:10C2H LINE# 32 C:10B7H LINE# 32
C:10C2H LINE# 33 C:10B7H LINE# 33
C:10E1H LINE# 34 C:10D6H LINE# 34
C:10E1H LINE# 35 C:10D6H LINE# 35
C:110EH LINE# 36 C:1103H LINE# 36
C:111EH LINE# 37 C:1113H LINE# 37
------- ENDPROC FOOD_DRAW ------- ENDPROC FOOD_DRAW
------- PROC LOGICJUDGE ------- PROC LOGICJUDGE
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/07/2022 19:38:26 PAGE 12
------- DO ------- DO
X:06F9H SYMBOL i X:06FFH SYMBOL i
X:06FBH SYMBOL j X:0701H SYMBOL j
------- ENDDO ------- ENDDO
C:08CFH LINE# 39 C:08CFH LINE# 39
C:08CFH LINE# 40 C:08CFH LINE# 40
@ -690,6 +659,9 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
C:0A63H LINE# 66 C:0A63H LINE# 66
C:0A6BH LINE# 67 C:0A6BH LINE# 67
C:0A6BH LINE# 68 C:0A6BH LINE# 68
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 19:29:35 PAGE 12
C:0A71H LINE# 70 C:0A71H LINE# 70
C:0A71H LINE# 71 C:0A71H LINE# 71
C:0A74H LINE# 72 C:0A74H LINE# 72
@ -713,15 +685,12 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
------- ENDMOD ?C?OFFXADD ------- ENDMOD ?C?OFFXADD
------- MODULE RAND ------- MODULE RAND
X:06FDH PUBLIC ?SRAND?BYTE X:0703H PUBLIC ?SRAND?BYTE
C:11D3H PUBLIC RAND C:11C8H PUBLIC RAND
C:1211H PUBLIC _SRAND C:1206H PUBLIC _SRAND
------- ENDMOD RAND ------- ENDMOD RAND
------- MODULE ?C?UIDIV ------- MODULE ?C?UIDIV
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/07/2022 19:38:26 PAGE 13
C:0862H PUBLIC ?C?UIDIV C:0862H PUBLIC ?C?UIDIV
------- ENDMOD ?C?UIDIV ------- ENDMOD ?C?UIDIV
@ -736,18 +705,12 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY100US?DELAY SEGMENT: ?PR?DELAY100US?DELAY
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?CACHELOCK?DISPLAY
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?CACHEUNLOCK?DISPLAY SEGMENT: ?PR?CACHEUNLOCK?DISPLAY
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?CHECKLOCK?DISPLAY SEGMENT: ?PR?CHECKLOCK?DISPLAY
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?TEST?DISPLAY
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_WRITEDATA?DISPLAY SEGMENT: ?PR?_WRITEDATA?DISPLAY
@ -756,6 +719,9 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_SETLINE?DISPLAY SEGMENT: ?PR?_SETLINE?DISPLAY
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 19:29:35 PAGE 13
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_SETY?DISPLAY SEGMENT: ?PR?_SETY?DISPLAY
@ -778,8 +744,5 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?LOGICJUDGE?FOOD SEGMENT: ?PR?LOGICJUDGE?FOOD
Program Size: data=9.0 xdata=1809 code=4915 Program Size: data=9.0 xdata=1811 code=4904
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/07/2022 19:38:26 PAGE 14 LINK/LOCATE RUN COMPLETE. 13 WARNING(S), 0 ERROR(S)
LINK/LOCATE RUN COMPLETE. 15 WARNING(S), 0 ERROR(S)

View file

@ -171,45 +171,13 @@ void init()
void test() void test()
{ {
unsigned int i, j; unsigned int i, j, k;
CSA = 1; for(i=0;i<2;i++)
CSB = 0; for(j=0;j<8;j++)
for(i = 0; i < 8; i++) for(k=0;k<64;k++)
{ displayCache[i][j][k]=0x55;
RS = 0; cacheLock();
RW = 0; draw();
P1 = 0xb8 + i;
write();
P1 = 0X40;
write();
for(j = 0; j < 64; j++)
{
RS = 1;
RW = 0;
P1 = 0x55;
write();
}
}
CSA = 0;
CSB = 1;
for(i = 0; i < 8; i++)
{
RS = 0;
RW = 0;
P1 = 0xb8 + i;
write();
P1 = 0X40;
write();
for(j = 0; j < 64; j++)
{
RS = 1;
RW = 0;
P1 = 0x55;;
write();
}
}
} }

View file

@ -1,7 +1,8 @@
#include "delay.h" #include "delay.h"
#include "main.h" #include "main.h"
#include "display.h" #include "display.h"
#include "snake.h"
#include "food.h"
extern unsigned char isGAMEOVER; extern unsigned char isGAMEOVER;
extern unsigned char isVICTROY; extern unsigned char isVICTROY;
@ -13,8 +14,7 @@ int main()
while(1) while(1)
{ {
if(!isGAMEOVER && !isVICTROY);
draw();
test();
} }
} }

View file

@ -1,4 +1,4 @@
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 20:42:31 PAGE 1 BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 19:17:47 PAGE 1
BL51 BANKED LINKER/LOCATER V6.22.2.0, INVOKED BY: BL51 BANKED LINKER/LOCATER V6.22.2.0, INVOKED BY:
@ -59,7 +59,7 @@ OVERLAY MAP OF MODULE: .\Objects\MCU_1 (MAIN)
SEGMENT XDATA_GROUP SEGMENT XDATA_GROUP
+--> CALLED SEGMENT START LENGTH +--> CALLED SEGMENT START LENGTH
----------------------------------------------- -----------------------------------------------
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 20:42:31 PAGE 2 BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 19:17:47 PAGE 2
?C_C51STARTUP ----- ----- ?C_C51STARTUP ----- -----
@ -119,7 +119,7 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
C:0000H SYMBOL _ICE_DUMMY_ C:0000H SYMBOL _ICE_DUMMY_
C:03EBH PUBLIC delay100us C:03EBH PUBLIC delay100us
C:038BH PUBLIC _delay C:038BH PUBLIC _delay
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 20:42:31 PAGE 3 BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 19:17:47 PAGE 3
------- PROC DELAY100US ------- PROC DELAY100US
@ -179,7 +179,7 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
D:00C8H PUBLIC T2CON D:00C8H PUBLIC T2CON
D:00D0H PUBLIC PSW D:00D0H PUBLIC PSW
C:03C7H SYMBOL L?0056 C:03C7H SYMBOL L?0056
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 20:42:31 PAGE 4 BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 19:17:47 PAGE 4
C:03CCH SYMBOL L?0057 C:03CCH SYMBOL L?0057
@ -239,7 +239,7 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
------- DO ------- DO
X:0088H SYMBOL i X:0088H SYMBOL i
X:008AH SYMBOL j X:008AH SYMBOL j
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 20:42:31 PAGE 5 BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 19:17:47 PAGE 5
------- ENDDO ------- ENDDO
@ -299,7 +299,7 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
C:03C1H LINE# 124 C:03C1H LINE# 124
C:03C4H LINE# 125 C:03C4H LINE# 125
------- ENDPROC INIT ------- ENDPROC INIT
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 20:42:31 PAGE 6 BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 19:17:47 PAGE 6
------- PROC TEST ------- PROC TEST
@ -359,7 +359,7 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
------- PROC _SETCOMMAND ------- PROC _SETCOMMAND
D:0007H SYMBOL d D:0007H SYMBOL d
C:03FDH LINE# 179 C:03FDH LINE# 179
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 20:42:31 PAGE 7 BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 19:17:47 PAGE 7
C:03FDH LINE# 180 C:03FDH LINE# 180