Subversion Repositories svnkaklik

Rev

Rev 322 | Go to most recent revision | Blame | Last modification | View Log | Download

;/////////////////////////////////////////////////////////////////////////////////
;// Code Generator: BoostBasic Compiler - http://www.sourceboost.com
;// Version       : 6.70
;// License Type  : Pro License
;// Limitations   : PIC18 max code size:Unlimited, max RAM banks:Unlimited
;/////////////////////////////////////////////////////////////////////////////////

        ORG 0x00000200
0200  EF63F001          GOTO    _startup
        ORG 0x00000204
0204            send_00000
0204            ; { send ; function begin
0204            label268438562
0204  A89E              BTFSS gbl_pir1,4
0206  D7FE              BRA     label268438562
0208  5006              MOVF send_00000_arg_c, W
020A  6EAD              MOVWF gbl_txreg
020C  0012              RETURN
020E            ; } send function end

        ORG 0x0000020E
020E            receive_00000
020E            ; { receive ; function begin
020E  A2AB              BTFSS gbl_rcsta,1
0210  D002              BRA     label268438551
0212  98AB              BCF gbl_rcsta,4
0214  88AB              BSF gbl_rcsta,4
0216            label268438551
0216  AA9E              BTFSS gbl_pir1,5
0218  D7FE              BRA     label268438551
021A  50AE              MOVF gbl_rcreg, W
021C  6E06              MOVWF CompTempVarRet489
021E  0012              RETURN
0220            ; } receive function end

        ORG 0x00000220
0220            main
0220            ; { main ; function begin
0220  6889              SETF gbl_lata
0222  6A8A              CLRF gbl_latb
0224  688B              SETF gbl_latc
0226  0EF0              MOVLW 0xF0
0228  6E92              MOVWF gbl_trisa
022A  0E3F              MOVLW 0x3F
022C  6E93              MOVWF gbl_trisb
022E  0E9F              MOVLW 0x9F
0230  6E94              MOVWF gbl_trisc
0232  0EC6              MOVLW 0xC6
0234  6EC1              MOVWF gbl_adcon1
0236  0EC0              MOVLW 0xC0
0238  6EC2              MOVWF gbl_adcon0
023A  0E40              MOVLW 0x40
023C  6EAF              MOVWF gbl_spbrg
023E  0EFB              MOVLW 0xFB
0240  14AC              ANDWF gbl_txsta, W
0242  6EAC              MOVWF gbl_txsta
0244  0E20              MOVLW 0x20
0246  10AC              IORWF gbl_txsta, W
0248  6EAC              MOVWF gbl_txsta
024A  0E10              MOVLW 0x10
024C  10AB              IORWF gbl_rcsta, W
024E  6EAB              MOVWF gbl_rcsta
0250  0E80              MOVLW 0x80
0252  10AB              IORWF gbl_rcsta, W
0254  6EAB              MOVWF gbl_rcsta
0256  6A01              CLRF main_1_motors
0258            label268438598
0258  B081              BTFSC gbl_portb,0
025A  D7FE              BRA     label268438598
025C  0EF0              MOVLW 0xF0
025E  6E03              MOVWF main_1_leds
0260  0E80              MOVLW 0x80
0262  6E04              MOVWF main_1_count
0264            label268438603
0264  5004              MOVF main_1_count, W
0266  0800              SUBLW 0x00
0268  E20E              BC      label268438604
026A  0404              DECF main_1_count, W
026C  6E04              MOVWF main_1_count
026E  0E01              MOVLW 0x01
0270  1003              IORWF main_1_leds, W
0272  6E03              MOVWF main_1_leds
0274  0E02              MOVLW 0x02
0276  1003              IORWF main_1_leds, W
0278  6E03              MOVWF main_1_leds
027A  0E04              MOVLW 0x04
027C  1003              IORWF main_1_leds, W
027E  6E03              MOVWF main_1_leds
0280  5003              MOVF main_1_leds, W
0282  6E89              MOVWF gbl_lata
0284  D7EF              BRA     label268438603
0286            label268438604
0286  6803              SETF main_1_leds
0288  6889              SETF gbl_lata
028A            label268438619
028A  6802              SETF main_1_sensors
028C  EC07F001          CALL receive_00000
0290  5006              MOVF CompTempVarRet489, W
0292  6E02              MOVWF main_1_sensors
0294  6A05              CLRF CompTempVar491
0296  A202              BTFSS main_1_sensors,1
0298  D003              BRA     label268438624
029A  A002              BTFSS main_1_sensors,0
029C  D001              BRA     label268438624
029E  2A05              INCF CompTempVar491, F
02A0            label268438624
02A0  5205              MOVF CompTempVar491, F
02A2  E102              BNZ     label268438625
02A4  0E77              MOVLW 0x77
02A6  6E01              MOVWF main_1_motors
02A8            label268438625
02A8  B402              BTFSC main_1_sensors,2
02AA  D002              BRA     label268438628
02AC  0EF7              MOVLW 0xF7
02AE  6E01              MOVWF main_1_motors
02B0            label268438628
02B0  B602              BTFSC main_1_sensors,3
02B2  D002              BRA     label268438631
02B4  0E7F              MOVLW 0x7F
02B6  6E01              MOVWF main_1_motors
02B8            label268438631
02B8  5002              MOVF main_1_sensors, W
02BA  6E89              MOVWF gbl_lata
02BC  5001              MOVF main_1_motors, W
02BE  6E06              MOVWF send_00000_arg_c
02C0  EC02F001          CALL send_00000
02C4  D7E2              BRA     label268438619
02C6            ; } main function end

        ORG 0x000002C6
02C6            _startup
02C6  EF10F001          GOTO    main
        ORG 0x00300000
300000  FEFF            DW 0xFEFF
300002  FEF6            DW 0xFEF6
        ORG 0x00300004
300004  FEFF            DW 0xFEFF
300006  FFFB            DW 0xFFFB
        ORG 0x00300008
300008  3FF0            DW 0x3FF0
30000A  9FFF            DW 0x9FFF
30000C  BFFF            DW 0xBFFF