Subversion Repositories svnkaklik

Rev

Rev 322 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 322 Rev 323
Line 4... Line 4...
4
;// License Type  : Pro License
4
;// License Type  : Pro License
5
;// Limitations   : PIC18 max code size:Unlimited, max RAM banks:Unlimited
5
;// Limitations   : PIC18 max code size:Unlimited, max RAM banks:Unlimited
6
;/////////////////////////////////////////////////////////////////////////////////
6
;/////////////////////////////////////////////////////////////////////////////////
7
 
7
 
8
	include "P18F252.inc"
8
	include "P18F252.inc"
9
__HEAPSTART                      EQU	0x00000008 ; Start address of heap 
9
__HEAPSTART                      EQU	0x00000007 ; Start address of heap 
10
__HEAPEND                        EQU	0x000005FF ; End address of heap 
10
__HEAPEND                        EQU	0x000005FF ; End address of heap 
11
gbl_status                       EQU	0x00000FD8 ; bytes:1
11
gbl_status                       EQU	0x00000FD8 ; bytes:1
12
gbl_prodl                        EQU	0x00000FF3 ; bytes:1
12
gbl_prodl                        EQU	0x00000FF3 ; bytes:1
13
gbl_prodh                        EQU	0x00000FF4 ; bytes:1
13
gbl_prodh                        EQU	0x00000FF4 ; bytes:1
14
gbl_porta                        EQU	0x00000F80 ; bytes:1
14
gbl_porta                        EQU	0x00000F80 ; bytes:1
Line 101... Line 101...
101
gbl_pclatu                       EQU	0x00000FFB ; bytes:1
101
gbl_pclatu                       EQU	0x00000FFB ; bytes:1
102
gbl_stkptr                       EQU	0x00000FFC ; bytes:1
102
gbl_stkptr                       EQU	0x00000FFC ; bytes:1
103
gbl_tosl                         EQU	0x00000FFD ; bytes:1
103
gbl_tosl                         EQU	0x00000FFD ; bytes:1
104
gbl_tosh                         EQU	0x00000FFE ; bytes:1
104
gbl_tosh                         EQU	0x00000FFE ; bytes:1
105
gbl_tosu                         EQU	0x00000FFF ; bytes:1
105
gbl_tosu                         EQU	0x00000FFF ; bytes:1
106
CompTempVarRet489                EQU	0x00000007 ; bytes:1
106
CompTempVarRet489                EQU	0x00000006 ; bytes:1
107
send_00000_arg_c                 EQU	0x00000007 ; bytes:1
107
send_00000_arg_c                 EQU	0x00000006 ; bytes:1
108
main_1_motors                    EQU	0x00000001 ; bytes:1
108
main_1_motors                    EQU	0x00000001 ; bytes:1
109
main_1_sensors                   EQU	0x00000002 ; bytes:1
109
main_1_sensors                   EQU	0x00000002 ; bytes:1
110
main_1_leds                      EQU	0x00000003 ; bytes:1
110
main_1_leds                      EQU	0x00000003 ; bytes:1
111
main_1_count                     EQU	0x00000004 ; bytes:2
111
main_1_count                     EQU	0x00000004 ; bytes:1
112
CompTempVar491                   EQU	0x00000006 ; bytes:1
112
CompTempVar491                   EQU	0x00000005 ; bytes:1
113
CompTempVar492                   EQU	0x00000007 ; bytes:1
-
 
114
	ORG 0x00000200
113
	ORG 0x00000200
115
	GOTO	_startup
114
	GOTO	_startup
116
	ORG 0x00000204
115
	ORG 0x00000204
117
send_00000
116
send_00000
118
; { send ; function begin
117
; { send ; function begin
Line 175... Line 174...
175
	BRA	label268438598
174
	BRA	label268438598
176
	MOVLW 0xF0
175
	MOVLW 0xF0
177
	MOVWF main_1_leds
176
	MOVWF main_1_leds
178
	MOVLW 0x80
177
	MOVLW 0x80
179
	MOVWF main_1_count
178
	MOVWF main_1_count
180
	MOVLW 0x1A
-
 
181
	MOVWF main_1_count+D'1'
-
 
182
label268438603
179
label268438603
183
	MOVF main_1_count, W
180
	MOVF main_1_count, W
184
	SUBLW 0x00
181
	SUBLW 0x00
185
	BTFSC STATUS,C
-
 
186
	MOVF main_1_count+D'1', W
-
 
187
	BZ	label268438605
182
	BC	label268438604
188
	MOVLW 0x01
-
 
189
	SUBWF main_1_count, W
183
	DECF main_1_count, W
190
	MOVWF CompTempVar492
-
 
191
	BTFSS STATUS,C
-
 
192
	DECF main_1_count+D'1', F
-
 
193
	MOVF CompTempVar492, W
-
 
194
	MOVWF main_1_count
184
	MOVWF main_1_count
195
	MOVLW 0x01
185
	MOVLW 0x01
196
	IORWF main_1_leds, W
186
	IORWF main_1_leds, W
197
	MOVWF main_1_leds
187
	MOVWF main_1_leds
198
	MOVLW 0x02
188
	MOVLW 0x02
Line 202... Line 192...
202
	IORWF main_1_leds, W
192
	IORWF main_1_leds, W
203
	MOVWF main_1_leds
193
	MOVWF main_1_leds
204
	MOVF main_1_leds, W
194
	MOVF main_1_leds, W
205
	MOVWF gbl_lata
195
	MOVWF gbl_lata
206
	BRA	label268438603
196
	BRA	label268438603
207
label268438605
197
label268438604
208
	SETF main_1_leds
198
	SETF main_1_leds
209
	SETF gbl_lata
199
	SETF gbl_lata
210
label268438623
200
label268438619
211
	SETF main_1_sensors
201
	SETF main_1_sensors
212
	CALL receive_00000
202
	CALL receive_00000
213
	MOVF CompTempVarRet489, W
203
	MOVF CompTempVarRet489, W
214
	MOVWF main_1_sensors
204
	MOVWF main_1_sensors
215
	CLRF CompTempVar491
205
	CLRF CompTempVar491
216
	BTFSS main_1_sensors,1
206
	BTFSS main_1_sensors,1
217
	BRA	label268438628
207
	BRA	label268438624
218
	BTFSS main_1_sensors,0
208
	BTFSS main_1_sensors,0
219
	BRA	label268438628
209
	BRA	label268438624
220
	INCF CompTempVar491, F
210
	INCF CompTempVar491, F
221
label268438628
211
label268438624
222
	MOVF CompTempVar491, F
212
	MOVF CompTempVar491, F
223
	BNZ	label268438629
213
	BNZ	label268438625
224
	MOVLW 0x77
214
	MOVLW 0x77
225
	MOVWF main_1_motors
215
	MOVWF main_1_motors
226
label268438629
216
label268438625
227
	BTFSC main_1_sensors,2
217
	BTFSC main_1_sensors,2
228
	BRA	label268438632
218
	BRA	label268438628
229
	MOVLW 0xF7
219
	MOVLW 0xF7
230
	MOVWF main_1_motors
220
	MOVWF main_1_motors
231
label268438632
221
label268438628
232
	BTFSC main_1_sensors,3
222
	BTFSC main_1_sensors,3
233
	BRA	label268438635
223
	BRA	label268438631
234
	MOVLW 0x7F
224
	MOVLW 0x7F
235
	MOVWF main_1_motors
225
	MOVWF main_1_motors
236
label268438635
226
label268438631
237
	MOVF main_1_sensors, W
227
	MOVF main_1_sensors, W
238
	MOVWF gbl_lata
228
	MOVWF gbl_lata
239
	MOVF main_1_motors, W
229
	MOVF main_1_motors, W
240
	MOVWF send_00000_arg_c
230
	MOVWF send_00000_arg_c
241
	CALL send_00000
231
	CALL send_00000
242
	BRA	label268438623
232
	BRA	label268438619
243
; } main function end
233
; } main function end
244
 
234
 
245
	ORG 0x000002D8
235
	ORG 0x000002C6
246
_startup
236
_startup
247
	GOTO	main
237
	GOTO	main
248
	ORG 0x00300000
238
	ORG 0x00300000
249
	DW 0xFEFF
239
	DW 0xFEFF
250
	DW 0xFEF6
240
	DW 0xFEF6