diff code_part1/OSTC_code_asm_part1/divemode.asm @ 522:e33a8ac4b660

New ASSERT_BANK1 macro for software proofing.
author JeanDo
date Fri, 09 Dec 2011 20:43:43 +0100
parents a73a452ca155
children f5a06b9e2fef
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode.asm	Fri Dec 09 20:43:39 2011 +0100
+++ b/code_part1/OSTC_code_asm_part1/divemode.asm	Fri Dec 09 20:43:43 2011 +0100
@@ -303,9 +303,9 @@
 
 ; Copy all gases to char_I_deco_N2_ratio and char_I_deco_He_ratio
 divemode_check_decogases:               ; CALLed from Simulator, too
-	clrf    EEADRH                      ; Make sure to select eeprom bank 0
-	
-;;;; FIXME BANK1 ???
+    ASSERT_BANK1    .10001              ; Just make sure everything is correct.
+
+	clrf    EEADRH                      ; Make sure to select eeprom bank 0	
 
     read_int_eeprom		d'7'			; Read He ratio
     movff	EEDATA,char_I_deco_He_ratio+0	; And copy into hold register