# HG changeset patch # User heinrichsweikamp # Date 1314027390 -7200 # Node ID 38b38b105782fd98e1c9145646222b152857a95d # Parent 05ec97e106dadb640d0b983c54ac5a2686604f68 compute desat based on 30min old surface pressure diff -r 05ec97e106da -r 38b38b105782 code_part1/OSTC_code_asm_part1/definitions.asm --- a/code_part1/OSTC_code_asm_part1/definitions.asm Fri Aug 19 00:56:27 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/definitions.asm Mon Aug 22 17:36:30 2011 +0200 @@ -97,8 +97,8 @@ ;============================================================================= -#include "../OSTC_code_c_part2/shared_definitions.h" -;#include "shared_definitions.h" +;#include "../OSTC_code_c_part2/shared_definitions.h" +#include "shared_definitions.h" ;============================================================================= ; Reserve space for C-code data space. Eg.when calling log. diff -r 05ec97e106da -r 38b38b105782 code_part1/OSTC_code_asm_part1/divemode.asm --- a/code_part1/OSTC_code_asm_part1/divemode.asm Fri Aug 19 00:56:27 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/divemode.asm Mon Aug 22 17:36:30 2011 +0200 @@ -1116,7 +1116,7 @@ ostc_debug 'G' ; Sends debug-information to screen if debugmode active call deco_calc_desaturation_time ; calculate desaturation time movlb b'00000001' ; select ram bank 1 - call calc_deko_surfmode ; work-around for nofly bug + call calc_deko_surfmode2 ; work-around for nofly bug rcall calculate_noflytime ; Calc NoFly time ostc_debug 'H' ; Sends debug-information to screen if debugmode active ; store header and ... diff -r 05ec97e106da -r 38b38b105782 code_part1/OSTC_code_asm_part1/surfmode.asm --- a/code_part1/OSTC_code_asm_part1/surfmode.asm Fri Aug 19 00:56:27 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/surfmode.asm Mon Aug 22 17:36:30 2011 +0200 @@ -278,6 +278,7 @@ 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 +calc_deko_surfmode2: clrf WREG ; Use as buffer movff WREG,char_I_He_ratio ; No He at the Surface movlw d'79' ; 79% N2