Subversion Repositories svnkaklik

Compare Revisions

Ignore whitespace Rev 322 → Rev 323

/roboti/Robiada/2007/SW/robot/robot.asm
6,7 → 6,7
;/////////////////////////////////////////////////////////////////////////////////
 
include "P18F252.inc"
__HEAPSTART EQU 0x00000008 ; Start address of heap
__HEAPSTART EQU 0x00000007 ; Start address of heap
__HEAPEND EQU 0x000005FF ; End address of heap
gbl_status EQU 0x00000FD8 ; bytes:1
gbl_prodl EQU 0x00000FF3 ; bytes:1
103,14 → 103,13
gbl_tosl EQU 0x00000FFD ; bytes:1
gbl_tosh EQU 0x00000FFE ; bytes:1
gbl_tosu EQU 0x00000FFF ; bytes:1
CompTempVarRet489 EQU 0x00000007 ; bytes:1
send_00000_arg_c EQU 0x00000007 ; bytes:1
CompTempVarRet489 EQU 0x00000006 ; bytes:1
send_00000_arg_c EQU 0x00000006 ; bytes:1
main_1_motors EQU 0x00000001 ; bytes:1
main_1_sensors EQU 0x00000002 ; bytes:1
main_1_leds EQU 0x00000003 ; bytes:1
main_1_count EQU 0x00000004 ; bytes:2
CompTempVar491 EQU 0x00000006 ; bytes:1
CompTempVar492 EQU 0x00000007 ; bytes:1
main_1_count EQU 0x00000004 ; bytes:1
CompTempVar491 EQU 0x00000005 ; bytes:1
ORG 0x00000200
GOTO _startup
ORG 0x00000204
177,20 → 176,11
MOVWF main_1_leds
MOVLW 0x80
MOVWF main_1_count
MOVLW 0x1A
MOVWF main_1_count+D'1'
label268438603
MOVF main_1_count, W
SUBLW 0x00
BTFSC STATUS,C
MOVF main_1_count+D'1', W
BZ label268438605
MOVLW 0x01
SUBWF main_1_count, W
MOVWF CompTempVar492
BTFSS STATUS,C
DECF main_1_count+D'1', F
MOVF CompTempVar492, W
BC label268438604
DECF main_1_count, W
MOVWF main_1_count
MOVLW 0x01
IORWF main_1_leds, W
204,10 → 194,10
MOVF main_1_leds, W
MOVWF gbl_lata
BRA label268438603
label268438605
label268438604
SETF main_1_leds
SETF gbl_lata
label268438623
label268438619
SETF main_1_sensors
CALL receive_00000
MOVF CompTempVarRet489, W
214,35 → 204,35
MOVWF main_1_sensors
CLRF CompTempVar491
BTFSS main_1_sensors,1
BRA label268438628
BRA label268438624
BTFSS main_1_sensors,0
BRA label268438628
BRA label268438624
INCF CompTempVar491, F
label268438628
label268438624
MOVF CompTempVar491, F
BNZ label268438629
BNZ label268438625
MOVLW 0x77
MOVWF main_1_motors
label268438629
label268438625
BTFSC main_1_sensors,2
BRA label268438632
BRA label268438628
MOVLW 0xF7
MOVWF main_1_motors
label268438632
label268438628
BTFSC main_1_sensors,3
BRA label268438635
BRA label268438631
MOVLW 0x7F
MOVWF main_1_motors
label268438635
label268438631
MOVF main_1_sensors, W
MOVWF gbl_lata
MOVF main_1_motors, W
MOVWF send_00000_arg_c
CALL send_00000
BRA label268438623
BRA label268438619
; } main function end
 
ORG 0x000002D8
ORG 0x000002C6
_startup
GOTO main
ORG 0x00300000