Mercurial > public > mk2
comparison 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 |
comparison
equal
deleted
inserted
replaced
521:33abbc08f01e | 522:e33a8ac4b660 |
---|---|
301 ;NOTE: always set full gas list, because the user can switch gas, | 301 ;NOTE: always set full gas list, because the user can switch gas, |
302 ; even in NDL mode... | 302 ; even in NDL mode... |
303 | 303 |
304 ; Copy all gases to char_I_deco_N2_ratio and char_I_deco_He_ratio | 304 ; Copy all gases to char_I_deco_N2_ratio and char_I_deco_He_ratio |
305 divemode_check_decogases: ; CALLed from Simulator, too | 305 divemode_check_decogases: ; CALLed from Simulator, too |
306 clrf EEADRH ; Make sure to select eeprom bank 0 | 306 ASSERT_BANK1 .10001 ; Just make sure everything is correct. |
307 | 307 |
308 ;;;; FIXME BANK1 ??? | 308 clrf EEADRH ; Make sure to select eeprom bank 0 |
309 | 309 |
310 read_int_eeprom d'7' ; Read He ratio | 310 read_int_eeprom d'7' ; Read He ratio |
311 movff EEDATA,char_I_deco_He_ratio+0 ; And copy into hold register | 311 movff EEDATA,char_I_deco_He_ratio+0 ; And copy into hold register |
312 read_int_eeprom d'6' ; Read O2 ratio | 312 read_int_eeprom d'6' ; Read O2 ratio |
313 movff char_I_deco_He_ratio+0,WREG ; Get back He -> WREG | 313 movff char_I_deco_He_ratio+0,WREG ; Get back He -> WREG |