Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/divemode.asm @ 286:5351d47ee28a
Active gas flags simplified
author | heinrichsweikamp |
---|---|
date | Wed, 20 Apr 2011 07:51:11 +0200 |
parents | f8f865c70a0d |
children | 5f2fe81fde9f |
comparison
equal
deleted
inserted
replaced
285:8874b6cd8f36 | 286:5351d47ee28a |
---|---|
332 ; Check for decompression gases if in decomode | 332 ; Check for decompression gases if in decomode |
333 btfss dekostop_active | 333 btfss dekostop_active |
334 bra reset_decompression_gases ; While in NDL, do not set deompression gas | 334 bra reset_decompression_gases ; While in NDL, do not set deompression gas |
335 | 335 |
336 divemode_check_decogases: ; CALLed from Simulator | 336 divemode_check_decogases: ; CALLed from Simulator |
337 ; Copy active gases to char_I_deco_N2_ratio and char_I_deco_He_ratio | 337 ; Copy all gases to char_I_deco_N2_ratio and char_I_deco_He_ratio |
338 read_int_eeprom d'5' ; Read He ratio | 338 read_int_eeprom d'5' ; Read He ratio |
339 movff EEDATA,char_I_deco_He_ratio+4 ; And copy into hold register | 339 movff EEDATA,char_I_deco_He_ratio+4 ; And copy into hold register |
340 read_int_eeprom d'4' ; Read O2 ratio | 340 read_int_eeprom d'4' ; Read O2 ratio |
341 movff char_I_deco_He_ratio+4, wait_temp ; copy into bank1 register | 341 movff char_I_deco_He_ratio+4, wait_temp ; copy into bank1 register |
342 bsf STATUS,C ; | 342 bsf STATUS,C ; |