Mercurial > public > hwos_code
comparison src/surfmode.asm @ 485:18e047102e49
3.14 BETA release
author | heinrichsweikamp |
---|---|
date | Mon, 20 Feb 2017 15:49:38 +0100 |
parents | ad8acade5567 |
children | 5c7bee6df71c |
comparison
equal
deleted
inserted
replaced
484:ff2994528e02 | 485:18e047102e49 |
---|---|
221 bcf quarter_second_update | 221 bcf quarter_second_update |
222 | 222 |
223 ; Update Sensors | 223 ; Update Sensors |
224 call compute_ppo2 ; compute mv_sensorX and ppo2_sensorX arrays | 224 call compute_ppo2 ; compute mv_sensorX and ppo2_sensorX arrays |
225 call check_sensors ; Set enable/disable flags | 225 call check_sensors ; Set enable/disable flags |
226 btfss FLAG_ccr_mode ; In CCR mode? | 226 btfsc FLAG_ccr_mode ; In CCR mode? |
227 bra surfloop_loop2a1 ; Yes. | |
228 btfss FLAG_pscr_mode ; In PSCR mode? | |
227 bra surfloop_loop2a ; No, skip | 229 bra surfloop_loop2a ; No, skip |
228 | 230 |
231 surfloop_loop2a1: | |
229 movff opt_ccr_mode,WREG ; =0: Fixed SP, =1: Sensor, =2: Auto SP | 232 movff opt_ccr_mode,WREG ; =0: Fixed SP, =1: Sensor, =2: Auto SP |
230 sublw .1 ; opt_ccr_mode = 1 (Sensor)? | 233 sublw .1 ; opt_ccr_mode = 1 (Sensor)? |
231 bnz surfloop_loop2a ; No, skip | 234 bnz surfloop_loop2a ; No, skip |
232 | 235 |
233 call TFT_surface_sensor ; ...update sensor data in surface mode | 236 call TFT_surface_sensor ; ...update sensor data in surface mode |