diff code_part1/OSTC_code_asm_part1/divemode_menu.asm @ 685:aebb6d039249

Use 4byte in EEPROM for diluents (Same as OC gases) Show active gas indicator below first gas in surfacemode
author heinrichsweikamp
date Sat, 26 Jan 2013 14:11:07 +0100
parents 6e456a6398e0
children 03f8a8eec9ae b5ffde7e569e
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode_menu.asm	Sat Jan 26 10:41:35 2013 +0100
+++ b/code_part1/OSTC_code_asm_part1/divemode_menu.asm	Sat Jan 26 14:11:07 2013 +0100
@@ -707,16 +707,16 @@
 
 divemenu_set_gas1d:                     ; (Re-)Set Diluent
     decf   active_diluent,W             ; 0-4 -> WREG mH
-    mullw   .2
+    mullw   .4
     movf    PRODL,W
-    addlw   d'97'
+    addlw   d'98'
     movwf   EEADR
     call	read_eeprom					; Read He
 	movff	EEDATA,char_I_He_ratio		; And copy into hold register
     decf   active_diluent,W             ; 0-4 -> WREG
-    mullw   .2
+    mullw   .4
     movf    PRODL,W
-    addlw   d'96'
+    addlw   d'97'
     movwf   EEADR
     call	read_eeprom					; Read O2
 	movff	EEDATA, char_I_O2_ratio		; O2 ratio