Mercurial > public > hwos_code
comparison src/options.asm @ 533:dfac393b2199
CHANGE: CCR Calibration gas range limited to O2% 21-25 and 95-100 to save button presses
Layout adjustsments in divemode (CCR ppO2(Dil)
author | heinrichsweikamp |
---|---|
date | Mon, 21 Aug 2017 14:55:36 +0200 |
parents | a5fc007634c5 |
children | b7eb98dbd800 |
comparison
equal
deleted
inserted
replaced
532:72ae62440597 | 533:dfac393b2199 |
---|---|
393 cpfslt opt_max | 393 cpfslt opt_max |
394 bra option_inc_1 | 394 bra option_inc_1 |
395 movf opt_min,W | 395 movf opt_min,W |
396 option_inc_1: | 396 option_inc_1: |
397 movwf INDF1 | 397 movwf INDF1 |
398 return | 398 |
399 ; Now some rather crude hack into this routine to make CCR Calibration more convenient: | |
400 movlw .149 ; eeprom address of option CalGasO2 | |
401 cpfseq opt_eeprom ; skip next line if we deal with this option right now | |
402 return | |
403 | |
404 btfsc FLAG_pscr_mode ; skip next line if we are not in PSCR mode | |
405 return | |
406 movlw .26 | |
407 cpfseq INDF1 ; skip next line if current option value is =26 | |
408 return | |
409 movlw .95 ; current option value =26, advance it to 95 | |
410 movwf INDF1 | |
411 return | |
399 | 412 |
400 option_inc_enum8: ; Always +1 | 413 option_inc_enum8: ; Always +1 |
401 incf INDF1,W | 414 incf INDF1,W |
402 cpfsgt opt_max | 415 cpfsgt opt_max |
403 clrf WREG | 416 clrf WREG |