comparison src/divemenu_tree.asm @ 426:8f8151bb53bb

docu update
author heinrichsweikamp
date Fri, 10 Jun 2016 10:01:42 +0200
parents 6e60012bb3fc
children 23b58c4bc6aa
comparison
equal deleted inserted replaced
425:75f913a029d0 426:8f8151bb53bb
69 bsf toggle_gf ; Set flag... 69 bsf toggle_gf ; Set flag...
70 bra do_exit_divemode_menu ; ...and exit 70 bra do_exit_divemode_menu ; ...and exit
71 71
72 do_switch_to_sensor: 72 do_switch_to_sensor:
73 movlw .1 ; Switch to Sensor 73 movlw .1 ; Switch to Sensor
74 movff WREG,opt_ccr_mode ; =0: Fixed SP, =1: Sensor 74 movff WREG,opt_ccr_mode ; =0: Fixed SP, =1: Sensor, =2: Auto SP
75 bsf voting_logic_sensor1 75 bsf voting_logic_sensor1
76 bsf voting_logic_sensor2 76 bsf voting_logic_sensor2
77 bsf voting_logic_sensor3 77 bsf voting_logic_sensor3
78 extern divemode_setup_sensor_values 78 extern divemode_setup_sensor_values
79 call divemode_setup_sensor_values ; Setup sensor values 79 call divemode_setup_sensor_values ; Setup sensor values
117 movff active_diluent,WREG ; As a backup when switching back from Bailout to CCR 117 movff active_diluent,WREG ; As a backup when switching back from Bailout to CCR
118 decf WREG ; 0-4 118 decf WREG ; 0-4
119 call setup_dil_registers ; With WREG=Gas 0-4 119 call setup_dil_registers ; With WREG=Gas 0-4
120 120
121 clrf WREG ; Switch to fixed SP 121 clrf WREG ; Switch to fixed SP
122 movff WREG,opt_ccr_mode ; =0: Fixed SP, =1: Sensor 122 movff WREG,opt_ccr_mode ; =0: Fixed SP, =1: Sensor, =2: Auto SP
123 clrf WREG 123 clrf WREG
124 movff WREG,char_O_deco_status ; Restart decoplan computation 124 movff WREG,char_O_deco_status ; Restart decoplan computation
125 125
126 do_switch_sp2: 126 do_switch_sp2:
127 ; Clear some flags in case we were in bailout before... 127 ; Clear some flags in case we were in bailout before...