comparison 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
comparison
equal deleted inserted replaced
311:91371c7553f5 312:b7e4e74c0e17
3119 STRCAT_PRINT " " ; Display ppO2[Diluent] 3119 STRCAT_PRINT " " ; Display ppO2[Diluent]
3120 3120
3121 return 3121 return
3122 3122
3123 ;============================================================================= 3123 ;=============================================================================
3124 ; Display TTS after extra time at the same depth.
3125 ;
3126 PLED_show_@5:
3127 call PLED_divemask_color ; Set Color for Divemode mask
3128
3129 WIN_FONT FT_SMALL
3130 WIN_LEFT .95
3131 WIN_TOP .216
3132 STRCPY "@"
3133 GETCUSTOM8 d'58'
3134 movwf lo
3135 bsf leftbind
3136 output_8
3137 bcf leftbind
3138 STRCAT_PRINT "': "
3139
3140 WIN_LEFT .95+7*5
3141 call PLED_standard_color
3142 lfsr FSR2,letter
3143 movff int_O_extra_ascenttime+0,lo
3144 movff int_O_extra_ascenttime+1,hi
3145 movf lo,W
3146 iorwf hi,W
3147 bz PLED_show_@5_wait
3148 bsf leftbind
3149 output_16
3150 bcf leftbind
3151 STRCAT_PRINT "' " ; From "xxx'" to "1' " we need 2 trailing spaces
3152 return
3153
3154 PLED_show_@5_wait:
3155 STRCPY_PRINT "xxx'"
3156 return
3157
3158 ;=============================================================================
3124 3159
3125 PLED_show_leading_tissue: 3160 PLED_show_leading_tissue:
3126 call PLED_divemask_color ; Set Color for Divemode mask 3161 call PLED_divemask_color ; Set Color for Divemode mask
3127 DISPLAYTEXTH .282 ; L. Tissue: 3162 DISPLAYTEXTH .282 ; L. Tissue:
3128 PLED_show_leading_tissue_2: 3163 PLED_show_leading_tissue_2: