-
Notifications
You must be signed in to change notification settings - Fork 0
/
autotest_jc.lst
1712 lines (1712 loc) · 100 KB
/
autotest_jc.lst
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
0000 1 ;--------------------------------------------------------
0000 2 ; File Created by C51
0000 3 ; Version 1.0.0 #1069 (Apr 23 2015) (MSVC)
0000 4 ; This file was generated Wed Feb 28 17:23:48 2018
0000 5 ;--------------------------------------------------------
5 $name autotest_jc
6 $optc51 --model-small
0000 8 R_DSEG segment data
0000 9 R_CSEG segment code
0000 10 R_BSEG segment bit
0000 11 R_XSEG segment xdata
0000 12 R_PSEG segment xdata
0000 13 R_ISEG segment idata
0000 14 R_OSEG segment data overlay
0000 15 BIT_BANK segment data overlay
0000 16 R_HOME segment code
0000 17 R_GSINIT segment code
0000 18 R_IXSEG segment xdata
0000 19 R_CONST segment code
0000 20 R_XINIT segment code
0000 21 R_DINIT segment code
0000 22
0000 23 ;--------------------------------------------------------
0000 24 ; Public variables in this module
0000 25 ;--------------------------------------------------------
0000 26 public _main
0000 27 public _Initial_Check
0000 28 public _Check_Pin_Zero
0000 29 public _Test_Pair
0000 30 public _dopass
0000 31 public _dofailb
0000 32 public _dofail
0000 33 public _Read_Pin
0000 34 public _Set_Pin_Zero
0000 35 public _Set_Pin_One
0000 36 public _Set_Pin_Input
0000 37 public _Set_Pin_Output
0000 38 public _countzero
0000 39 public _WaitXms
0000 40 public _Timer3us
0000 41 public __c51_external_startup
0000 42 public _Test_Pair_PARM_2
0000 43 ;--------------------------------------------------------
0000 44 ; Special Function Registers
0000 45 ;--------------------------------------------------------
0000 46 _ACC DATA 0xe0
0000 47 _ADC0ASAH DATA 0xb6
0000 48 _ADC0ASAL DATA 0xb5
0000 49 _ADC0ASCF DATA 0xa1
0000 50 _ADC0ASCT DATA 0xc7
0000 51 _ADC0CF0 DATA 0xbc
0000 52 _ADC0CF1 DATA 0xb9
0000 53 _ADC0CF2 DATA 0xdf
0000 54 _ADC0CN0 DATA 0xe8
0000 55 _ADC0CN1 DATA 0xb2
0000 56 _ADC0CN2 DATA 0xb3
0000 57 _ADC0GTH DATA 0xc4
0000 58 _ADC0GTL DATA 0xc3
0000 59 _ADC0H DATA 0xbe
0000 60 _ADC0L DATA 0xbd
0000 61 _ADC0LTH DATA 0xc6
0000 62 _ADC0LTL DATA 0xc5
0000 63 _ADC0MX DATA 0xbb
0000 64 _B DATA 0xf0
0000 65 _CKCON0 DATA 0x8e
0000 66 _CKCON1 DATA 0xa6
0000 67 _CLEN0 DATA 0xc6
0000 68 _CLIE0 DATA 0xc7
0000 69 _CLIF0 DATA 0xe8
0000 70 _CLKSEL DATA 0xa9
0000 71 _CLOUT0 DATA 0xd1
0000 72 _CLU0CF DATA 0xb1
0000 73 _CLU0FN DATA 0xaf
0000 74 _CLU0MX DATA 0x84
0000 75 _CLU1CF DATA 0xb3
0000 76 _CLU1FN DATA 0xb2
0000 77 _CLU1MX DATA 0x85
0000 78 _CLU2CF DATA 0xb6
0000 79 _CLU2FN DATA 0xb5
0000 80 _CLU2MX DATA 0x91
0000 81 _CLU3CF DATA 0xbf
0000 82 _CLU3FN DATA 0xbe
0000 83 _CLU3MX DATA 0xae
0000 84 _CMP0CN0 DATA 0x9b
0000 85 _CMP0CN1 DATA 0x99
0000 86 _CMP0MD DATA 0x9d
0000 87 _CMP0MX DATA 0x9f
0000 88 _CMP1CN0 DATA 0xbf
0000 89 _CMP1CN1 DATA 0xac
0000 90 _CMP1MD DATA 0xab
0000 91 _CMP1MX DATA 0xaa
0000 92 _CRC0CN0 DATA 0xce
0000 93 _CRC0CN1 DATA 0x86
0000 94 _CRC0CNT DATA 0xd3
0000 95 _CRC0DAT DATA 0xcb
0000 96 _CRC0FLIP DATA 0xcf
0000 97 _CRC0IN DATA 0xca
0000 98 _CRC0ST DATA 0xd2
0000 99 _DAC0CF0 DATA 0x91
0000 100 _DAC0CF1 DATA 0x92
0000 101 _DAC0H DATA 0x85
0000 102 _DAC0L DATA 0x84
0000 103 _DAC1CF0 DATA 0x93
0000 104 _DAC1CF1 DATA 0x94
0000 105 _DAC1H DATA 0x8a
0000 106 _DAC1L DATA 0x89
0000 107 _DAC2CF0 DATA 0x95
0000 108 _DAC2CF1 DATA 0x96
0000 109 _DAC2H DATA 0x8c
0000 110 _DAC2L DATA 0x8b
0000 111 _DAC3CF0 DATA 0x9a
0000 112 _DAC3CF1 DATA 0x9c
0000 113 _DAC3H DATA 0x8e
0000 114 _DAC3L DATA 0x8d
0000 115 _DACGCF0 DATA 0x88
0000 116 _DACGCF1 DATA 0x98
0000 117 _DACGCF2 DATA 0xa2
0000 118 _DERIVID DATA 0xad
0000 119 _DEVICEID DATA 0xb5
0000 120 _DPH DATA 0x83
0000 121 _DPL DATA 0x82
0000 122 _EIE1 DATA 0xe6
0000 123 _EIE2 DATA 0xf3
0000 124 _EIP1 DATA 0xbb
0000 125 _EIP1H DATA 0xee
0000 126 _EIP2 DATA 0xed
0000 127 _EIP2H DATA 0xf6
0000 128 _EMI0CN DATA 0xe7
0000 129 _FLKEY DATA 0xb7
0000 130 _HFO0CAL DATA 0xc7
0000 131 _HFO1CAL DATA 0xd6
0000 132 _HFOCN DATA 0xef
0000 133 _I2C0ADM DATA 0xff
0000 134 _I2C0CN0 DATA 0xba
0000 135 _I2C0DIN DATA 0xbc
0000 136 _I2C0DOUT DATA 0xbb
0000 137 _I2C0FCN0 DATA 0xad
0000 138 _I2C0FCN1 DATA 0xab
0000 139 _I2C0FCT DATA 0xf5
0000 140 _I2C0SLAD DATA 0xbd
0000 141 _I2C0STAT DATA 0xb9
0000 142 _IE DATA 0xa8
0000 143 _IP DATA 0xb8
0000 144 _IPH DATA 0xf2
0000 145 _IT01CF DATA 0xe4
0000 146 _LFO0CN DATA 0xb1
0000 147 _P0 DATA 0x80
0000 148 _P0MASK DATA 0xfe
0000 149 _P0MAT DATA 0xfd
0000 150 _P0MDIN DATA 0xf1
0000 151 _P0MDOUT DATA 0xa4
0000 152 _P0SKIP DATA 0xd4
0000 153 _P1 DATA 0x90
0000 154 _P1MASK DATA 0xee
0000 155 _P1MAT DATA 0xed
0000 156 _P1MDIN DATA 0xf2
0000 157 _P1MDOUT DATA 0xa5
0000 158 _P1SKIP DATA 0xd5
0000 159 _P2 DATA 0xa0
0000 160 _P2MASK DATA 0xfc
0000 161 _P2MAT DATA 0xfb
0000 162 _P2MDIN DATA 0xf3
0000 163 _P2MDOUT DATA 0xa6
0000 164 _P2SKIP DATA 0xcc
0000 165 _P3 DATA 0xb0
0000 166 _P3MDIN DATA 0xf4
0000 167 _P3MDOUT DATA 0x9c
0000 168 _PCA0CENT DATA 0x9e
0000 169 _PCA0CLR DATA 0x9c
0000 170 _PCA0CN0 DATA 0xd8
0000 171 _PCA0CPH0 DATA 0xfc
0000 172 _PCA0CPH1 DATA 0xea
0000 173 _PCA0CPH2 DATA 0xec
0000 174 _PCA0CPH3 DATA 0xf5
0000 175 _PCA0CPH4 DATA 0x85
0000 176 _PCA0CPH5 DATA 0xde
0000 177 _PCA0CPL0 DATA 0xfb
0000 178 _PCA0CPL1 DATA 0xe9
0000 179 _PCA0CPL2 DATA 0xeb
0000 180 _PCA0CPL3 DATA 0xf4
0000 181 _PCA0CPL4 DATA 0x84
0000 182 _PCA0CPL5 DATA 0xdd
0000 183 _PCA0CPM0 DATA 0xda
0000 184 _PCA0CPM1 DATA 0xdb
0000 185 _PCA0CPM2 DATA 0xdc
0000 186 _PCA0CPM3 DATA 0xae
0000 187 _PCA0CPM4 DATA 0xaf
0000 188 _PCA0CPM5 DATA 0xcc
0000 189 _PCA0H DATA 0xfa
0000 190 _PCA0L DATA 0xf9
0000 191 _PCA0MD DATA 0xd9
0000 192 _PCA0POL DATA 0x96
0000 193 _PCA0PWM DATA 0xf7
0000 194 _PCON0 DATA 0x87
0000 195 _PCON1 DATA 0xcd
0000 196 _PFE0CN DATA 0xc1
0000 197 _PRTDRV DATA 0xf6
0000 198 _PSCTL DATA 0x8f
0000 199 _PSTAT0 DATA 0xaa
0000 200 _PSW DATA 0xd0
0000 201 _REF0CN DATA 0xd1
0000 202 _REG0CN DATA 0xc9
0000 203 _REVID DATA 0xb6
0000 204 _RSTSRC DATA 0xef
0000 205 _SBCON1 DATA 0x94
0000 206 _SBRLH1 DATA 0x96
0000 207 _SBRLL1 DATA 0x95
0000 208 _SBUF DATA 0x99
0000 209 _SBUF0 DATA 0x99
0000 210 _SBUF1 DATA 0x92
0000 211 _SCON DATA 0x98
0000 212 _SCON0 DATA 0x98
0000 213 _SCON1 DATA 0xc8
0000 214 _SFRPAGE DATA 0xa7
0000 215 _SFRPGCN DATA 0xbc
0000 216 _SFRSTACK DATA 0xd7
0000 217 _SMB0ADM DATA 0xd6
0000 218 _SMB0ADR DATA 0xd7
0000 219 _SMB0CF DATA 0xc1
0000 220 _SMB0CN0 DATA 0xc0
0000 221 _SMB0DAT DATA 0xc2
0000 222 _SMB0FCN0 DATA 0xc3
0000 223 _SMB0FCN1 DATA 0xc4
0000 224 _SMB0FCT DATA 0xef
0000 225 _SMB0RXLN DATA 0xc5
0000 226 _SMB0TC DATA 0xac
0000 227 _SMOD1 DATA 0x93
0000 228 _SP DATA 0x81
0000 229 _SPI0CFG DATA 0xa1
0000 230 _SPI0CKR DATA 0xa2
0000 231 _SPI0CN0 DATA 0xf8
0000 232 _SPI0DAT DATA 0xa3
0000 233 _SPI0FCN0 DATA 0x9a
0000 234 _SPI0FCN1 DATA 0x9b
0000 235 _SPI0FCT DATA 0xf7
0000 236 _SPI0PCF DATA 0xdf
0000 237 _TCON DATA 0x88
0000 238 _TH0 DATA 0x8c
0000 239 _TH1 DATA 0x8d
0000 240 _TL0 DATA 0x8a
0000 241 _TL1 DATA 0x8b
0000 242 _TMOD DATA 0x89
0000 243 _TMR2CN0 DATA 0xc8
0000 244 _TMR2CN1 DATA 0xfd
0000 245 _TMR2H DATA 0xcf
0000 246 _TMR2L DATA 0xce
0000 247 _TMR2RLH DATA 0xcb
0000 248 _TMR2RLL DATA 0xca
0000 249 _TMR3CN0 DATA 0x91
0000 250 _TMR3CN1 DATA 0xfe
0000 251 _TMR3H DATA 0x95
0000 252 _TMR3L DATA 0x94
0000 253 _TMR3RLH DATA 0x93
0000 254 _TMR3RLL DATA 0x92
0000 255 _TMR4CN0 DATA 0x98
0000 256 _TMR4CN1 DATA 0xff
0000 257 _TMR4H DATA 0xa5
0000 258 _TMR4L DATA 0xa4
0000 259 _TMR4RLH DATA 0xa3
0000 260 _TMR4RLL DATA 0xa2
0000 261 _TMR5CN0 DATA 0xc0
0000 262 _TMR5CN1 DATA 0xf1
0000 263 _TMR5H DATA 0xd5
0000 264 _TMR5L DATA 0xd4
0000 265 _TMR5RLH DATA 0xd3
0000 266 _TMR5RLL DATA 0xd2
0000 267 _UART0PCF DATA 0xd9
0000 268 _UART1FCN0 DATA 0x9d
0000 269 _UART1FCN1 DATA 0xd8
0000 270 _UART1FCT DATA 0xfa
0000 271 _UART1LIN DATA 0x9e
0000 272 _UART1PCF DATA 0xda
0000 273 _VDM0CN DATA 0xff
0000 274 _WDTCN DATA 0x97
0000 275 _XBR0 DATA 0xe1
0000 276 _XBR1 DATA 0xe2
0000 277 _XBR2 DATA 0xe3
0000 278 _XOSC0CN DATA 0x86
0000 279 _DPTR DATA 0x8382
0000 280 _TMR2RL DATA 0xcbca
0000 281 _TMR3RL DATA 0x9392
0000 282 _TMR4RL DATA 0xa3a2
0000 283 _TMR5RL DATA 0xd3d2
0000 284 _TMR0 DATA 0x8c8a
0000 285 _TMR1 DATA 0x8d8b
0000 286 _TMR2 DATA 0xcfce
0000 287 _TMR3 DATA 0x9594
0000 288 _TMR4 DATA 0xa5a4
0000 289 _TMR5 DATA 0xd5d4
0000 290 _SBRL1 DATA 0x9695
0000 291 _PCA0 DATA 0xfaf9
0000 292 _PCA0CP0 DATA 0xfcfb
0000 293 _PCA0CP1 DATA 0xeae9
0000 294 _PCA0CP2 DATA 0xeceb
0000 295 _PCA0CP3 DATA 0xf5f4
0000 296 _PCA0CP4 DATA 0x8584
0000 297 _PCA0CP5 DATA 0xdedd
0000 298 _ADC0ASA DATA 0xb6b5
0000 299 _ADC0GT DATA 0xc4c3
0000 300 _ADC0 DATA 0xbebd
0000 301 _ADC0LT DATA 0xc6c5
0000 302 _DAC0 DATA 0x8584
0000 303 _DAC1 DATA 0x8a89
0000 304 _DAC2 DATA 0x8c8b
0000 305 _DAC3 DATA 0x8e8d
0000 306 ;--------------------------------------------------------
0000 307 ; special function bits
0000 308 ;--------------------------------------------------------
0000 309 _ACC_0 BIT 0xe0
0000 310 _ACC_1 BIT 0xe1
0000 311 _ACC_2 BIT 0xe2
0000 312 _ACC_3 BIT 0xe3
0000 313 _ACC_4 BIT 0xe4
0000 314 _ACC_5 BIT 0xe5
0000 315 _ACC_6 BIT 0xe6
0000 316 _ACC_7 BIT 0xe7
0000 317 _TEMPE BIT 0xe8
0000 318 _ADGN0 BIT 0xe9
0000 319 _ADGN1 BIT 0xea
0000 320 _ADWINT BIT 0xeb
0000 321 _ADBUSY BIT 0xec
0000 322 _ADINT BIT 0xed
0000 323 _IPOEN BIT 0xee
0000 324 _ADEN BIT 0xef
0000 325 _B_0 BIT 0xf0
0000 326 _B_1 BIT 0xf1
0000 327 _B_2 BIT 0xf2
0000 328 _B_3 BIT 0xf3
0000 329 _B_4 BIT 0xf4
0000 330 _B_5 BIT 0xf5
0000 331 _B_6 BIT 0xf6
0000 332 _B_7 BIT 0xf7
0000 333 _C0FIF BIT 0xe8
0000 334 _C0RIF BIT 0xe9
0000 335 _C1FIF BIT 0xea
0000 336 _C1RIF BIT 0xeb
0000 337 _C2FIF BIT 0xec
0000 338 _C2RIF BIT 0xed
0000 339 _C3FIF BIT 0xee
0000 340 _C3RIF BIT 0xef
0000 341 _D1SRC0 BIT 0x88
0000 342 _D1SRC1 BIT 0x89
0000 343 _D1AMEN BIT 0x8a
0000 344 _D01REFSL BIT 0x8b
0000 345 _D3SRC0 BIT 0x8c
0000 346 _D3SRC1 BIT 0x8d
0000 347 _D3AMEN BIT 0x8e
0000 348 _D23REFSL BIT 0x8f
0000 349 _D0UDIS BIT 0x98
0000 350 _D1UDIS BIT 0x99
0000 351 _D2UDIS BIT 0x9a
0000 352 _D3UDIS BIT 0x9b
0000 353 _EX0 BIT 0xa8
0000 354 _ET0 BIT 0xa9
0000 355 _EX1 BIT 0xaa
0000 356 _ET1 BIT 0xab
0000 357 _ES0 BIT 0xac
0000 358 _ET2 BIT 0xad
0000 359 _ESPI0 BIT 0xae
0000 360 _EA BIT 0xaf
0000 361 _PX0 BIT 0xb8
0000 362 _PT0 BIT 0xb9
0000 363 _PX1 BIT 0xba
0000 364 _PT1 BIT 0xbb
0000 365 _PS0 BIT 0xbc
0000 366 _PT2 BIT 0xbd
0000 367 _PSPI0 BIT 0xbe
0000 368 _P0_0 BIT 0x80
0000 369 _P0_1 BIT 0x81
0000 370 _P0_2 BIT 0x82
0000 371 _P0_3 BIT 0x83
0000 372 _P0_4 BIT 0x84
0000 373 _P0_5 BIT 0x85
0000 374 _P0_6 BIT 0x86
0000 375 _P0_7 BIT 0x87
0000 376 _P1_0 BIT 0x90
0000 377 _P1_1 BIT 0x91
0000 378 _P1_2 BIT 0x92
0000 379 _P1_3 BIT 0x93
0000 380 _P1_4 BIT 0x94
0000 381 _P1_5 BIT 0x95
0000 382 _P1_6 BIT 0x96
0000 383 _P1_7 BIT 0x97
0000 384 _P2_0 BIT 0xa0
0000 385 _P2_1 BIT 0xa1
0000 386 _P2_2 BIT 0xa2
0000 387 _P2_3 BIT 0xa3
0000 388 _P2_4 BIT 0xa4
0000 389 _P2_5 BIT 0xa5
0000 390 _P2_6 BIT 0xa6
0000 391 _P3_0 BIT 0xb0
0000 392 _P3_1 BIT 0xb1
0000 393 _P3_2 BIT 0xb2
0000 394 _P3_3 BIT 0xb3
0000 395 _P3_4 BIT 0xb4
0000 396 _P3_7 BIT 0xb7
0000 397 _CCF0 BIT 0xd8
0000 398 _CCF1 BIT 0xd9
0000 399 _CCF2 BIT 0xda
0000 400 _CCF3 BIT 0xdb
0000 401 _CCF4 BIT 0xdc
0000 402 _CCF5 BIT 0xdd
0000 403 _CR BIT 0xde
0000 404 _CF BIT 0xdf
0000 405 _PARITY BIT 0xd0
0000 406 _F1 BIT 0xd1
0000 407 _OV BIT 0xd2
0000 408 _RS0 BIT 0xd3
0000 409 _RS1 BIT 0xd4
0000 410 _F0 BIT 0xd5
0000 411 _AC BIT 0xd6
0000 412 _CY BIT 0xd7
0000 413 _RI BIT 0x98
0000 414 _TI BIT 0x99
0000 415 _RB8 BIT 0x9a
0000 416 _TB8 BIT 0x9b
0000 417 _REN BIT 0x9c
0000 418 _CE BIT 0x9d
0000 419 _SMODE BIT 0x9e
0000 420 _RI1 BIT 0xc8
0000 421 _TI1 BIT 0xc9
0000 422 _RBX1 BIT 0xca
0000 423 _TBX1 BIT 0xcb
0000 424 _REN1 BIT 0xcc
0000 425 _PERR1 BIT 0xcd
0000 426 _OVR1 BIT 0xce
0000 427 _SI BIT 0xc0
0000 428 _ACK BIT 0xc1
0000 429 _ARBLOST BIT 0xc2
0000 430 _ACKRQ BIT 0xc3
0000 431 _STO BIT 0xc4
0000 432 _STA BIT 0xc5
0000 433 _TXMODE BIT 0xc6
0000 434 _MASTER BIT 0xc7
0000 435 _SPIEN BIT 0xf8
0000 436 _TXNF BIT 0xf9
0000 437 _NSSMD0 BIT 0xfa
0000 438 _NSSMD1 BIT 0xfb
0000 439 _RXOVRN BIT 0xfc
0000 440 _MODF BIT 0xfd
0000 441 _WCOL BIT 0xfe
0000 442 _SPIF BIT 0xff
0000 443 _IT0 BIT 0x88
0000 444 _IE0 BIT 0x89
0000 445 _IT1 BIT 0x8a
0000 446 _IE1 BIT 0x8b
0000 447 _TR0 BIT 0x8c
0000 448 _TF0 BIT 0x8d
0000 449 _TR1 BIT 0x8e
0000 450 _TF1 BIT 0x8f
0000 451 _T2XCLK0 BIT 0xc8
0000 452 _T2XCLK1 BIT 0xc9
0000 453 _TR2 BIT 0xca
0000 454 _T2SPLIT BIT 0xcb
0000 455 _TF2CEN BIT 0xcc
0000 456 _TF2LEN BIT 0xcd
0000 457 _TF2L BIT 0xce
0000 458 _TF2H BIT 0xcf
0000 459 _T4XCLK0 BIT 0x98
0000 460 _T4XCLK1 BIT 0x99
0000 461 _TR4 BIT 0x9a
0000 462 _T4SPLIT BIT 0x9b
0000 463 _TF4CEN BIT 0x9c
0000 464 _TF4LEN BIT 0x9d
0000 465 _TF4L BIT 0x9e
0000 466 _TF4H BIT 0x9f
0000 467 _T5XCLK0 BIT 0xc0
0000 468 _T5XCLK1 BIT 0xc1
0000 469 _TR5 BIT 0xc2
0000 470 _T5SPLIT BIT 0xc3
0000 471 _TF5CEN BIT 0xc4
0000 472 _TF5LEN BIT 0xc5
0000 473 _TF5L BIT 0xc6
0000 474 _TF5H BIT 0xc7
0000 475 _RIE BIT 0xd8
0000 476 _RXTO0 BIT 0xd9
0000 477 _RXTO1 BIT 0xda
0000 478 _RFRQ BIT 0xdb
0000 479 _TIE BIT 0xdc
0000 480 _TXHOLD BIT 0xdd
0000 481 _TXNF1 BIT 0xde
0000 482 _TFRQ BIT 0xdf
0000 483 ;--------------------------------------------------------
0000 484 ; overlayable register banks
0000 485 ;--------------------------------------------------------
0000 486 rbank0 segment data overlay
0000 487 ;--------------------------------------------------------
0000 488 ; internal ram data
0000 489 ;--------------------------------------------------------
0000 490 rseg R_DSEG
0000 491 _Test_Pair_PARM_2:
0000 492 ds 1
0001 493 ;--------------------------------------------------------
0001 494 ; overlayable items in internal ram
0001 495 ;--------------------------------------------------------
0000 496 rseg R_OSEG
0000 497 rseg R_OSEG
0000 498 rseg R_OSEG
0000 499 rseg R_OSEG
0000 500 rseg R_OSEG
0000 501 rseg R_OSEG
0000 502 rseg R_OSEG
0000 503 ;--------------------------------------------------------
0000 504 ; indirectly addressable internal ram data
0000 505 ;--------------------------------------------------------
0000 506 rseg R_ISEG
0000 507 ;--------------------------------------------------------
0000 508 ; absolute internal ram data
0000 509 ;--------------------------------------------------------
0000 510 DSEG
0000 511 ;--------------------------------------------------------
0000 512 ; bit data
0000 513 ;--------------------------------------------------------
0000 514 rseg R_BSEG
0000 515 ;--------------------------------------------------------
0000 516 ; paged external ram data
0000 517 ;--------------------------------------------------------
0000 518 rseg R_PSEG
0000 519 ;--------------------------------------------------------
0000 520 ; external ram data
0000 521 ;--------------------------------------------------------
0000 522 rseg R_XSEG
0000 523 ;--------------------------------------------------------
0000 524 ; absolute external ram data
0000 525 ;--------------------------------------------------------
0000 526 XSEG
0000 527 ;--------------------------------------------------------
0000 528 ; external initialized ram data
0000 529 ;--------------------------------------------------------
0000 530 rseg R_IXSEG
0000 531 rseg R_HOME
0000 532 rseg R_GSINIT
0000 533 rseg R_CSEG
0000 534 ;--------------------------------------------------------
0000 535 ; Reset entry point and interrupt vectors
0000 536 ;--------------------------------------------------------
0000 537 CSEG at 0x0000
0000 020100 538 ljmp _crt0
0003 539 ;--------------------------------------------------------
0003 540 ; global & static initialisations
0003 541 ;--------------------------------------------------------
0000 542 rseg R_HOME
0000 543 rseg R_GSINIT
0000 544 rseg R_GSINIT
0000 545 ;--------------------------------------------------------
0000 546 ; data variables initialization
0000 547 ;--------------------------------------------------------
0000 548 rseg R_DINIT
0000 549 ; The linker places a 'ret' at the end of segment R_DINIT.
0000 550 ;--------------------------------------------------------
0000 551 ; code
0000 552 ;--------------------------------------------------------
0000 553 rseg R_CSEG
0000 554 ;------------------------------------------------------------
0000 555 ;Allocation info for local variables in function '_c51_external_startup'
0000 556 ;------------------------------------------------------------
0000 557 ;------------------------------------------------------------
0000 558 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:27: char _c51_external_startup (void)
0000 559 ; -----------------------------------------
0000 560 ; function _c51_external_startup
0000 561 ; -----------------------------------------
0000 562 __c51_external_startup:
0000 563 using 0
0000 564 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:30: SFRPAGE = 0x00;
0000 75A700 565 mov _SFRPAGE,#0x00
0003 566 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:31: WDTCN = 0xDE; //First key
0003 7597DE 567 mov _WDTCN,#0xDE
0006 568 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:32: WDTCN = 0xAD; //Second key
0006 7597AD 569 mov _WDTCN,#0xAD
0009 570 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:35: SFRPAGE = 0x10;
0009 75A710 571 mov _SFRPAGE,#0x10
000C 572 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:36: PFE0CN = 0x10; // SYSCLK < 50 MHz.
000C 75C110 573 mov _PFE0CN,#0x10
000F 574 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:37: SFRPAGE = 0x00;
000F 75A700 575 mov _SFRPAGE,#0x00
0012 576 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:54: CLKSEL = 0x00;
0012 75A900 577 mov _CLKSEL,#0x00
0015 578 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:55: CLKSEL = 0x00;
0015 75A900 579 mov _CLKSEL,#0x00
0018 580 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:56: while ((CLKSEL & 0x80) == 0);
0018 581 L002001?:
0018 E5A9 582 mov a,_CLKSEL
001A 30E7E8 583 jnb acc.7,L002001?
001D 584 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:57: CLKSEL = 0x07;
001D 75A907 585 mov _CLKSEL,#0x07
0020 586 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:58: CLKSEL = 0x07;
0020 75A907 587 mov _CLKSEL,#0x07
0023 588 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:59: while ((CLKSEL & 0x80) == 0);
0023 589 L002004?:
0023 E5A9 590 mov a,_CLKSEL
0025 30E768 591 jnb acc.7,L002004?
0028 592 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:72: P0MDOUT |= 0x10; // Enable UART0 TX as push-pull output
0028 43A410 593 orl _P0MDOUT,#0x10
002B 594 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:73: XBR0 = 0x01; // Enable UART0 on P0.4(TX) and P0.5(RX)
002B 75E101 595 mov _XBR0,#0x01
002E 596 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:74: XBR1 = 0X00;
002E 75E200 597 mov _XBR1,#0x00
0031 598 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:75: XBR2 = 0x40; // Enable crossbar and weak pull-ups
0031 75E340 599 mov _XBR2,#0x40
0034 600 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:81: SCON0 = 0x10;
0034 759810 601 mov _SCON0,#0x10
0037 602 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:82: CKCON0 |= 0b_0000_1000 ; // Timer 1 uses the system clock.
0037 438E08 603 orl _CKCON0,#0x08
003A 604 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:83: TH1 = 0x100-((SYSCLK/BAUDRATE)/2L);
003A 758D30 605 mov _TH1,#0x30
003D 606 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:84: TL1 = TH1; // Init Timer1
003D 858D8B 607 mov _TL1,_TH1
0040 608 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:85: TMOD &= ~0xf0; // TMOD: timer 1 in 8-bit auto-reload
0040 53890F 609 anl _TMOD,#0x0F
0043 610 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:86: TMOD |= 0x20;
0043 438920 611 orl _TMOD,#0x20
0046 612 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:87: TR1 = 1; // START Timer1
0046 D28E 613 setb _TR1
0048 614 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:88: TI = 1; // Indicate TX0 ready
0048 D299 615 setb _TI
004A 616 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:90: return 0;
004A 758200 617 mov dpl,#0x00
004D 22 618 ret
004E 619 ;------------------------------------------------------------
004E 620 ;Allocation info for local variables in function 'Timer3us'
004E 621 ;------------------------------------------------------------
004E 622 ;us Allocated to registers r2
004E 623 ;i Allocated to registers r3
004E 624 ;------------------------------------------------------------
004E 625 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:95: void Timer3us(unsigned char us)
004E 626 ; -----------------------------------------
004E 627 ; function Timer3us
004E 628 ; -----------------------------------------
004E 629 _Timer3us:
004E AA82 630 mov r2,dpl
0050 631 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:100: CKCON0|=0b_0100_0000;
0050 438E40 632 orl _CKCON0,#0x40
0053 633 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:102: TMR3RL = (-(SYSCLK)/1000000L); // Set Timer3 to overflow in 1us.
0053 7592D0 634 mov _TMR3RL,#0xD0
0056 7593FF 635 mov (_TMR3RL >> 8),#0xFF
0059 636 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:103: TMR3 = TMR3RL; // Initialize Timer3 for first overflow
0059 859294 637 mov _TMR3,_TMR3RL
005C 859395 638 mov (_TMR3 >> 8),(_TMR3RL >> 8)
005F 639 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:105: TMR3CN0 = 0x04; // Sart Timer3 and clear overflow flag
005F 759104 640 mov _TMR3CN0,#0x04
0062 641 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:106: for (i = 0; i < us; i++) // Count <us> overflows
0062 7B00 642 mov r3,#0x00
0064 643 L003004?:
0064 C3 644 clr c
0065 EB 645 mov a,r3
0066 9A 646 subb a,r2
0067 5001 647 jnc L003007?
0069 648 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:108: while (!(TMR3CN0 & 0x80)); // Wait for overflow
0069 649 L003001?:
0069 E591 650 mov a,_TMR3CN0
006B 30E768 651 jnb acc.7,L003001?
006E 652 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:109: TMR3CN0 &= ~(0x80); // Clear overflow indicator
006E 53917F 653 anl _TMR3CN0,#0x7F
0071 654 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:106: for (i = 0; i < us; i++) // Count <us> overflows
0071 0B 655 inc r3
0072 8001 656 sjmp L003004?
0074 657 L003007?:
0074 658 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:111: TMR3CN0 = 0 ; // Stop Timer3 and clear overflow flag
0074 759100 659 mov _TMR3CN0,#0x00
0077 22 660 ret
0078 661 ;------------------------------------------------------------
0078 662 ;Allocation info for local variables in function 'WaitXms'
0078 663 ;------------------------------------------------------------
0078 664 ;ms Allocated to registers r2 r3
0078 665 ;j Allocated to registers r2 r3
0078 666 ;------------------------------------------------------------
0078 667 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:114: void WaitXms (unsigned int ms)
0078 668 ; -----------------------------------------
0078 669 ; function WaitXms
0078 670 ; -----------------------------------------
0078 671 _WaitXms:
0078 AA82 672 mov r2,dpl
007A AB83 673 mov r3,dph
007C 674 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:117: for(j=ms; j!=0; j--)
007C 675 L004001?:
007C BA0028 676 cjne r2,#0x00,L004010?
007F BB0028 677 cjne r3,#0x00,L004010?
0082 22 678 ret
0083 679 L004010?:
0083 680 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:119: Timer3us(249);
0083 7582F9 681 mov dpl,#0xF9
0086 C002 682 push ar2
0088 C003 683 push ar3
008A 120100 684 lcall _Timer3us
008D 685 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:120: Timer3us(249);
008D 7582F9 686 mov dpl,#0xF9
0090 120100 687 lcall _Timer3us
0093 688 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:121: Timer3us(249);
0093 7582F9 689 mov dpl,#0xF9
0096 120100 690 lcall _Timer3us
0099 691 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:122: Timer3us(250);
0099 7582FA 692 mov dpl,#0xFA
009C 120100 693 lcall _Timer3us
009F D003 694 pop ar3
00A1 D002 695 pop ar2
00A3 696 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:117: for(j=ms; j!=0; j--)
00A3 1A 697 dec r2
00A4 BAFF68 698 cjne r2,#0xff,L004011?
00A7 1B 699 dec r3
00A8 700 L004011?:
00A8 8001 701 sjmp L004001?
00AA 702 ;------------------------------------------------------------
00AA 703 ;Allocation info for local variables in function 'countzero'
00AA 704 ;------------------------------------------------------------
00AA 705 ;j Allocated to registers r2
00AA 706 ;------------------------------------------------------------
00AA 707 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:126: unsigned char countzero(void)
00AA 708 ; -----------------------------------------
00AA 709 ; function countzero
00AA 710 ; -----------------------------------------
00AA 711 _countzero:
00AA 712 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:130: j=0;
00AA 7A00 713 mov r2,#0x00
00AC 714 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:132: if (P0_0==0) j++;
00AC 2080A8 715 jb _P0_0,L005002?
00AF 7A01 716 mov r2,#0x01
00B1 717 L005002?:
00B1 718 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:133: if (P0_1==0) j++;
00B1 2081E8 719 jb _P0_1,L005004?
00B4 0A 720 inc r2
00B5 721 L005004?:
00B5 722 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:134: if (P0_2==0) j++;
00B5 208228 723 jb _P0_2,L005006?
00B8 0A 724 inc r2
00B9 725 L005006?:
00B9 726 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:135: if (P0_3==0) j++;
00B9 208368 727 jb _P0_3,L005008?
00BC 0A 728 inc r2
00BD 729 L005008?:
00BD 730 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:138: if (P0_6==0) j++;
00BD 2086A8 731 jb _P0_6,L005010?
00C0 0A 732 inc r2
00C1 733 L005010?:
00C1 734 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:139: if (P0_7==0) j++;
00C1 2087E8 735 jb _P0_7,L005012?
00C4 0A 736 inc r2
00C5 737 L005012?:
00C5 738 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:141: if (P1_0==0) j++;
00C5 209028 739 jb _P1_0,L005014?
00C8 0A 740 inc r2
00C9 741 L005014?:
00C9 742 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:142: if (P1_1==0) j++;
00C9 209168 743 jb _P1_1,L005016?
00CC 0A 744 inc r2
00CD 745 L005016?:
00CD 746 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:143: if (P1_2==0) j++;
00CD 2092A8 747 jb _P1_2,L005018?
00D0 0A 748 inc r2
00D1 749 L005018?:
00D1 750 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:144: if (P1_3==0) j++;
00D1 2093E8 751 jb _P1_3,L005020?
00D4 0A 752 inc r2
00D5 753 L005020?:
00D5 754 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:145: if (P1_4==0) j++;
00D5 209428 755 jb _P1_4,L005022?
00D8 0A 756 inc r2
00D9 757 L005022?:
00D9 758 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:146: if (P1_5==0) j++;
00D9 209568 759 jb _P1_5,L005024?
00DC 0A 760 inc r2
00DD 761 L005024?:
00DD 762 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:147: if (P1_6==0) j++;
00DD 2096A8 763 jb _P1_6,L005026?
00E0 0A 764 inc r2
00E1 765 L005026?:
00E1 766 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:148: if (P1_7==0) j++;
00E1 2097E8 767 jb _P1_7,L005028?
00E4 0A 768 inc r2
00E5 769 L005028?:
00E5 770 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:150: if (P2_0==0) j++;
00E5 20A028 771 jb _P2_0,L005030?
00E8 0A 772 inc r2
00E9 773 L005030?:
00E9 774 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:151: if (P2_1==0) j++;
00E9 20A168 775 jb _P2_1,L005032?
00EC 0A 776 inc r2
00ED 777 L005032?:
00ED 778 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:152: if (P2_2==0) j++;
00ED 20A2A8 779 jb _P2_2,L005034?
00F0 0A 780 inc r2
00F1 781 L005034?:
00F1 782 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:153: if (P2_3==0) j++;
00F1 20A3E8 783 jb _P2_3,L005036?
00F4 0A 784 inc r2
00F5 785 L005036?:
00F5 786 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:154: if (P2_4==0) j++;
00F5 20A428 787 jb _P2_4,L005038?
00F8 0A 788 inc r2
00F9 789 L005038?:
00F9 790 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:155: if (P2_5==0) j++;
00F9 20A568 791 jb _P2_5,L005040?
00FC 0A 792 inc r2
00FD 793 L005040?:
00FD 794 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:156: if (P2_6==0) j++;
00FD 20A6A8 795 jb _P2_6,L005042?
0100 0A 796 inc r2
0101 797 L005042?:
0101 798 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:158: if (P3_0==0) j++;
0101 20B0E8 799 jb _P3_0,L005044?
0104 0A 800 inc r2
0105 801 L005044?:
0105 802 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:159: if (P3_1==0) j++;
0105 20B128 803 jb _P3_1,L005046?
0108 0A 804 inc r2
0109 805 L005046?:
0109 806 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:160: if (P3_2==0) j++;
0109 20B268 807 jb _P3_2,L005048?
010C 0A 808 inc r2
010D 809 L005048?:
010D 810 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:161: if (P3_3==0) j++;
010D 20B3A8 811 jb _P3_3,L005050?
0110 0A 812 inc r2
0111 813 L005050?:
0111 814 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:162: if (P3_7==0) j++;
0111 20B7E8 815 jb _P3_7,L005052?
0114 0A 816 inc r2
0115 817 L005052?:
0115 818 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:164: return j;
0115 8A82 819 mov dpl,r2
0117 22 820 ret
0118 821 ;------------------------------------------------------------
0118 822 ;Allocation info for local variables in function 'Set_Pin_Output'
0118 823 ;------------------------------------------------------------
0118 824 ;pin Allocated to registers r2
0118 825 ;mask Allocated to registers r3
0118 826 ;------------------------------------------------------------
0118 827 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:167: void Set_Pin_Output (unsigned char pin)
0118 828 ; -----------------------------------------
0118 829 ; function Set_Pin_Output
0118 830 ; -----------------------------------------
0118 831 _Set_Pin_Output:
0118 AA82 832 mov r2,dpl
011A 833 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:171: mask=(1<<(pin&0x7));
011A 7407 834 mov a,#0x07
011C 5A 835 anl a,r2
011D F5F0 836 mov b,a
011F 05F0 837 inc b
0121 7401 838 mov a,#0x01
0123 8001 839 sjmp L006011?
0125 840 L006009?:
0125 25E0 841 add a,acc
0127 842 L006011?:
0127 D5F0A8 843 djnz b,L006009?
012A FB 844 mov r3,a
012B 845 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:172: switch(pin/0x10)
012B EA 846 mov a,r2
012C C4 847 swap a
012D 540F 848 anl a,#0x0f
012F FA 849 mov r2,a
0130 24FC 850 add a,#0xff - 0x03
0132 4001 851 jc L006006?
0134 EA 852 mov a,r2
0135 2A 853 add a,r2
0136 2A 854 add a,r2
0137 90BF28 855 mov dptr,#L006013?
013A 73 856 jmp @a+dptr
013B 857 L006013?:
013B 020100 858 ljmp L006001?
013E 020100 859 ljmp L006002?
0141 020100 860 ljmp L006003?
0144 020100 861 ljmp L006004?
0147 862 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:174: case 0: P0MDOUT |= mask; break;
0147 863 L006001?:
0147 EB 864 mov a,r3
0148 42A4 865 orl _P0MDOUT,a
014A 866 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:175: case 1: P1MDOUT |= mask; break;
014A 22 867 ret
014B 868 L006002?:
014B EB 869 mov a,r3
014C 42A5 870 orl _P1MDOUT,a
014E 871 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:176: case 2: P2MDOUT |= mask; break;
014E 22 872 ret
014F 873 L006003?:
014F EB 874 mov a,r3
0150 42A6 875 orl _P2MDOUT,a
0152 876 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:177: case 3: P3MDOUT |= mask; break;
0152 22 877 ret
0153 878 L006004?:
0153 EB 879 mov a,r3
0154 429C 880 orl _P3MDOUT,a
0156 881 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:178: }
0156 882 L006006?:
0156 22 883 ret
0157 884 ;------------------------------------------------------------
0157 885 ;Allocation info for local variables in function 'Set_Pin_Input'
0157 886 ;------------------------------------------------------------
0157 887 ;pin Allocated to registers r2
0157 888 ;mask Allocated to registers r3
0157 889 ;------------------------------------------------------------
0157 890 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:181: void Set_Pin_Input (unsigned char pin)
0157 891 ; -----------------------------------------
0157 892 ; function Set_Pin_Input
0157 893 ; -----------------------------------------
0157 894 _Set_Pin_Input:
0157 AA82 895 mov r2,dpl
0159 896 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:185: mask=(1<<(pin&0x7));
0159 7407 897 mov a,#0x07
015B 5A 898 anl a,r2
015C F5F0 899 mov b,a
015E 05F0 900 inc b
0160 7401 901 mov a,#0x01
0162 8001 902 sjmp L007011?
0164 903 L007009?:
0164 25E0 904 add a,acc
0166 905 L007011?:
0166 D5F0A8 906 djnz b,L007009?
0169 907 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:186: mask=~mask;
0169 F4 908 cpl a
016A FB 909 mov r3,a
016B 910 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:187: switch(pin/0x10)
016B EA 911 mov a,r2
016C C4 912 swap a
016D 540F 913 anl a,#0x0f
016F FA 914 mov r2,a
0170 24FC 915 add a,#0xff - 0x03
0172 4001 916 jc L007006?
0174 EA 917 mov a,r2
0175 2A 918 add a,r2
0176 2A 919 add a,r2
0177 90C128 920 mov dptr,#L007013?
017A 73 921 jmp @a+dptr
017B 922 L007013?:
017B 020100 923 ljmp L007001?
017E 020100 924 ljmp L007002?
0181 020100 925 ljmp L007003?
0184 020100 926 ljmp L007004?
0187 927 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:189: case 0: P0MDOUT &= mask; break;
0187 928 L007001?:
0187 EB 929 mov a,r3
0188 52A4 930 anl _P0MDOUT,a
018A 931 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:190: case 1: P1MDOUT &= mask; break;
018A 22 932 ret
018B 933 L007002?:
018B EB 934 mov a,r3
018C 52A5 935 anl _P1MDOUT,a
018E 936 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:191: case 2: P2MDOUT &= mask; break;
018E 22 937 ret
018F 938 L007003?:
018F EB 939 mov a,r3
0190 52A6 940 anl _P2MDOUT,a
0192 941 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:192: case 3: P3MDOUT &= mask; break;
0192 22 942 ret
0193 943 L007004?:
0193 EB 944 mov a,r3
0194 529C 945 anl _P3MDOUT,a
0196 946 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:193: }
0196 947 L007006?:
0196 22 948 ret
0197 949 ;------------------------------------------------------------
0197 950 ;Allocation info for local variables in function 'Set_Pin_One'
0197 951 ;------------------------------------------------------------
0197 952 ;pin Allocated to registers r2
0197 953 ;mask Allocated to registers r3
0197 954 ;------------------------------------------------------------
0197 955 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:196: void Set_Pin_One (unsigned char pin)
0197 956 ; -----------------------------------------
0197 957 ; function Set_Pin_One
0197 958 ; -----------------------------------------
0197 959 _Set_Pin_One:
0197 AA82 960 mov r2,dpl
0199 961 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:200: mask=(1<<(pin&0x7));
0199 7407 962 mov a,#0x07
019B 5A 963 anl a,r2
019C F5F0 964 mov b,a
019E 05F0 965 inc b
01A0 7401 966 mov a,#0x01
01A2 8001 967 sjmp L008011?
01A4 968 L008009?:
01A4 25E0 969 add a,acc
01A6 970 L008011?:
01A6 D5F0A8 971 djnz b,L008009?
01A9 FB 972 mov r3,a
01AA 973 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:201: switch(pin/0x10)
01AA EA 974 mov a,r2
01AB C4 975 swap a
01AC 540F 976 anl a,#0x0f
01AE FA 977 mov r2,a
01AF 24FC 978 add a,#0xff - 0x03
01B1 4001 979 jc L008006?
01B3 EA 980 mov a,r2
01B4 2A 981 add a,r2
01B5 2A 982 add a,r2
01B6 90C328 983 mov dptr,#L008013?
01B9 73 984 jmp @a+dptr
01BA 985 L008013?:
01BA 020100 986 ljmp L008001?
01BD 020100 987 ljmp L008002?
01C0 020100 988 ljmp L008003?
01C3 020100 989 ljmp L008004?
01C6 990 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:203: case 0: P0 |= mask; break;
01C6 991 L008001?:
01C6 EB 992 mov a,r3
01C7 4280 993 orl _P0,a
01C9 994 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:204: case 1: P1 |= mask; break;
01C9 22 995 ret
01CA 996 L008002?:
01CA EB 997 mov a,r3
01CB 4290 998 orl _P1,a
01CD 999 ; C:\Users\carso\Documents\1. School\0. Spring 2018\Elec 292\lab4\autotest_jc.c:205: case 2: P2 |= mask; break;
01CD 22 1000 ret