Mercurial > public > hwos_code
diff src/simulator.asm @ 548:abf3cbd5815e
minor cleanup, 2.25 stable RC3
author | heinrichsweikamp |
---|---|
date | Fri, 08 Sep 2017 14:04:38 +0200 |
parents | 7e6df19264b6 |
children | 7c408bfaf2e8 |
line wrap: on
line diff
--- a/src/simulator.asm Fri Sep 08 13:36:04 2017 +0200 +++ b/src/simulator.asm Fri Sep 08 14:04:38 2017 +0200 @@ -111,7 +111,6 @@ deco_setup: banksel char_I_step_is_1min ; Select the right bank... clrf char_I_step_is_1min ; Default to 2sec steps. - clrf char_I_const_ppO2 ; Clear for OC, will be set for CC later ; Fixed ambient surface pressure to 1bar. movlw LOW(.1000) @@ -123,15 +122,16 @@ clrf int_I_divemins+0 ; Dive start clrf int_I_divemins+1 + banksel common ; Bank1 bcf use_agf ; =1: Use aGF rcall deco_setup_dive - movlw .0 + movlw .0 ; Bank safe "clrf" movff WREG,char_I_const_ppO2 ; deactivate CCR-mode in deco calculations unless in CCR mode (char_I_const_ppO2 is filled below again) - ; Setup char_I_const_ppO2 for CC modes + ; Setup char_I_const_ppO2 for CC modes btfsc FLAG_ccr_mode ; =1: CCR mode (Fixed ppO2 or Sensor) active movff char_I_setpoint_cbar+0,char_I_const_ppO2 ; Setup fixed Setpoint (Always start with SP1) rcall get_first_gas_to_WREG ; Gets first gas (0-4) into WREG