1
GCASM List File (GCBASIC 0.94 2015-10-27)
306
SYSFORLOOPEND1 EQU 34
307
SYSFORLOOPEND2 EQU 57
308
SYSFORLOOPEND3 EQU 116
309
SYSFORLOOPEND4 EQU 112
400
Loc Obj Code Original Assembly
408
000000 2805 GOTO BASPROGRAMSTART
415
000005 203C CALL INITSYS
416
000000 1683 BANKSEL TRISB
417
000000 1683 1303 BANKSEL TRISB
418
000008 1286 BCF TRISB,5
419
000009 1106 BCF TRISB,2
422
000000 1283 BANKSEL CNT
423
000000 1283 1303 BANKSEL CNT
427
00000E 07A0 ADDWF CNT,F
429
000010 00A2 MOVWF PWMCHANNEL
430
000011 0820 MOVF CNT,W
431
000012 00A5 MOVWF SOFTPWMDUTY
433
000014 00A4 MOVWF SOFTPWMCYCLES
434
000015 2051 CALL PWMOUT
436
000017 00A2 MOVWF PWMCHANNEL
437
000018 0820 MOVF CNT,W
438
000019 3CFA SUBLW 250
439
00001A 00A5 MOVWF SOFTPWMDUTY
441
00001C 00A4 MOVWF SOFTPWMCYCLES
442
00001D 2051 CALL PWMOUT
443
00001E 30FA MOVLW 250
444
00001F 0220 SUBWF CNT,W
445
000020 1C03 BTFSS STATUS, C
446
000021 280D GOTO SYSFORLOOP1
449
000023 00A0 MOVWF CNT
452
000025 02A0 SUBWF CNT,F
454
000027 00A2 MOVWF PWMCHANNEL
455
000028 0820 MOVF CNT,W
456
000029 00A5 MOVWF SOFTPWMDUTY
458
00002B 00A4 MOVWF SOFTPWMCYCLES
459
00002C 2051 CALL PWMOUT
461
00002E 00A2 MOVWF PWMCHANNEL
462
00002F 0820 MOVF CNT,W
463
000030 3CFA SUBLW 250
464
000031 00A5 MOVWF SOFTPWMDUTY
466
000033 00A4 MOVWF SOFTPWMCYCLES
467
000034 2051 CALL PWMOUT
468
000035 0820 MOVF CNT,W
470
000037 1C03 BTFSS STATUS, C
471
000038 2824 GOTO SYSFORLOOP2
473
000039 280A GOTO SYSDOLOOP_S1
477
00003B 283A GOTO BASPROGRAMEND
481
000000 1683 BANKSEL ADCON1
482
000000 1683 1303 BANKSEL ADCON1
483
00003E 139F BCF ADCON1,ADFM
484
000000 1283 BANKSEL ADCON0
485
000000 1283 1303 BANKSEL ADCON0
486
000041 101F BCF ADCON0,ADON
487
000000 1683 BANKSEL ANSEL
488
000000 1683 1703 BANKSEL ANSEL
489
000044 0188 CLRF ANSEL
490
000045 0189 CLRF ANSELH
491
000000 1283 BANKSEL CM2CON0
492
000000 1283 1703 BANKSEL CM2CON0
493
000048 1388 BCF CM2CON0,C2ON
494
000049 1387 BCF CM1CON0,C1ON
495
000000 1283 BANKSEL PORTA
496
000000 1283 1303 BANKSEL PORTA
497
00004C 0185 CLRF PORTA
498
00004D 0186 CLRF PORTB
499
00004E 0187 CLRF PORTC
500
00004F 0189 CLRF PORTE
505
000051 01A3 CLRF PWMDUR
507
000053 0224 SUBWF SOFTPWMCYCLES,W
508
000054 1C03 BTFSS STATUS, C
509
000055 2874 GOTO SYSFORLOOPEND3
511
000056 0AA3 INCF PWMDUR,F
512
000057 01A1 CLRF DOPWM
514
000058 0AA1 INCF DOPWM,F
515
000059 0825 MOVF SOFTPWMDUTY,W
516
00005A 0221 SUBWF DOPWM,W
517
00005B 1803 BTFSC STATUS, C
518
00005C 2865 GOTO ELSE4_1
519
00005D 0322 DECF PWMCHANNEL,W
520
00005E 1903 BTFSC STATUS, Z
521
00005F 1686 BSF PORTB,5
523
000061 0222 SUBWF PWMCHANNEL,W
524
000062 1903 BTFSC STATUS, Z
525
000063 1506 BSF PORTB,2
526
000064 286C GOTO ENDIF4
528
000065 0322 DECF PWMCHANNEL,W
529
000066 1903 BTFSC STATUS, Z
530
000067 1286 BCF PORTB,5
532
000069 0222 SUBWF PWMCHANNEL,W
533
00006A 1903 BTFSC STATUS, Z
534
00006B 1106 BCF PORTB,2
536
00006C 30FF MOVLW 255
537
00006D 0221 SUBWF DOPWM,W
538
00006E 1C03 BTFSS STATUS, C
539
00006F 2858 GOTO SYSFORLOOP4
541
000070 0824 MOVF SOFTPWMCYCLES,W
542
000071 0223 SUBWF PWMDUR,W
543
000072 1C03 BTFSS STATUS, C
544
000073 2856 GOTO SYSFORLOOP3