Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/menu_gassetup.asm @ 303:9c39cedb662b
disabled live END and EAD (Need some debug work)
author | heinrichsweikamp |
---|---|
date | Sat, 30 Apr 2011 14:07:44 +0200 |
parents | eac799f69360 |
children | ed08d441ed26 |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/menu_gassetup.asm Sat Apr 30 13:07:37 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/menu_gassetup.asm Sat Apr 30 14:07:44 2011 +0200 @@ -336,23 +336,8 @@ lfsr FSR2, letter WIN_LEFT .90 OUTPUTTEXTH .298 ; END: - GETCUSTOM8 .18 ; ppO2 warnvalue in WREG - mullw d'10' - movff PRODL,xA+0 - movff PRODH,xA+1 ; ppO2 in [0.01Bar] * 10 - movf divemins+0,W - addlw 0x06 - movwf EEADR - call read_eeprom ; O2 value - movff EEDATA,xB+0 - clrf xB+1 - call div16x16 ; xA/xB=xC with xA as remainder - movlw d'10' - subwf xC+0,F ; Subtract 10m... - movff xC+0,lo - movlw d'0' - subwfb xC+1,F - movff xC+1,hi ; lo:hi holding MOD in meters + + rcall gassetup_get_mod ; compute MOD based on CF18 into lo:hi movlw d'10' addwf lo,F movlw d'0'