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

View file

@ -171,45 +171,13 @@ void init()
void test()
{
unsigned int i, j;
CSA = 1;
CSB = 0;
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();
}
}
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();
}
}
unsigned int i, j, k;
for(i=0;i<2;i++)
for(j=0;j<8;j++)
for(k=0;k<64;k++)
displayCache[i][j][k]=0x55;
cacheLock();
draw();
}

View file

@ -1,7 +1,8 @@
#include "delay.h"
#include "main.h"
#include "display.h"
#include "snake.h"
#include "food.h"
extern unsigned char isGAMEOVER;
extern unsigned char isVICTROY;
@ -13,8 +14,7 @@ int main()
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:
@ -59,7 +59,7 @@ OVERLAY MAP OF MODULE: .\Objects\MCU_1 (MAIN)
SEGMENT XDATA_GROUP
+--> 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 ----- -----
@ -119,7 +119,7 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
C:0000H SYMBOL _ICE_DUMMY_
C:03EBH PUBLIC delay100us
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
@ -179,7 +179,7 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
D:00C8H PUBLIC T2CON
D:00D0H PUBLIC PSW
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
@ -239,7 +239,7 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
------- DO
X:0088H SYMBOL i
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
@ -299,7 +299,7 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
C:03C1H LINE# 124
C:03C4H LINE# 125
------- 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
@ -359,7 +359,7 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
------- PROC _SETCOMMAND
D:0007H SYMBOL d
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