Mercurial > public > hwos_code
comparison src/simulator.asm @ 197:3bbfac29ba3e
cleanup
author | heinrichsweikamp |
---|---|
date | Thu, 06 Nov 2014 15:28:59 +0100 |
parents | e79bc535ef9e |
children | 53771bd3d567 |
comparison
equal
deleted
inserted
replaced
196:a0e0ddfc1b49 | 197:3bbfac29ba3e |
---|---|
128 btfsc FLAG_ccr_mode ; =1: CCR mode (Fixed ppO2 or Sensor) active | 128 btfsc FLAG_ccr_mode ; =1: CCR mode (Fixed ppO2 or Sensor) active |
129 movff char_I_setpoint_cbar+0,char_I_const_ppO2 ; Setup fixed Setpoint (Always start with SP1) | 129 movff char_I_setpoint_cbar+0,char_I_const_ppO2 ; Setup fixed Setpoint (Always start with SP1) |
130 | 130 |
131 rcall get_first_gas_to_WREG ; Gets first gas (0-4) into WREG | 131 rcall get_first_gas_to_WREG ; Gets first gas (0-4) into WREG |
132 movff WREG,char_I_first_gas ; Copy for compatibility | 132 movff WREG,char_I_first_gas ; Copy for compatibility |
133 banksel char_I_first_gas | |
134 incf char_I_first_gas,F ; 0-4 -> 1-5 | |
135 banksel common | |
133 extern setup_gas_registers | 136 extern setup_gas_registers |
134 call setup_gas_registers ; With WREG=Gas 0-4, set current N2/He/O2 ratios. | 137 call setup_gas_registers ; With WREG=Gas 0-4, set current N2/He/O2 ratios. |
135 extern set_actual_ppo2 | 138 extern set_actual_ppo2 |
136 call set_actual_ppo2 ; Then configure char_I_actual_ppO2 (For CNS) | 139 call set_actual_ppo2 ; Then configure char_I_actual_ppO2 (For CNS) |
137 return | 140 return |