Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 312:b7e4e74c0e17 @5 variant
New @5 variant: compute TTS if staying some extra time (CF58) at current depth.
* Added extra deco_status, and sim_extra_time() in p2_deco.c
* Launched by setting char_O_deco_state to 6, result in int_O_extra_ascenttime
* Added 8th divemode customview
* Auto stole every other cycles
* CF58 menu updated (EN,FR,DE,SP)
author | JeanDo |
---|---|
date | Tue, 03 May 2011 00:52:42 +0200 |
parents | b20fc8c4ac92 |
children | 11be2470b9eb |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/pled_outputs.asm Mon May 02 16:14:07 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/pled_outputs.asm Tue May 03 00:52:42 2011 +0200 @@ -3121,6 +3121,41 @@ return ;============================================================================= +; Display TTS after extra time at the same depth. +; +PLED_show_@5: + call PLED_divemask_color ; Set Color for Divemode mask + + WIN_FONT FT_SMALL + WIN_LEFT .95 + WIN_TOP .216 + STRCPY "@" + GETCUSTOM8 d'58' + movwf lo + bsf leftbind + output_8 + bcf leftbind + STRCAT_PRINT "': " + + WIN_LEFT .95+7*5 + call PLED_standard_color + lfsr FSR2,letter + movff int_O_extra_ascenttime+0,lo + movff int_O_extra_ascenttime+1,hi + movf lo,W + iorwf hi,W + bz PLED_show_@5_wait + bsf leftbind + output_16 + bcf leftbind + STRCAT_PRINT "' " ; From "xxx'" to "1' " we need 2 trailing spaces + return + +PLED_show_@5_wait: + STRCPY_PRINT "xxx'" + return + +;============================================================================= PLED_show_leading_tissue: call PLED_divemask_color ; Set Color for Divemode mask