-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.as
1677 lines (1550 loc) · 46.6 KB
/
main.as
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
subtitle "Microchip MPLAB XC8 C Compiler v2.32 (Free license) build 20210201212658 Og9 "
pagewidth 120
opt flic
processor 18F4550
include "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\18f4550.cgen.inc"
getbyte macro val,pos
(((val) >> (8 * pos)) and 0xff)
endm
byte0 macro val
(getbyte(val,0))
endm
byte1 macro val
(getbyte(val,1))
endm
byte2 macro val
(getbyte(val,2))
endm
byte3 macro val
(getbyte(val,3))
endm
byte4 macro val
(getbyte(val,4))
endm
byte5 macro val
(getbyte(val,5))
endm
byte6 macro val
(getbyte(val,6))
endm
byte7 macro val
(getbyte(val,7))
endm
getword macro val,pos
(((val) >> (8 * pos)) and 0xffff)
endm
word0 macro val
(getword(val,0))
endm
word1 macro val
(getword(val,2))
endm
word2 macro val
(getword(val,4))
endm
word3 macro val
(getword(val,6))
endm
gettword macro val,pos
(((val) >> (8 * pos)) and 0xffffff)
endm
tword0 macro val
(gettword(val,0))
endm
tword1 macro val
(gettword(val,3))
endm
tword2 macro val
(gettword(val,6))
endm
getdword macro val,pos
(((val) >> (8 * pos)) and 0xffffffff)
endm
dword0 macro val
(getdword(val,0))
endm
dword1 macro val
(getdword(val,4))
endm
clrc macro
bcf status,0
endm
setc macro
bsf status,0
endm
clrz macro
bcf status,2
endm
setz macro
bsf status,2
endm
skipnz macro
btfsc status,2
endm
skipz macro
btfss status,2
endm
skipnc macro
btfsc status,0
endm
skipc macro
btfss status,0
endm
pushw macro
movwf postinc1
endm
pushf macro arg1
movff arg1, postinc1
endm
popw macro
movf postdec1,f
movf indf1,w
endm
popf macro arg1
movf postdec1,f
movff indf1,arg1
endm
popfc macro arg1
movff plusw1,arg1
decfsz fsr1,f
endm
global __ramtop
global __accesstop
# 55 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
SPPDATA equ 0F62h ;#
# 75 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
SPPCFG equ 0F63h ;#
# 152 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
SPPEPS equ 0F64h ;#
# 226 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
SPPCON equ 0F65h ;#
# 252 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
UFRM equ 0F66h ;#
# 259 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
UFRML equ 0F66h ;#
# 337 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
UFRMH equ 0F67h ;#
# 377 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
UIR equ 0F68h ;#
# 433 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
UIE equ 0F69h ;#
# 489 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
UEIR equ 0F6Ah ;#
# 540 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
UEIE equ 0F6Bh ;#
# 591 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
USTAT equ 0F6Ch ;#
# 651 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
UCON equ 0F6Dh ;#
# 702 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
UADDR equ 0F6Eh ;#
# 766 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
UCFG equ 0F6Fh ;#
# 845 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
UEP0 equ 0F70h ;#
# 953 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
UEP1 equ 0F71h ;#
# 1061 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
UEP2 equ 0F72h ;#
# 1169 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
UEP3 equ 0F73h ;#
# 1277 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
UEP4 equ 0F74h ;#
# 1385 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
UEP5 equ 0F75h ;#
# 1493 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
UEP6 equ 0F76h ;#
# 1601 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
UEP7 equ 0F77h ;#
# 1709 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
UEP8 equ 0F78h ;#
# 1785 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
UEP9 equ 0F79h ;#
# 1861 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
UEP10 equ 0F7Ah ;#
# 1937 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
UEP11 equ 0F7Bh ;#
# 2013 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
UEP12 equ 0F7Ch ;#
# 2089 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
UEP13 equ 0F7Dh ;#
# 2165 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
UEP14 equ 0F7Eh ;#
# 2241 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
UEP15 equ 0F7Fh ;#
# 2317 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
PORTA equ 0F80h ;#
# 2456 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
PORTB equ 0F81h ;#
# 2566 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
PORTC equ 0F82h ;#
# 2708 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
PORTD equ 0F83h ;#
# 2829 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
PORTE equ 0F84h ;#
# 2976 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
LATA equ 0F89h ;#
# 3076 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
LATB equ 0F8Ah ;#
# 3188 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
LATC equ 0F8Bh ;#
# 3266 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
LATD equ 0F8Ch ;#
# 3378 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
LATE equ 0F8Dh ;#
# 3430 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
TRISA equ 0F92h ;#
# 3435 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
DDRA equ 0F92h ;#
# 3628 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
TRISB equ 0F93h ;#
# 3633 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
DDRB equ 0F93h ;#
# 3850 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
TRISC equ 0F94h ;#
# 3855 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
DDRC equ 0F94h ;#
# 4004 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
TRISD equ 0F95h ;#
# 4009 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
DDRD equ 0F95h ;#
# 4226 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
TRISE equ 0F96h ;#
# 4231 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
DDRE equ 0F96h ;#
# 4328 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
OSCTUNE equ 0F9Bh ;#
# 4387 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
PIE1 equ 0F9Dh ;#
# 4471 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
PIR1 equ 0F9Eh ;#
# 4555 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
IPR1 equ 0F9Fh ;#
# 4639 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
PIE2 equ 0FA0h ;#
# 4710 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
PIR2 equ 0FA1h ;#
# 4781 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
IPR2 equ 0FA2h ;#
# 4852 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
EECON1 equ 0FA6h ;#
# 4918 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
EECON2 equ 0FA7h ;#
# 4925 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
EEDATA equ 0FA8h ;#
# 4932 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
EEADR equ 0FA9h ;#
# 4939 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
RCSTA equ 0FABh ;#
# 4944 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
RCSTA1 equ 0FABh ;#
# 5149 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
TXSTA equ 0FACh ;#
# 5154 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
TXSTA1 equ 0FACh ;#
# 5405 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
TXREG equ 0FADh ;#
# 5410 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
TXREG1 equ 0FADh ;#
# 5417 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
RCREG equ 0FAEh ;#
# 5422 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
RCREG1 equ 0FAEh ;#
# 5429 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
SPBRG equ 0FAFh ;#
# 5434 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
SPBRG1 equ 0FAFh ;#
# 5441 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
SPBRGH equ 0FB0h ;#
# 5448 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
T3CON equ 0FB1h ;#
# 5569 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
TMR3 equ 0FB2h ;#
# 5576 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
TMR3L equ 0FB2h ;#
# 5583 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
TMR3H equ 0FB3h ;#
# 5590 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
CMCON equ 0FB4h ;#
# 5680 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
CVRCON equ 0FB5h ;#
# 5765 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
ECCP1AS equ 0FB6h ;#
# 5770 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
CCP1AS equ 0FB6h ;#
# 5927 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
ECCP1DEL equ 0FB7h ;#
# 5932 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
CCP1DEL equ 0FB7h ;#
# 6065 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
BAUDCON equ 0FB8h ;#
# 6070 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
BAUDCTL equ 0FB8h ;#
# 6245 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
CCP2CON equ 0FBAh ;#
# 6309 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
CCPR2 equ 0FBBh ;#
# 6316 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
CCPR2L equ 0FBBh ;#
# 6323 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
CCPR2H equ 0FBCh ;#
# 6330 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
CCP1CON equ 0FBDh ;#
# 6335 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
ECCP1CON equ 0FBDh ;#
# 6492 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
CCPR1 equ 0FBEh ;#
# 6499 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
CCPR1L equ 0FBEh ;#
# 6506 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
CCPR1H equ 0FBFh ;#
# 6513 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
ADCON2 equ 0FC0h ;#
# 6584 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
ADCON1 equ 0FC1h ;#
# 6669 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
ADCON0 equ 0FC2h ;#
# 6788 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
ADRES equ 0FC3h ;#
# 6795 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
ADRESL equ 0FC3h ;#
# 6802 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
ADRESH equ 0FC4h ;#
# 6809 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
SSPCON2 equ 0FC5h ;#
# 6871 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
SSPCON1 equ 0FC6h ;#
# 6941 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
SSPSTAT equ 0FC7h ;#
# 7189 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
SSPADD equ 0FC8h ;#
# 7196 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
SSPBUF equ 0FC9h ;#
# 7203 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
T2CON equ 0FCAh ;#
# 7301 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
PR2 equ 0FCBh ;#
# 7306 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
MEMCON equ 0FCBh ;#
# 7411 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
TMR2 equ 0FCCh ;#
# 7418 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
T1CON equ 0FCDh ;#
# 7521 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
TMR1 equ 0FCEh ;#
# 7528 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
TMR1L equ 0FCEh ;#
# 7535 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
TMR1H equ 0FCFh ;#
# 7542 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
RCON equ 0FD0h ;#
# 7691 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
WDTCON equ 0FD1h ;#
# 7719 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
HLVDCON equ 0FD2h ;#
# 7724 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
LVDCON equ 0FD2h ;#
# 7989 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
OSCCON equ 0FD3h ;#
# 8072 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
T0CON equ 0FD5h ;#
# 8142 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
TMR0 equ 0FD6h ;#
# 8149 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
TMR0L equ 0FD6h ;#
# 8156 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
TMR0H equ 0FD7h ;#
# 8163 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
STATUS equ 0FD8h ;#
# 8234 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
FSR2 equ 0FD9h ;#
# 8241 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
FSR2L equ 0FD9h ;#
# 8248 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
FSR2H equ 0FDAh ;#
# 8255 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
PLUSW2 equ 0FDBh ;#
# 8262 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
PREINC2 equ 0FDCh ;#
# 8269 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
POSTDEC2 equ 0FDDh ;#
# 8276 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
POSTINC2 equ 0FDEh ;#
# 8283 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
INDF2 equ 0FDFh ;#
# 8290 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
BSR equ 0FE0h ;#
# 8297 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
FSR1 equ 0FE1h ;#
# 8304 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
FSR1L equ 0FE1h ;#
# 8311 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
FSR1H equ 0FE2h ;#
# 8318 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
PLUSW1 equ 0FE3h ;#
# 8325 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
PREINC1 equ 0FE4h ;#
# 8332 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
POSTDEC1 equ 0FE5h ;#
# 8339 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
POSTINC1 equ 0FE6h ;#
# 8346 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
INDF1 equ 0FE7h ;#
# 8353 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
WREG equ 0FE8h ;#
# 8360 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
FSR0 equ 0FE9h ;#
# 8367 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
FSR0L equ 0FE9h ;#
# 8374 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
FSR0H equ 0FEAh ;#
# 8381 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
PLUSW0 equ 0FEBh ;#
# 8388 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
PREINC0 equ 0FECh ;#
# 8395 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
POSTDEC0 equ 0FEDh ;#
# 8402 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
POSTINC0 equ 0FEEh ;#
# 8409 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
INDF0 equ 0FEFh ;#
# 8416 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
INTCON3 equ 0FF0h ;#
# 8508 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
INTCON2 equ 0FF1h ;#
# 8585 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
INTCON equ 0FF2h ;#
# 8702 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
PROD equ 0FF3h ;#
# 8709 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
PRODL equ 0FF3h ;#
# 8716 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
PRODH equ 0FF4h ;#
# 8723 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
TABLAT equ 0FF5h ;#
# 8732 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
TBLPTR equ 0FF6h ;#
# 8739 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
TBLPTRL equ 0FF6h ;#
# 8746 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
TBLPTRH equ 0FF7h ;#
# 8753 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
TBLPTRU equ 0FF8h ;#
# 8762 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
PCLAT equ 0FF9h ;#
# 8769 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
PC equ 0FF9h ;#
# 8776 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
PCL equ 0FF9h ;#
# 8783 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
PCLATH equ 0FFAh ;#
# 8790 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
PCLATU equ 0FFBh ;#
# 8797 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
STKPTR equ 0FFCh ;#
# 8873 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
TOS equ 0FFDh ;#
# 8880 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
TOSL equ 0FFDh ;#
# 8887 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
TOSH equ 0FFEh ;#
# 8894 "D:\ProgramFiles\Microchip\xc8\v2.32\pic\include\proc\pic18f4550.h"
TOSU equ 0FFFh ;#
debug_source C
FNCALL _main,_TMR0_1S_config
FNCALL _main,_USBDeviceInit
FNCALL _main,_USBDeviceTasks
FNCALL _main,_USBTransferOnePacket
FNCALL _main,_boot
FNCALL _main,_init_APP
FNCALL _init_APP,_TMR0_1S_config
FNCALL _boot,_HID_rx
FNCALL _boot,_Read_event
FNCALL _boot,_Write_event
FNCALL _boot,_erase_falsh
FNCALL _boot,_response_event
FNCALL _Write_event,_HID_rx
FNCALL _Write_event,_flash_write_B32
FNCALL _Write_event,_response_event
FNCALL _Read_event,_HID_rx
FNCALL _Read_event,_flash_read_byte
FNCALL _Read_event,_response_event
FNROOT _main
global _USBOutHandle
global _USBDeviceState
global _SYS_state
_SYS_state set 0x0
global _PT0_BOOT
_PT0_BOOT set 0x1
global _ReceivedDataBuffer
_ReceivedDataBuffer set 0x500
global _PORTB
_PORTB set 0xF81
global _LATB
_LATB set 0xF8A
global _UCONbits
_UCONbits set 0xF6D
global _T0CON
_T0CON set 0xFD5
global _INTCONbits
_INTCONbits set 0xFF2
global _LATBbits
_LATBbits set 0xF8A
global _TRISB
_TRISB set 0xF93
; #config settings
config pad_punits = on
config apply_mask = off
config ignore_cmsgs = off
config default_configs = off
config default_idlocs = off
config PLLDIV = "4"
config CPUDIV = "OSC1_PLL2"
config USBDIV = "2"
config FOSC = "HSPLL_HS"
config FCMEN = "OFF"
config IESO = "OFF"
config PWRT = "OFF"
config BOR = "ON"
config BORV = "3"
config VREGEN = "ON"
config WDT = "OFF"
config WDTPS = "32768"
config PBADEN = "OFF"
config LPT1OSC = "OFF"
config MCLRE = "ON"
config STVREN = "ON"
config LVP = "OFF"
config XINST = "OFF"
config CP0 = "OFF"
config CP1 = "OFF"
config CPB = "OFF"
config WRT0 = "OFF"
config WRT1 = "OFF"
config WRTC = "OFF"
config WRTB = "OFF"
config EBTR0 = "OFF"
config EBTR1 = "OFF"
config EBTRB = "OFF"
file "main.as"
line #
psect cinit,class=CODE,delta=1,reloc=2
global __pcinit
__pcinit:
global start_initialization
start_initialization:
global __initialization
__initialization:
psect bssCOMRAM,class=COMRAM,space=1,noexec,lowdata
global __pbssCOMRAM
__pbssCOMRAM:
global _USBInHandle
_USBInHandle:
ds 2
global _USBOutHandle
_USBOutHandle:
ds 2
file "main.as"
line #
psect cinit
; Clear objects allocated to COMRAM (4 bytes)
global __pbssCOMRAM
clrf (__pbssCOMRAM+3)&0xffh,c
clrf (__pbssCOMRAM+2)&0xffh,c
clrf (__pbssCOMRAM+1)&0xffh,c
clrf (__pbssCOMRAM+0)&0xffh,c
psect cinit,class=CODE,delta=1
global end_of_initialization,__end_of__initialization
;End of C runtime variable initialization code
end_of_initialization:
__end_of__initialization:
GLOBAL __Lmediumconst
movlw low highword(__Lmediumconst)
movwf tblptru
movlb 0
goto _main ;jump to C main() function
psect cstackCOMRAM,class=COMRAM,space=1,noexec,lowdata
global __pcstackCOMRAM
__pcstackCOMRAM:
?_USBDeviceInit: ; 1 bytes @ 0x0
??_USBDeviceInit: ; 1 bytes @ 0x0
?_TMR0_1S_config: ; 1 bytes @ 0x0
??_TMR0_1S_config: ; 1 bytes @ 0x0
?_USBDeviceTasks: ; 1 bytes @ 0x0
??_USBDeviceTasks: ; 1 bytes @ 0x0
??_USBTransferOnePacket: ; 1 bytes @ 0x0
?_boot: ; 1 bytes @ 0x0
?_init_APP: ; 1 bytes @ 0x0
??_init_APP: ; 1 bytes @ 0x0
?_response_event: ; 1 bytes @ 0x0
??_response_event: ; 1 bytes @ 0x0
?_HID_rx: ; 1 bytes @ 0x0
??_HID_rx: ; 1 bytes @ 0x0
?_Write_event: ; 1 bytes @ 0x0
??_Write_event: ; 1 bytes @ 0x0
?_erase_falsh: ; 1 bytes @ 0x0
??_erase_falsh: ; 1 bytes @ 0x0
?_Read_event: ; 1 bytes @ 0x0
??_Read_event: ; 1 bytes @ 0x0
?_flash_write_B32: ; 1 bytes @ 0x0
??_flash_write_B32: ; 1 bytes @ 0x0
?_flash_read_byte: ; 1 bytes @ 0x0
??_flash_read_byte: ; 1 bytes @ 0x0
?_main: ; 1 bytes @ 0x0
?_USBTransferOnePacket: ; 2 bytes @ 0x0
global _USBTransferOnePacket$1
_USBTransferOnePacket$1: ; 1 bytes @ 0x0
global _response_event$1
_response_event$1: ; 1 bytes @ 0x0
ds 1
global Write_event@i
Write_event@i: ; 1 bytes @ 0x1
global _USBTransferOnePacket$2
_USBTransferOnePacket$2: ; 2 bytes @ 0x1
ds 1
??_boot: ; 1 bytes @ 0x2
??_main: ; 1 bytes @ 0x2
ds 1
global _USBTransferOnePacket$3
_USBTransferOnePacket$3: ; 1 bytes @ 0x3
ds 1
;!
;!Data Sizes:
;! Strings 0
;! Constant 0
;! Data 0
;! BSS 5
;! Persistent 0
;! Stack 0
;!
;!Auto Spaces:
;! Space Size Autos Used
;! COMRAM 94 3 7
;! BANK0 160 0 0
;! BANK1 256 0 0
;! BANK2 256 0 0
;! BANK3 256 0 0
;! BANK4 256 0 0
;! BANK5 256 0 0
;! BANK6 256 0 0
;! BANK7 256 0 0
;!
;!Pointer List with Targets:
;!
;! USBTransferOnePacket$2 PTR unsigned char size(2) Largest target is 0
;! -> ReceivedDataBuffer(BIGRAMl[0]),
;!
;! USBInHandle PTR volatile void size(2) Largest target is 0
;! -> NULL(NULL[0]),
;!
;! sp__USBTransferOnePacket PTR void size(2) Largest target is 2047
;! -> RAM(DATA[2047]),
;!
;! USBOutHandle PTR volatile void size(2) Largest target is 2047
;! -> RAM(DATA[2047]), NULL(NULL[0]),
;!
;!
;!Critical Paths under _main in COMRAM
;!
;! _boot->_Write_event
;!
;!Critical Paths under _main in BANK0
;!
;! None.
;!
;!Critical Paths under _main in BANK1
;!
;! None.
;!
;!Critical Paths under _main in BANK2
;!
;! None.
;!
;!Critical Paths under _main in BANK3
;!
;! None.
;!
;!Critical Paths under _main in BANK4
;!
;! None.
;!
;!Critical Paths under _main in BANK5
;!
;! None.
;!
;!Critical Paths under _main in BANK6
;!
;! None.
;!
;!Critical Paths under _main in BANK7
;!
;! None.
;;
;;Main: autosize = 0, tempsize = 1, incstack = 0, save=0
;;
;!
;!Call Graph Tables:
;!
;! ---------------------------------------------------------------------------------
;! (Depth) Function Calls Base Space Used Autos Params Refs
;! ---------------------------------------------------------------------------------
;! (0) _main 1 1 0 383
;! 2 COMRAM 1 1 0
;! _TMR0_1S_config
;! _USBDeviceInit
;! _USBDeviceTasks
;! _USBTransferOnePacket
;! _boot
;! _init_APP
;! ---------------------------------------------------------------------------------
;! (1) _init_APP 0 0 0 0
;! _TMR0_1S_config
;! ---------------------------------------------------------------------------------
;! (2) _TMR0_1S_config 0 0 0 0
;! ---------------------------------------------------------------------------------
;! (1) _boot 0 0 0 347
;! _HID_rx
;! _Read_event
;! _Write_event
;! _erase_falsh
;! _response_event
;! ---------------------------------------------------------------------------------
;! (2) _erase_falsh 0 0 0 0
;! ---------------------------------------------------------------------------------
;! (2) _Write_event 2 2 0 131
;! 0 COMRAM 2 2 0
;! _HID_rx
;! _flash_write_B32
;! _response_event
;! ---------------------------------------------------------------------------------
;! (3) _flash_write_B32 0 0 0 0
;! ---------------------------------------------------------------------------------
;! (2) _Read_event 2 2 0 108
;! 0 COMRAM 1 1 0
;! _HID_rx
;! _flash_read_byte
;! _response_event
;! ---------------------------------------------------------------------------------
;! (2) _response_event 1 0 1 108
;! ---------------------------------------------------------------------------------
;! (3) _flash_read_byte 0 0 0 0
;! ---------------------------------------------------------------------------------
;! (3) _HID_rx 0 0 0 0
;! ---------------------------------------------------------------------------------
;! (1) _USBTransferOnePacket 4 0 4 36
;! ---------------------------------------------------------------------------------
;! (1) _USBDeviceTasks 0 0 0 0
;! ---------------------------------------------------------------------------------
;! (1) _USBDeviceInit 0 0 0 0
;! ---------------------------------------------------------------------------------
;! Estimated maximum stack depth 3
;! ---------------------------------------------------------------------------------
;!
;! Call Graph Graphs:
;!
;! _main (ROOT)
;! _TMR0_1S_config
;! _USBDeviceInit
;! _USBDeviceTasks
;! _USBTransferOnePacket
;! _boot
;! _HID_rx
;! _Read_event
;! _HID_rx
;! _flash_read_byte
;! _response_event
;! _Write_event
;! _HID_rx
;! _flash_write_B32
;! _response_event
;! _erase_falsh
;! _response_event
;! _init_APP
;! _TMR0_1S_config
;!
;! Address spaces:
;!Name Size Autos Total Cost Usage
;!BIGRAMl 4FE 0 0 22 0.0%
;!BIGRAMh 300 0 0 21 0.0%
;!EEDATA 100 0 0 0 0.0%
;!BITBANK7 100 0 0 18 0.0%
;!BANK7 100 0 0 19 0.0%
;!BITBANK6 100 0 0 16 0.0%
;!BANK6 100 0 0 17 0.0%
;!BITBANK5 100 0 0 14 0.0%
;!BANK5 100 0 0 15 0.0%
;!BITBANK4 100 0 0 12 0.0%
;!BANK4 100 0 0 13 0.0%
;!BITBANK3 100 0 0 10 0.0%
;!BANK3 100 0 0 11 0.0%
;!BITBANK2 100 0 0 8 0.0%
;!BANK2 100 0 0 9 0.0%
;!BITBANK1 100 0 0 6 0.0%
;!BANK1 100 0 0 7 0.0%
;!BITBANK0 A0 0 0 4 0.0%
;!BANK0 A0 0 0 5 0.0%
;!BITCOMRAM 5E 0 0 0 0.0%
;!COMRAM 5E 3 7 1 7.4%
;!BITSFR 0 0 0 200 0.0%
;!SFR 0 0 0 200 0.0%
;!STACK 0 0 0 2 0.0%
;!NULL 0 0 0 0 0.0%
;!ABS 0 0 7 20 0.0%
;!DATA 0 0 7 3 0.0%
;!CODE 0 0 0 0 0.0%
global _main
;; *************** function _main *****************
;; Defined at:
;; line 63 in file "main.c"
;; Parameters: Size Location Type
;; None
;; Auto vars: Size Location Type
;; None
;; Return value: Size Location Type
;; 1 wreg void
;; Registers used:
;; wreg, fsr0l, fsr0h, fsr1l, fsr1h, fsr1l, fsr1h, fsr2l, fsr2h, status,2, status,0, pclath, btemp, btemp+1, btemp+2, btemp+3, btemp+4, btemp+5, btemp+6, btemp+7, btemp+8, btemp+9, btemp+10, btemp+11, btemp+12, btemp+13, btemp+14, btemp+15, btemp+16, btemp+17, btemp+18, btemp+19, btemp+20, btemp+21, btemp+22, btemp+23, btemp+24, btemp+25, btemp+26, btemp+27, btemp+28, btemp+29, btemp+30, btemp+31, tosl, structret, tblptrl, tblptrh, tblptru, prodl, prodh, bsr, cstack
;; Tracked objects:
;; On entry : 0/0
;; On exit : 0/0
;; Unchanged: 0/0
;; Data sizes: COMRAM BANK0 BANK1 BANK2 BANK3 BANK4 BANK5 BANK6 BANK7
;; Params: 0 0 0 0 0 0 0 0 0
;; Locals: 0 0 0 0 0 0 0 0 0
;; Temps: 1 0 0 0 0 0 0 0 0
;; Totals: 1 0 0 0 0 0 0 0 0
;;Total ram usage: 1 bytes
;; Hardware stack levels required when called: 3
;; This function calls:
;; _TMR0_1S_config
;; _USBDeviceInit
;; _USBDeviceTasks
;; _USBTransferOnePacket
;; _boot
;; _init_APP
;; This function is called by:
;; Startup code after reset
;; This function uses a non-reentrant model
;;
psect text0,class=CODE,space=0,reloc=2,group=0
file "main.c"
line 63
global __ptext0
__ptext0:
psect text0
file "main.c"
line 63
global __size_of_main
__size_of_main equ __end_of_main-_main
_main:
;incstack = 0
callstack 28
line 65
l1070:
call _USBDeviceInit ;wreg free
line 67
l1072:
movlw low(01Fh)
movwf ((c:3987))^0f00h,c ;volatile
line 68
l1074:
movlw low(02h)
movwf ((c:0))^00h,c
line 69
l1076:
bsf ((c:3978))^0f00h,c,5 ;volatile
line 70
l1078:
movlw low(06h)
movwf ((c:1))^00h,c
line 72
l1080:
call _TMR0_1S_config ;wreg free
line 74
goto l1106
l58:
line 76
btfss ((c:4082))^0f00h,c,2 ;volatile
goto u191
goto u190
u191:
goto l1092
u190:
line 78
l1082:
decfsz ((c:1))^00h,c
goto l1088
line 80
l1084:
movlw low(01h)
movwf ((c:0))^00h,c
line 81
l1086:
bcf ((c:4082))^0f00h,c,2 ;volatile
line 82
movlw low(0)
movwf ((c:4053))^0f00h,c ;volatile
line 84
l1088:
call _TMR0_1S_config ;wreg free
line 85
l1090:
btfsc ((c:3978))^0f00h,c,5 ;volatile
goto u201
goto u200
u201:
movlw 1
goto u206
u200:
movlw 0
u206:
xorlw 0ffh
movwf (??_main+0+0)^00h,c
swapf ((??_main+0+0))^00h,c
rlncf ((??_main+0+0))^00h,c
movf ((c:3978))^0f00h,c,w ;volatile
xorwf ((??_main+0+0))^00h,c,w
andlw not (((1<<1)-1)<<5)
xorwf ((??_main+0+0))^00h,c,w
movwf ((c:3978))^0f00h,c ;volatile
line 88
l1092:
call _USBDeviceTasks ;wreg free
line 89
l1094:
lfsr 2,_USBDeviceState
movlw 020h-1
cpfsgt indf2
goto u211
goto u210
u211:
goto l1106
u210:
l1096:
btfss ((c:3949))^0f00h,c,1 ;volatile
goto u221
goto u220
u221:
goto l1098
u220:
goto l1106
line 90
l1098:
movlw low(0)
movwf ((c:_USBTransferOnePacket$1))^00h,c
movlw low(1280)
movwf ((c:_USBTransferOnePacket$2))^00h,c
movlw high(1280)
movwf ((c:_USBTransferOnePacket$2+1))^00h,c
movlw low(040h)
movwf ((c:_USBTransferOnePacket$3))^00h,c
movlw (01h)&0ffh
call _USBTransferOnePacket
movff 0+?_USBTransferOnePacket,(c:_USBOutHandle)
movff 1+?_USBTransferOnePacket,(c:_USBOutHandle+1)
line 91
l1100:
movff 0+(1280+01h),wreg
xorlw 02h
btfss status,2
goto u231
goto u230
u231:
goto l1106
u230:
l1102:
movff 0+(1280+02h),wreg
xorlw 01h
btfss status,2
goto u241
goto u240
u241:
goto l1106