Subversion Repositories svnkaklik

Compare Revisions

Regard whitespace Rev 321 → Rev 322

/roboti/Robiada/2007/SW/robot/robot.lst
6,149 → 6,139
;/////////////////////////////////////////////////////////////////////////////////
 
ORG 0x00000200
0200 EF77F001 GOTO _startup
0200 EF6CF001 GOTO _startup
ORG 0x00000204
0204 receive_00000
0204 ; { receive ; function begin
0204 A2AB BTFSS gbl_rcsta,1
0206 D002 BRA label268438550
0208 98AB BCF gbl_rcsta,4
020A 88AB BSF gbl_rcsta,4
020C label268438550
020C AA9E BTFSS gbl_pir1,5
020E D7FE BRA label268438550
0210 50AE MOVF gbl_rcreg, W
0212 6E07 MOVWF CompTempVarRet489
0214 0012 RETURN
0216 ; } receive function end
0204 send_00000
0204 ; { send ; function begin
0204 label268438562
0204 A89E BTFSS gbl_pir1,4
0206 D7FE BRA label268438562
0208 5007 MOVF send_00000_arg_c, W
020A 6EAD MOVWF gbl_txreg
020C 0012 RETURN
020E ; } send function end
 
ORG 0x00000216
0216 send_00000
0216 ; { send ; function begin
0216 label268438561
0216 A89E BTFSS gbl_pir1,4
0218 D7FE BRA label268438561
021A 5004 MOVF send_00000_arg_c, W
021C 6EAD MOVWF gbl_txreg
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 6E07 MOVWF CompTempVarRet489
021E 0012 RETURN
0220 ; } send function end
0220 ; } receive function end
 
ORG 0x00000220
0220 delay_00000
0220 ; { delay ; function begin
0220 label268438570
0220 5005 MOVF delay_00000_1_i, W
0222 5C04 SUBWF delay_00000_arg_cas, W
0224 A0D8 BTFSS STATUS,C
0226 0012 RETURN
0228 label4026532417
0228 5006 MOVF delay_00000_1_x, W
022A 0864 SUBLW 0x64
022C E305 BNC label268438574
022E EC02F001 CALL receive_00000
0232 2806 INCF delay_00000_1_x, W
0234 6E06 MOVWF delay_00000_1_x
0236 D7F8 BRA label4026532417
0238 label268438574
0238 2805 INCF delay_00000_1_i, W
023A 6E05 MOVWF delay_00000_1_i
023C D7F1 BRA label268438570
023E ; } delay function end
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 0E1A MOVLW 0x1A
0266 6E05 MOVWF main_1_count+D'1'
0268 label268438603
0268 5004 MOVF main_1_count, W
026A 0800 SUBLW 0x00
026C B0D8 BTFSC STATUS,C
026E 5005 MOVF main_1_count+D'1', W
0270 E013 BZ label268438605
0272 0E01 MOVLW 0x01
0274 5C04 SUBWF main_1_count, W
0276 6E07 MOVWF CompTempVar492
0278 A0D8 BTFSS STATUS,C
027A 0605 DECF main_1_count+D'1', F
027C 5007 MOVF CompTempVar492, W
027E 6E04 MOVWF main_1_count
0280 0E01 MOVLW 0x01
0282 1003 IORWF main_1_leds, W
0284 6E03 MOVWF main_1_leds
0286 0E02 MOVLW 0x02
0288 1003 IORWF main_1_leds, W
028A 6E03 MOVWF main_1_leds
028C 0E04 MOVLW 0x04
028E 1003 IORWF main_1_leds, W
0290 6E03 MOVWF main_1_leds
0292 5003 MOVF main_1_leds, W
0294 6E89 MOVWF gbl_lata
0296 D7E8 BRA label268438603
0298 label268438605
0298 6803 SETF main_1_leds
029A 6889 SETF gbl_lata
029C label268438623
029C 6802 SETF main_1_sensors
029E EC07F001 CALL receive_00000
02A2 5007 MOVF CompTempVarRet489, W
02A4 6E02 MOVWF main_1_sensors
02A6 6A06 CLRF CompTempVar491
02A8 A202 BTFSS main_1_sensors,1
02AA D003 BRA label268438628
02AC A002 BTFSS main_1_sensors,0
02AE D001 BRA label268438628
02B0 2A06 INCF CompTempVar491, F
02B2 label268438628
02B2 5206 MOVF CompTempVar491, F
02B4 E102 BNZ label268438629
02B6 0E77 MOVLW 0x77
02B8 6E01 MOVWF main_1_motors
02BA label268438629
02BA B402 BTFSC main_1_sensors,2
02BC D002 BRA label268438632
02BE 0EF7 MOVLW 0xF7
02C0 6E01 MOVWF main_1_motors
02C2 label268438632
02C2 B602 BTFSC main_1_sensors,3
02C4 D002 BRA label268438635
02C6 0E7F MOVLW 0x7F
02C8 6E01 MOVWF main_1_motors
02CA label268438635
02CA 5002 MOVF main_1_sensors, W
02CC 6E89 MOVWF gbl_lata
02CE 5001 MOVF main_1_motors, W
02D0 6E07 MOVWF send_00000_arg_c
02D2 EC02F001 CALL send_00000
02D6 D7E2 BRA label268438623
02D8 ; } main function end
 
ORG 0x0000023E
023E main
023E ; { main ; function begin
023E 6889 SETF gbl_lata
0240 6A8A CLRF gbl_latb
0242 688B SETF gbl_latc
0244 0EF0 MOVLW 0xF0
0246 6E92 MOVWF gbl_trisa
0248 0E3F MOVLW 0x3F
024A 6E93 MOVWF gbl_trisb
024C 0E9F MOVLW 0x9F
024E 6E94 MOVWF gbl_trisc
0250 0EC6 MOVLW 0xC6
0252 6EC1 MOVWF gbl_adcon1
0254 0EC0 MOVLW 0xC0
0256 6EC2 MOVWF gbl_adcon0
0258 0E40 MOVLW 0x40
025A 6EAF MOVWF gbl_spbrg
025C 0EFB MOVLW 0xFB
025E 14AC ANDWF gbl_txsta, W
0260 6EAC MOVWF gbl_txsta
0262 0E20 MOVLW 0x20
0264 10AC IORWF gbl_txsta, W
0266 6EAC MOVWF gbl_txsta
0268 0E10 MOVLW 0x10
026A 10AB IORWF gbl_rcsta, W
026C 6EAB MOVWF gbl_rcsta
026E 0E80 MOVLW 0x80
0270 10AB IORWF gbl_rcsta, W
0272 6EAB MOVWF gbl_rcsta
0274 6A01 CLRF main_1_motors
0276 0E0E MOVLW 0x0E
0278 6E89 MOVWF gbl_lata
027A 0EC8 MOVLW 0xC8
027C 6E04 MOVWF delay_00000_arg_cas
027E EC10F001 CALL delay_00000
0282 0E0D MOVLW 0x0D
0284 6E89 MOVWF gbl_lata
0286 0EC8 MOVLW 0xC8
0288 6E04 MOVWF delay_00000_arg_cas
028A EC10F001 CALL delay_00000
028E 0E0B MOVLW 0x0B
0290 6E89 MOVWF gbl_lata
0292 0EC8 MOVLW 0xC8
0294 6E04 MOVWF delay_00000_arg_cas
0296 EC10F001 CALL delay_00000
029A 0E07 MOVLW 0x07
029C 6E89 MOVWF gbl_lata
029E 0EC8 MOVLW 0xC8
02A0 6E04 MOVWF delay_00000_arg_cas
02A2 EC10F001 CALL delay_00000
02A6 0E77 MOVLW 0x77
02A8 6E01 MOVWF main_1_motors
02AA 0E64 MOVLW 0x64
02AC 6E04 MOVWF delay_00000_arg_cas
02AE EC10F001 CALL delay_00000
02B2 label268438640
02B2 6802 SETF main_1_sensors
02B4 EC02F001 CALL receive_00000
02B8 5007 MOVF CompTempVarRet489, W
02BA 6E02 MOVWF main_1_sensors
02BC 6A03 CLRF CompTempVar491
02BE A202 BTFSS main_1_sensors,1
02C0 D003 BRA label268438645
02C2 A002 BTFSS main_1_sensors,0
02C4 D001 BRA label268438645
02C6 2A03 INCF CompTempVar491, F
02C8 label268438645
02C8 5203 MOVF CompTempVar491, F
02CA E102 BNZ label268438646
02CC 0E77 MOVLW 0x77
02CE 6E01 MOVWF main_1_motors
02D0 label268438646
02D0 B402 BTFSC main_1_sensors,2
02D2 D002 BRA label268438649
02D4 0EF7 MOVLW 0xF7
02D6 6E01 MOVWF main_1_motors
02D8 label268438649
02D8 B602 BTFSC main_1_sensors,3
02DA D002 BRA label268438652
02DC 0E7F MOVLW 0x7F
02DE 6E01 MOVWF main_1_motors
02E0 label268438652
02E0 5002 MOVF main_1_sensors, W
02E2 6E89 MOVWF gbl_lata
02E4 5001 MOVF main_1_motors, W
02E6 6E04 MOVWF send_00000_arg_c
02E8 EC0BF001 CALL send_00000
02EC D7E2 BRA label268438640
02EE ; } main function end
 
ORG 0x000002EE
02EE _startup
02EE EF1FF001 GOTO main
ORG 0x000002D8
02D8 _startup
02D8 EF10F001 GOTO main
ORG 0x00300000
300000 FEFF DW 0xFEFF
300002 FEF6 DW 0xFEF6