Mercurial > public > hwos_code
comparison src/start.asm @ 562:8b7ea27ea1fa
seperate desat and sat multipliers for GF and Non-GF modes. Set to 100/100 as default in GF mode
author | heinrichsweikamp |
---|---|
date | Sat, 03 Feb 2018 15:17:01 +0100 |
parents | 9c54849b8d3b |
children | b455b31ce022 |
comparison
equal
deleted
inserted
replaced
561:9c54849b8d3b | 562:8b7ea27ea1fa |
---|---|
391 bra restart_set_modes_and_flags1 | 391 bra restart_set_modes_and_flags1 |
392 movlw .10 | 392 movlw .10 |
393 movwf samplingrate | 393 movwf samplingrate |
394 restart_set_modes_and_flags1: | 394 restart_set_modes_and_flags1: |
395 bcf twosecupdate ; to have divemode routines in sync | 395 bcf twosecupdate ; to have divemode routines in sync |
396 | 396 |
397 bcf FLAG_apnoe_mode | 397 bcf FLAG_apnoe_mode |
398 bcf FLAG_ccr_mode ; =1: CCR mode (Fixed ppO2 or Sensor) active | 398 bcf FLAG_ccr_mode ; =1: CCR mode (Fixed ppO2 or Sensor) active |
399 bcf FLAG_gauge_mode ; =1: In Gauge mode | 399 bcf FLAG_gauge_mode ; =1: In Gauge mode |
400 bcf FLAG_pscr_mode | 400 bcf FLAG_pscr_mode |
401 call disable_ir_s8 ; IR off | 401 call disable_ir_s8 ; IR off |
402 | 402 |
403 ; Setup char_I_saturation_multiplier and char_I_desaturation_multiplier | |
404 movff opt_sat_multiplier_gf,char_I_saturation_multiplier | |
405 movff opt_desat_multiplier_gf,char_I_desaturation_multiplier | |
406 movff char_I_deco_model,lo ; 0 = ZH-L16, 1 = ZH-L16-GF | |
407 tstfsz lo | |
408 bra restart_set_modes_and_flags1b | |
409 movff opt_sat_multiplier_non_gf,char_I_saturation_multiplier | |
410 movff opt_desat_multiplier_non_gf,char_I_desaturation_multiplier | |
411 | |
412 restart_set_modes_and_flags1b: | |
403 movff opt_dive_mode,lo ; 0=OC, 1=CC, 2=Gauge, 3=Apnea, 4=PSCR | 413 movff opt_dive_mode,lo ; 0=OC, 1=CC, 2=Gauge, 3=Apnea, 4=PSCR |
404 | |
405 tstfsz lo | 414 tstfsz lo |
406 bra restart_set_modes_and_flags2 | 415 bra restart_set_modes_and_flags2 |
407 ; OC Mode | 416 ; OC Mode |
408 | 417 |
409 return | 418 return |