Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/surfmode.asm @ 361:88660a400338 64kByte Logbook
Updated 64K logbook to changeset 360.
author | JeanDo |
---|---|
date | Wed, 08 Jun 2011 01:37:14 +0200 |
parents | b5b030c1ae7e |
children | 6f7965ec5f49 |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/surfmode.asm Tue Jun 07 13:06:14 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/surfmode.asm Wed Jun 08 01:37:14 2011 +0200 @@ -273,16 +273,17 @@ btg LED_blue return +;============================================================================= + calc_deko_surfmode: ostc_debug 'I' ; Sends debug-information to screen if debugmode active movff last_surfpressure+0,int_I_pres_surface+0 ; copy surface air pressure to deco routine movff last_surfpressure+1,int_I_pres_surface+1 - clrf wait_temp ; Use as buffer - movff wait_temp,char_I_He_ratio ; No He at the Surface - movlw d'79' ; 79% N2 - movwf wait_temp ; Use as buffer - movff wait_temp,char_I_N2_ratio ; No He at the Surface + clrf WREG ; Use as buffer + movff WREG,char_I_He_ratio ; No He at the Surface + movlw d'79' ; 79% N2 + movff WREG,char_I_N2_ratio ; Air at the Surface SAFE_2BYTE_COPY amb_pressure,int_I_pres_respiration ; copy surface air pressure to deco routine GETCUSTOM8 d'11' ; Saturation multiplier % @@ -299,6 +300,7 @@ return +;============================================================================= test_charger: bcf TRISC,1 ; CHRG_OUT output