修好了

This commit is contained in:
iridiumR 2022-05-05 21:32:33 +08:00
parent 0c4e5fd972
commit 10918aec98
5 changed files with 530 additions and 350 deletions

View file

@ -1,4 +1,4 @@
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 19:57:48 PAGE 1 BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 21:30:59 PAGE 1
BL51 BANKED LINKER/LOCATER V6.22.2.0, INVOKED BY: BL51 BANKED LINKER/LOCATER V6.22.2.0, INVOKED BY:
@ -14,7 +14,6 @@ INPUT MODULES INCLUDED:
.\Objects\delay.obj (DELAY) .\Objects\delay.obj (DELAY)
.\Objects\display.obj (DISPLAY) .\Objects\display.obj (DISPLAY)
C:\KEIL_V5\C51\LIB\C51L.LIB (?C_STARTUP) C:\KEIL_V5\C51\LIB\C51L.LIB (?C_STARTUP)
C:\KEIL_V5\C51\LIB\C51L.LIB (?C?UIDIV)
C:\KEIL_V5\C51\LIB\C51L.LIB (?C_INIT) C:\KEIL_V5\C51\LIB\C51L.LIB (?C_INIT)
@ -30,28 +29,28 @@ LINK MAP OF MODULE: .\Objects\MCU_1 (MAIN)
* * * * * * * X D A T A M E M O R Y * * * * * * * * * * * * * * X D A T A M E M O R Y * * * * * * *
XDATA 0000H 0060H UNIT ?XD?DISPLAY XDATA 0000H 0060H UNIT ?XD?DISPLAY
XDATA 0060H 0006H UNIT _XDATA_GROUP_ XDATA 0060H 0004H UNIT ?XD?TEST?DISPLAY
XDATA 0066H 0004H UNIT ?XD?MAIN XDATA 0064H 0004H UNIT _XDATA_GROUP_
XDATA 006AH 0004H UNIT ?XD?TEST?DISPLAY XDATA 0068H 0002H UNIT ?XD?MAIN
* * * * * * * 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
CODE 0003H 0123H UNIT ?PR?_NAME?DISPLAY CODE 0003H 0104H UNIT ?PR?_NAME?DISPLAY
CODE 0126H 00D7H UNIT ?PR?CLEAR?DISPLAY CODE 0107H 00D7H UNIT ?PR?CLEAR?DISPLAY
CODE 01FDH 00D7H UNIT ?PR?TEST?DISPLAY CODE 01DEH 00D7H UNIT ?PR?MINICLEAR?DISPLAY
CODE 02D4H 008CH UNIT ?C_C51STARTUP CODE 02B5H 00D7H UNIT ?PR?TEST?DISPLAY
CODE 0360H 0069H UNIT ?C_INITSEG CODE 038CH 008CH UNIT ?C_C51STARTUP
CODE 03C9H 0055H UNIT ?C?LIB_CODE CODE 0418H 006EH UNIT ?C_INITSEG
CODE 041EH 003BH UNIT ?PR?MAIN?MAIN CODE 0486H 0034H UNIT ?PR?WRITE?DISPLAY
CODE 0459H 0028H UNIT ?PR?WRITE?DISPLAY CODE 04BAH 0024H UNIT ?PR?MAIN?MAIN
CODE 0481H 0020H UNIT ?PR?_DELAY?DELAY CODE 04DEH 0020H UNIT ?PR?_DELAY?DELAY
CODE 04A1H 001CH UNIT ?PR?INIT?DISPLAY CODE 04FEH 001CH UNIT ?PR?INIT?DISPLAY
CODE 04BDH 000BH UNIT ?PR?DELAY100US?DELAY CODE 051AH 000BH UNIT ?PR?DELAY100US?DELAY
CODE 04C8H 0007H UNIT ?PR?_WRITEDATA?DISPLAY CODE 0525H 0007H UNIT ?PR?_WRITEDATA?DISPLAY
CODE 04CFH 0007H UNIT ?PR?_SETCOMMAND?DISPLAY CODE 052CH 0007H UNIT ?PR?_SETCOMMAND?DISPLAY
CODE 04D6H 0007H UNIT ?PR?_SETPAGE?DISPLAY CODE 0533H 0007H UNIT ?PR?_SETPAGE?DISPLAY
CODE 04DDH 0007H UNIT ?PR?_SETLINE?DISPLAY CODE 053AH 0007H UNIT ?PR?_SETLINE?DISPLAY
CODE 04E4H 0007H UNIT ?PR?_SETY?DISPLAY CODE 0541H 0007H UNIT ?PR?_SETY?DISPLAY
@ -59,20 +58,20 @@ OVERLAY MAP OF MODULE: .\Objects\MCU_1 (MAIN)
SEGMENT XDATA_GROUP SEGMENT XDATA_GROUP
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 19:57:48 PAGE 2
+--> CALLED SEGMENT START LENGTH +--> CALLED SEGMENT START LENGTH
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 21:30:59 PAGE 2
----------------------------------------------- -----------------------------------------------
?C_C51STARTUP ----- ----- ?C_C51STARTUP ----- -----
+--> ?PR?MAIN?MAIN +--> ?PR?MAIN?MAIN
+--> ?C_INITSEG +--> ?C_INITSEG
?PR?MAIN?MAIN 0060H 0002H ?PR?MAIN?MAIN ----- -----
+--> ?PR?INIT?DISPLAY +--> ?PR?INIT?DISPLAY
+--> ?PR?CLEAR?DISPLAY +--> ?PR?CLEAR?DISPLAY
+--> ?PR?_NAME?DISPLAY +--> ?PR?_NAME?DISPLAY
+--> ?PR?_DELAY?DELAY +--> ?PR?MINICLEAR?DISPLAY
?PR?INIT?DISPLAY ----- ----- ?PR?INIT?DISPLAY ----- -----
+--> ?PR?WRITE?DISPLAY +--> ?PR?WRITE?DISPLAY
@ -80,10 +79,13 @@ SEGMENT XDATA_GROUP
?PR?WRITE?DISPLAY ----- ----- ?PR?WRITE?DISPLAY ----- -----
+--> ?PR?_DELAY?DELAY +--> ?PR?_DELAY?DELAY
?PR?CLEAR?DISPLAY 0062H 0004H ?PR?CLEAR?DISPLAY 0064H 0004H
+--> ?PR?WRITE?DISPLAY +--> ?PR?WRITE?DISPLAY
?PR?_NAME?DISPLAY 0062H 0004H ?PR?_NAME?DISPLAY 0064H 0003H
+--> ?PR?WRITE?DISPLAY
?PR?MINICLEAR?DISPLAY 0064H 0004H
+--> ?PR?WRITE?DISPLAY +--> ?PR?WRITE?DISPLAY
@ -99,55 +101,48 @@ 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:041EH PUBLIC main C:04BAH PUBLIC main
X:0068H PUBLIC line
D:0098H PUBLIC SCON D:0098H PUBLIC SCON
D:0088H PUBLIC TCON D:0088H PUBLIC TCON
D:00C8H PUBLIC T2CON D:00C8H PUBLIC T2CON
X:0066H PUBLIC i
X:0068H PUBLIC j
D:00D0H PUBLIC PSW D:00D0H PUBLIC PSW
------- PROC MAIN ------- PROC MAIN
------- DO C:04BAH LINE# 13
X:0060H SYMBOL line C:04BAH LINE# 14
------- ENDDO C:04BAH LINE# 15
C:041EH LINE# 14 C:04BDH LINE# 16
C:041EH LINE# 15 C:04C0H LINE# 18
C:041EH LINE# 16 C:04C0H LINE# 19
C:0421H LINE# 17 C:04C0H LINE# 21
C:0424H LINE# 19 C:04CBH LINE# 22
C:0424H LINE# 20 C:04CEH LINE# 23
C:0424H LINE# 21 C:04DCH LINE# 25
C:042BH LINE# 22
C:0430H LINE# 23
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 19:57:48 PAGE 3
C:043EH LINE# 24
C:044AH LINE# 25
C:0450H LINE# 26
C:0457H LINE# 28
------- ENDPROC MAIN ------- ENDPROC MAIN
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 21:30:59 PAGE 3
------- ENDMOD MAIN ------- ENDMOD MAIN
------- MODULE DELAY ------- MODULE DELAY
C:0000H SYMBOL _ICE_DUMMY_ C:0000H SYMBOL _ICE_DUMMY_
C:04BDH PUBLIC delay100us C:051AH PUBLIC delay100us
C:0481H PUBLIC _delay C:04DEH 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:04BDH LINE# 3 C:051AH LINE# 3
C:04BDH LINE# 4 C:051AH LINE# 4
C:04BDH LINE# 7 C:051AH LINE# 7
C:04BEH LINE# 8 C:051BH LINE# 8
C:04BFH LINE# 9 C:051CH LINE# 9
C:04C1H LINE# 10 C:051EH LINE# 10
C:04C3H LINE# 12 C:0520H LINE# 12
C:04C3H LINE# 13 C:0520H LINE# 13
C:04C5H LINE# 14 C:0522H LINE# 14
C:04C7H LINE# 15 C:0524H LINE# 15
------- ENDPROC DELAY100US ------- ENDPROC DELAY100US
------- PROC _DELAY ------- PROC _DELAY
D:0006H SYMBOL n D:0006H SYMBOL n
@ -155,11 +150,11 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
D:0006H SYMBOL i D:0006H SYMBOL i
D:0004H SYMBOL j D:0004H SYMBOL j
------- ENDDO ------- ENDDO
C:0481H LINE# 24 C:04DEH LINE# 24
C:0481H LINE# 26 C:04DEH LINE# 26
C:0481H LINE# 27 C:04DEH LINE# 27
C:048CH LINE# 28 C:04E9H LINE# 28
C:04A0H LINE# 29 C:04FDH LINE# 29
------- ENDPROC _DELAY ------- ENDPROC _DELAY
------- ENDMOD DELAY ------- ENDMOD DELAY
@ -167,271 +162,341 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
C:0000H SYMBOL _ICE_DUMMY_ C:0000H SYMBOL _ICE_DUMMY_
D:0090H PUBLIC P1 D:0090H PUBLIC P1
D:00B0H PUBLIC P3 D:00B0H PUBLIC P3
C:0126H PUBLIC clear C:0107H PUBLIC clear
X:0000H PUBLIC Z2 X:0000H PUBLIC Z2
D:00A8H PUBLIC IE D:00A8H PUBLIC IE
C:04CFH PUBLIC _setCommand C:052CH PUBLIC _setCommand
D:00B8H PUBLIC IP D:00B8H PUBLIC IP
C:0003H PUBLIC _name C:0003H PUBLIC _name
B:00B0H.0 PUBLIC RS B:00B0H.0 PUBLIC RS
C:04E4H PUBLIC _setY C:0541H PUBLIC _setY
B:00B0H.1 PUBLIC RW B:00B0H.1 PUBLIC RW
C:04C8H PUBLIC _writeData C:0525H PUBLIC _writeData
C:0471H PUBLIC write C:04AAH PUBLIC write
D:0098H PUBLIC SCON D:0098H PUBLIC SCON
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 19:57:48 PAGE 4
D:0088H PUBLIC TCON D:0088H PUBLIC TCON
C:04A1H PUBLIC init C:04FEH PUBLIC init
C:01FDH PUBLIC test C:01DEH PUBLIC miniclear
C:02B5H PUBLIC test
B:00B0H.2 PUBLIC E B:00B0H.2 PUBLIC E
C:04D6H PUBLIC _setPage BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 21:30:59 PAGE 4
C:0533H PUBLIC _setPage
B:00B0H.4 PUBLIC CSA B:00B0H.4 PUBLIC CSA
B:00B0H.5 PUBLIC CSB B:00B0H.5 PUBLIC CSB
C:04DDH PUBLIC _setLine C:053AH PUBLIC _setLine
X:0030H PUBLIC Z X:0030H PUBLIC Z
D:00C8H PUBLIC T2CON D:00C8H PUBLIC T2CON
D:00D0H PUBLIC PSW D:00D0H PUBLIC PSW
C:046BH SYMBOL L?0060 C:0486H SYMBOL L?0071
------- PROC L?0059 C:04A4H SYMBOL L?0072
------- ENDPROC L?0059 ------- PROC L?0070
C:046BH SYMBOL L?0060 ------- ENDPROC L?0070
C:0486H SYMBOL L?0071
C:04A4H SYMBOL L?0072
------- PROC WRITE ------- PROC WRITE
C:0471H LINE# 30 C:04AAH LINE# 30
C:0471H LINE# 31 C:04AAH LINE# 31
C:0471H LINE# 32 C:04AAH LINE# 32
C:0473H LINE# 33 C:04ACH LINE# 33
C:0475H LINE# 34 C:04AEH LINE# 34
C:0477H LINE# 35 C:04B0H LINE# 35
C:047EH LINE# 36 C:04B7H LINE# 36
C:0480H LINE# 37 C:04B9H LINE# 37
------- ENDPROC WRITE ------- ENDPROC WRITE
------- PROC _WRITEDATA ------- PROC _WRITEDATA
D:0007H SYMBOL d D:0007H SYMBOL d
C:04C8H LINE# 39 C:0525H LINE# 39
C:04C8H LINE# 40 C:0525H LINE# 40
C:04C8H LINE# 41 C:0525H LINE# 41
C:04CAH LINE# 42 C:0527H LINE# 42
C:04CCH LINE# 43 C:0529H LINE# 43
C:04CEH LINE# 44 C:052BH LINE# 44
------- ENDPROC _WRITEDATA ------- ENDPROC _WRITEDATA
------- PROC _SETCOMMAND ------- PROC _SETCOMMAND
D:0007H SYMBOL d D:0007H SYMBOL d
C:04CFH LINE# 46 C:052CH LINE# 46
C:04CFH LINE# 47 C:052CH LINE# 47
C:04CFH LINE# 48 C:052CH LINE# 48
C:04D1H LINE# 49 C:052EH LINE# 49
C:04D3H LINE# 50 C:0530H LINE# 50
C:04D5H LINE# 51 C:0532H LINE# 51
------- ENDPROC _SETCOMMAND ------- ENDPROC _SETCOMMAND
------- PROC _SETPAGE ------- PROC _SETPAGE
D:0007H SYMBOL p D:0007H SYMBOL p
C:04D6H LINE# 54 C:0533H LINE# 54
C:04D6H LINE# 55 C:0533H LINE# 55
C:04D6H LINE# 56 C:0533H LINE# 56
------- ENDPROC _SETPAGE ------- ENDPROC _SETPAGE
------- PROC _SETLINE ------- PROC _SETLINE
D:0007H SYMBOL p D:0007H SYMBOL p
C:04DDH LINE# 59 C:053AH LINE# 59
C:04DDH LINE# 60 C:053AH LINE# 60
C:04DDH LINE# 61 C:053AH LINE# 61
------- ENDPROC _SETLINE ------- ENDPROC _SETLINE
------- PROC _SETY ------- PROC _SETY
D:0007H SYMBOL p D:0007H SYMBOL p
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 19:57:48 PAGE 5 C:0541H LINE# 64
C:0541H LINE# 65
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 21:30:59 PAGE 5
C:04E4H LINE# 64 C:0541H LINE# 66
C:04E4H LINE# 65
C:04E4H LINE# 66
------- ENDPROC _SETY ------- ENDPROC _SETY
------- PROC _NAME ------- PROC _NAME
X:0062H SYMBOL line D:0006H SYMBOL line
------- DO ------- DO
X:0064H SYMBOL j X:0064H SYMBOL l
X:0065H SYMBOL j
------- ENDDO ------- ENDDO
C:0003H LINE# 69 C:0003H LINE# 69
C:000BH LINE# 70 C:0003H LINE# 70
C:000BH LINE# 72 C:0003H LINE# 71
C:000DH LINE# 73 C:000BH LINE# 74
C:000FH LINE# 75 C:002AH LINE# 75
C:0011H LINE# 76 C:002AH LINE# 76
C:0013H LINE# 77 C:0033H LINE# 77
C:0016H LINE# 78 C:0033H LINE# 78
C:0019H LINE# 79 C:0035H LINE# 79
C:001CH LINE# 80 C:0037H LINE# 80
C:001FH LINE# 82 C:0039H LINE# 81
C:0036H LINE# 83 C:003BH LINE# 82
C:0036H LINE# 84 C:003EH LINE# 83
C:0036H LINE# 85 C:0041H LINE# 84
C:0036H LINE# 86 C:004AH LINE# 85
C:0036H LINE# 87 C:004DH LINE# 87
C:0039H LINE# 88 C:004DH LINE# 88
C:0049H LINE# 90 C:004DH LINE# 89
C:004BH LINE# 91 C:004DH LINE# 90
C:004DH LINE# 92 C:0050H LINE# 92
C:0050H LINE# 93 C:0052H LINE# 93
C:0053H LINE# 94 C:0054H LINE# 94
C:0056H LINE# 95 C:0057H LINE# 95
C:0059H LINE# 97 C:005AH LINE# 96
C:0070H LINE# 98 C:0061H LINE# 97
C:0070H LINE# 99 C:0061H LINE# 99
C:0072H LINE# 100 C:0061H LINE# 100
C:0074H LINE# 101 C:0061H LINE# 101
C:0082H LINE# 102 C:0061H LINE# 102
C:0085H LINE# 103 C:0061H LINE# 103
C:0095H LINE# 105 C:0064H LINE# 104
C:0097H LINE# 106 C:0073H LINE# 105
C:0099H LINE# 108 C:0073H LINE# 106
C:009BH LINE# 109 C:0075H LINE# 107
C:009DH LINE# 110 C:0077H LINE# 108
C:00A6H LINE# 111 C:0079H LINE# 109
C:00A9H LINE# 112 C:007BH LINE# 110
C:00ACH LINE# 113 C:007EH LINE# 111
C:00AFH LINE# 115 C:0081H LINE# 112
C:00C6H LINE# 116 C:0089H LINE# 113
C:00C6H LINE# 117 C:008CH LINE# 115
C:00C6H LINE# 118 C:008CH LINE# 116
C:00C6H LINE# 119 C:008CH LINE# 117
C:00C6H LINE# 120 C:008CH LINE# 118
C:00C9H LINE# 121 C:008FH LINE# 120
C:00D9H LINE# 123 C:0091H LINE# 121
C:00DBH LINE# 124 C:0093H LINE# 122
C:00DDH LINE# 125 C:0096H LINE# 123
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 19:57:48 PAGE 6 C:0099H LINE# 124
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 21:30:59 PAGE 6
C:00E0H LINE# 126 C:009FH LINE# 125
C:00E3H LINE# 127 C:009FH LINE# 127
C:00E6H LINE# 128 C:009FH LINE# 128
C:00E9H LINE# 130 C:009FH LINE# 129
C:0100H LINE# 131 C:009FH LINE# 130
C:0100H LINE# 132 C:009FH LINE# 132
C:0102H LINE# 133 C:00A1H LINE# 134
C:0104H LINE# 134 C:00A1H LINE# 135
C:0112H LINE# 135 C:00A3H LINE# 136
C:0115H LINE# 136 C:00A5H LINE# 137
C:0125H LINE# 138 C:00A7H LINE# 138
C:00A9H LINE# 139
C:00ACH LINE# 140
C:00AFH LINE# 141
C:00B8H LINE# 142
C:00BBH LINE# 144
C:00BBH LINE# 145
C:00BBH LINE# 146
C:00BBH LINE# 147
C:00BEH LINE# 149
C:00C0H LINE# 150
C:00C2H LINE# 151
C:00C5H LINE# 152
C:00C8H LINE# 153
C:00D1H LINE# 154
C:00D4H LINE# 156
C:00D6H LINE# 157
C:00D8H LINE# 158
C:00F2H LINE# 159
C:00F5H LINE# 160
C:00F5H LINE# 161
C:0106H LINE# 162
------- ENDPROC _NAME ------- ENDPROC _NAME
------- PROC CLEAR ------- PROC CLEAR
------- DO ------- DO
X:0062H SYMBOL i X:0064H SYMBOL i
X:0064H SYMBOL j X:0066H SYMBOL j
------- ENDDO ------- ENDDO
C:0126H LINE# 141 C:0107H LINE# 164
C:0126H LINE# 142 C:0107H LINE# 165
C:0126H LINE# 144 C:0107H LINE# 167
C:0128H LINE# 145 C:0109H LINE# 168
C:012AH LINE# 146 C:010BH LINE# 169
C:0141H LINE# 147 C:0122H LINE# 170
C:0141H LINE# 148 C:0122H LINE# 171
C:0143H LINE# 149 C:0124H LINE# 172
C:0145H LINE# 150 C:0126H LINE# 173
C:014AH LINE# 151 C:012BH LINE# 174
C:014DH LINE# 152 C:012EH LINE# 175
C:0150H LINE# 153 C:0131H LINE# 176
C:0153H LINE# 155 C:0134H LINE# 178
C:015AH LINE# 156 C:013BH LINE# 179
C:015AH LINE# 157 C:013BH LINE# 180
C:015CH LINE# 158 C:013DH LINE# 181
C:015EH LINE# 159 C:013FH LINE# 182
C:0161H LINE# 160 C:0142H LINE# 183
C:0164H LINE# 161 C:0145H LINE# 184
C:0181H LINE# 162 BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 21:30:59 PAGE 7
C:0191H LINE# 163
C:0193H LINE# 164
C:0195H LINE# 165 C:0162H LINE# 185
C:01ACH LINE# 166 C:0172H LINE# 186
C:01ACH LINE# 167 C:0174H LINE# 187
C:01AEH LINE# 168 C:0176H LINE# 188
C:01B0H LINE# 169 C:018DH LINE# 189
C:01B5H LINE# 170 C:018DH LINE# 190
C:01B8H LINE# 171 C:018FH LINE# 191
C:01BBH LINE# 172 C:0191H LINE# 192
C:01BEH LINE# 174 C:0196H LINE# 193
C:01C5H LINE# 175 C:0199H LINE# 194
C:01C5H LINE# 176 C:019CH LINE# 195
C:01C7H LINE# 177 C:019FH LINE# 197
C:01C9H LINE# 178 C:01A6H LINE# 198
C:01CCH LINE# 179 C:01A6H LINE# 199
C:01CFH LINE# 180 C:01A8H LINE# 200
C:01ECH LINE# 181 C:01AAH LINE# 201
C:01FCH LINE# 182 C:01ADH LINE# 202
C:01B0H LINE# 203
C:01CDH LINE# 204
C:01DDH LINE# 205
------- ENDPROC CLEAR ------- ENDPROC CLEAR
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 19:57:48 PAGE 7 ------- PROC MINICLEAR
------- DO
X:0064H SYMBOL i
X:0066H SYMBOL j
------- ENDDO
C:01DEH LINE# 208
C:01DEH LINE# 209
C:01DEH LINE# 211
C:01E0H LINE# 212
C:01E2H LINE# 213
C:01F9H LINE# 214
C:01F9H LINE# 215
C:01FBH LINE# 216
C:01FDH LINE# 217
C:0202H LINE# 218
C:0205H LINE# 219
C:0208H LINE# 220
C:020BH LINE# 222
C:0212H LINE# 223
C:0212H LINE# 224
C:0214H LINE# 225
C:0216H LINE# 226
C:0219H LINE# 227
C:021CH LINE# 228
C:0239H LINE# 229
C:0249H LINE# 230
C:024BH LINE# 231
C:024DH LINE# 232
C:0264H LINE# 233
C:0264H LINE# 234
C:0266H LINE# 235
C:0268H LINE# 236
C:026DH LINE# 237
C:0270H LINE# 238
C:0273H LINE# 239
C:0276H LINE# 241
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 21:30:59 PAGE 8
C:027DH LINE# 242
C:027DH LINE# 243
C:027FH LINE# 244
C:0281H LINE# 245
C:0284H LINE# 246
C:0287H LINE# 247
C:02A4H LINE# 248
C:02B4H LINE# 249
------- ENDPROC MINICLEAR
------- PROC INIT ------- PROC INIT
C:04A1H LINE# 183 C:04FEH LINE# 250
C:04A1H LINE# 184 C:04FEH LINE# 251
C:04A1H LINE# 185 C:04FEH LINE# 252
C:04A3H LINE# 186 C:0500H LINE# 253
C:04A5H LINE# 187 C:0502H LINE# 254
C:04A7H LINE# 188 C:0504H LINE# 255
C:04A9H LINE# 189 C:0506H LINE# 256
C:04ABH LINE# 190 C:0508H LINE# 257
C:04AEH LINE# 191 C:050BH LINE# 258
C:04B1H LINE# 193 C:050EH LINE# 260
C:04B3H LINE# 194 C:0510H LINE# 261
C:04B5H LINE# 195 C:0512H LINE# 262
C:04B7H LINE# 196 C:0514H LINE# 263
C:04BAH LINE# 197 C:0517H LINE# 264
------- ENDPROC INIT ------- ENDPROC INIT
------- PROC TEST ------- PROC TEST
------- DO ------- DO
X:006AH SYMBOL i X:0060H SYMBOL i
X:006CH SYMBOL j X:0062H SYMBOL j
------- ENDDO ------- ENDDO
C:01FDH LINE# 200 C:02B5H LINE# 267
C:01FDH LINE# 201 C:02B5H LINE# 268
C:01FDH LINE# 203 C:02B5H LINE# 270
C:01FFH LINE# 204 C:02B7H LINE# 271
C:0201H LINE# 205 C:02B9H LINE# 272
C:0218H LINE# 206 C:02D0H LINE# 273
C:0218H LINE# 207 C:02D0H LINE# 274
C:021AH LINE# 208 C:02D2H LINE# 275
C:021CH LINE# 209 C:02D4H LINE# 276
C:0221H LINE# 210 C:02D9H LINE# 277
C:0224H LINE# 211 C:02DCH LINE# 278
C:0227H LINE# 212 C:02DFH LINE# 279
C:022AH LINE# 214 C:02E2H LINE# 281
C:0231H LINE# 215 C:02E9H LINE# 282
C:0231H LINE# 216 C:02E9H LINE# 283
C:0233H LINE# 217 C:02EBH LINE# 284
C:0235H LINE# 218 C:02EDH LINE# 285
C:0238H LINE# 219 C:02F0H LINE# 286
C:023BH LINE# 220 C:02F3H LINE# 287
C:0258H LINE# 221 C:0310H LINE# 288
C:0268H LINE# 222 C:0320H LINE# 289
C:026AH LINE# 223 C:0322H LINE# 290
C:026CH LINE# 224 C:0324H LINE# 291
C:0283H LINE# 225 C:033BH LINE# 292
C:0283H LINE# 226 C:033BH LINE# 293
C:0285H LINE# 227 C:033DH LINE# 294
C:0287H LINE# 228 C:033FH LINE# 295
C:028CH LINE# 229 BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 21:30:59 PAGE 9
C:028FH LINE# 230
C:0292H LINE# 231
C:0295H LINE# 233
C:029CH LINE# 234
C:029CH LINE# 235
C:029EH LINE# 236
C:02A0H LINE# 237
C:02A3H LINE# 238
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 19:57:48 PAGE 8
C:02A6H LINE# 239 C:0344H LINE# 296
C:02C3H LINE# 240 C:0347H LINE# 297
C:02D3H LINE# 241 C:034AH LINE# 298
C:034DH LINE# 300
C:0354H LINE# 301
C:0354H LINE# 302
C:0356H LINE# 303
C:0358H LINE# 304
C:035BH LINE# 305
C:035EH LINE# 306
C:037BH LINE# 307
C:038BH LINE# 308
------- ENDPROC TEST ------- ENDPROC TEST
------- ENDMOD DISPLAY ------- ENDMOD DISPLAY
------- MODULE ?C?UIDIV
C:03C9H PUBLIC ?C?UIDIV
------- ENDMOD ?C?UIDIV
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY100US?DELAY SEGMENT: ?PR?DELAY100US?DELAY
@ -450,5 +515,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?TEST?DISPLAY SEGMENT: ?PR?TEST?DISPLAY
Program Size: data=9.0 xdata=110 code=1259 Program Size: data=9.0 xdata=106 code=1352
LINK/LOCATE RUN COMPLETE. 6 WARNING(S), 0 ERROR(S) LINK/LOCATE RUN COMPLETE. 6 WARNING(S), 0 ERROR(S)

View file

@ -140,7 +140,57 @@
<Name>-S2 -B115200 -O15</Name> <Name>-S2 -B115200 -O15</Name>
</SetRegEntry> </SetRegEntry>
</TargetDriverDllRegistry> </TargetDriverDllRegistry>
<Breakpoint/> <Breakpoint>
<Bp>
<Number>0</Number>
<Type>0</Type>
<LineNumber>21</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>-16776215</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>1</BreakIfRCount>
<Filename>MAIN.C</Filename>
<ExecCommand></ExecCommand>
<Expression></Expression>
</Bp>
<Bp>
<Number>1</Number>
<Type>0</Type>
<LineNumber>22</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>-16776204</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>1</BreakIfRCount>
<Filename>MAIN.C</Filename>
<ExecCommand></ExecCommand>
<Expression></Expression>
</Bp>
</Breakpoint>
<WatchWindow1>
<Ww>
<count>0</count>
<WinNumber>1</WinNumber>
<ItemText>Z[j]</ItemText>
</Ww>
<Ww>
<count>1</count>
<WinNumber>1</WinNumber>
<ItemText>line</ItemText>
</Ww>
<Ww>
<count>2</count>
<WinNumber>1</WinNumber>
<ItemText>l</ItemText>
</Ww>
</WatchWindow1>
<Tracepoint> <Tracepoint>
<THDelay>0</THDelay> <THDelay>0</THDelay>
</Tracepoint> </Tracepoint>

View file

@ -29,7 +29,7 @@ const unsigned char Z2[] =
void write() void write()
{ {
RW=0; RW = 0;
E = 0; E = 0;
E = 1; E = 1;
delay(2); delay(2);
@ -68,76 +68,99 @@ void setY(unsigned char p)
void name(unsigned int line) void name(unsigned int line)
{ {
unsigned int j; unsigned char l = line % 128;
CSA = 1; unsigned int j;
CSB = 0;
RS = 0; for(j = l; j < l + 48; j++)
RW = 0; {
P1 = 0xb8 + 0; if(j < 64)
write();
P1 = 0X40;
write();
for(j=0; j < 48; j++)
{ {
CSA = 1;
CSB = 0;
RS = 0;
RW = 0;
P1 = 0xb8 + 0;
write();
P1 = 0X40 + j;
write(); //Ò³0ÁÐjÆÁA
RS = 1; RS = 1;
RW = 0; RW = 0;
P1 = Z[j%48]; P1 = Z[j - l];
write();
RS = 0;
RW = 0;
P1 = 0xb8 + 1;
write();
P1 = 0X40 + j;
write(); //Ò³1ÁÐjÆÁA
RS = 1;
RW = 0;
P1 = Z2[j - l];
write(); write();
} }
else if(j < 128)
RS = 0;
RW = 0;
P1 = 0xb8 + 1;
write();
P1 = 0X40;
write();
for(j=0; j < 48; j++)
{ {
RS = 1; CSA = 0;
CSB = 1;
RS = 0;
RW = 0; RW = 0;
P1 = Z2[j%48]; P1 = 0xb8 + 0;
write(); write();
} P1 = 0X40 + j - 63;
write(); //Ò³0ÁÐj-63ÆÁB
CSA = 0;
CSB = 1;
RS = 0;
RW = 0;
P1 = 0xb8 + line;
write();
P1 = 0X40;
write();
for(j=0; j < 48; j++)
{
RS = 1; RS = 1;
RW = 0; RW = 0;
P1 = Z[j%48]; P1 = Z[j - l];
write();
RS = 0;
RW = 0;
P1 = 0xb8 + 1;
write();
P1 = 0X40 + j - 63;
write(); //Ò³1ÁÐj-63ÆÁB
RS = 1;
RW = 0;
P1 = Z2[j - l];
write();
}
else
{
CSA = 1;
CSB = 0;
RS = 0;
RW = 0;
P1 = 0xb8 + 0;
write();
P1 = 0X40 + j - 127;
write(); //Ò³0ÁÐj-127ÆÁA
RS = 1;
RW = 0;
P1 = Z[j - l];
write();
RS = 0;
RW = 0;
P1 = 0xb8 + 1;
write();
P1 = 0X40 + j - 127;
write(); //Ò³1ÁÐj-127ÆÁA
RS = 1;
RW = 0;
P1 = Z2[j - l];
write(); write();
} }
}
RS = 0;
RW = 0;
P1 = 0xb8 + 1;
write();
P1 = 0X40;
write();
for(j=0; j < 48; j++)
{
RS = 1;
RW = 0;
P1 = Z2[j%48];
write();
}
} }
void clear() void clear()
{ {
unsigned int i, j; unsigned int i, j;
@ -180,10 +203,54 @@ void clear()
} }
} }
} }
void miniclear()
{
unsigned int i, j;
CSA = 1;
CSB = 0;
for(i = 0; i < 2; i++)
{
RS = 0;
RW = 0;
P1 = 0xb8 + i;
write();
P1 = 0X40;
write();
for(j = 0; j < 64; j++)
{
RS = 1;
RW = 0;
P1 = 0x00;;
write();
}
}
CSA = 0;
CSB = 1;
for(i = 0; i < 2; i++)
{
RS = 0;
RW = 0;
P1 = 0xb8 + i;
write();
P1 = 0X40;
write();
for(j = 0; j < 64; j++)
{
RS = 1;
RW = 0;
P1 = 0x00;
write();
}
}
}
void init() void init()
{ {
E = 0; E = 0;
RS=1; RS = 1;
CSA = 1; CSA = 1;
CSB = 0; CSB = 0;
RS = 0; RS = 0;
@ -193,13 +260,13 @@ void init()
CSA = 0; CSA = 0;
CSB = 1; CSB = 1;
RS = 0; RS = 0;
P1 = 0XFF; P1 = 0X3F;
write(); write();
} }
void test() void test()
{ {
unsigned int i, j; unsigned int i, j;
CSA = 1; CSA = 1;
CSB = 0; CSB = 0;
for(i = 0; i < 8; i++) for(i = 0; i < 8; i++)

View file

@ -11,6 +11,7 @@ void setY(unsigned char p);
void test(); void test();
void init(); void init();
void clear(); void clear();
void miniclear();
void name(unsigned int i); void name(unsigned int i);
void write(); void write();
#endif #endif

View file

@ -8,22 +8,19 @@ sbit E = P3 ^ 2;
sbit CSA = P3 ^ 4; sbit CSA = P3 ^ 4;
sbit CSB = P3 ^ 5; sbit CSB = P3 ^ 5;
unsigned int i; unsigned int line = 0;
unsigned int j;
int main() int main()
{ {
init(); init();
clear(); clear();
while(1) while(1)
{ {
unsigned int line=0;
name(line); name(line);
line++; miniclear();
if(line==64) line++;
line=0;
delay(500); }
}
} }