comparison code_part1/OSTC_code_asm_part1/divemode.asm @ 323:b7940978edc9

Fix "Future TTS" display customview. * Display "---" during wait. * Display ascent when there is no stops.
author JeanDo
date Sat, 07 May 2011 00:52:20 +0200
parents 4159c31abe31
children d36fe3651d56 2144f19fa1eb
comparison
equal deleted inserted replaced
322:676d18bce8d7 323:b7940978edc9
518 518
519 clrf decodata+0 ; for profile memory 519 clrf decodata+0 ; for profile memory
520 movff char_O_nullzeit,decodata+1 ; nostop time 520 movff char_O_nullzeit,decodata+1 ; nostop time
521 521
522 call PLED_display_ndl ; display no deco limit 522 call PLED_display_ndl ; display no deco limit
523 return 523
524 524 calc_deko_divemode5:
525 calc_deko_divemode3:
526 btfss dekostop_active ; Already in deco mode ?
527 call PLED_display_deko_mask ; clear nostop time, display decodata
528 bsf dekostop_active ; Set flag
529
530 movff char_O_first_deco_depth,decodata+0 ; ceiling
531 movff char_O_first_deco_time,decodata+1 ; length of first stop in minues
532
533 call PLED_display_deko ; display decodata
534
535 ; Check if extra cycles are needed to compute @5 variant: 525 ; Check if extra cycles are needed to compute @5 variant:
536 btfss tts_extra_time ; Is @5 displayed ? 526 btfss tts_extra_time ; Is @5 displayed ?
537 return ; No: don't compute it. 527 return ; No: don't compute it.
538 528
539 decfsz apnoe_mins ; Reached count-down ? 529 decfsz apnoe_mins ; Reached count-down ?
543 movff WREG,char_O_deco_status ; Stole next cycles for @5 variant. 533 movff WREG,char_O_deco_status ; Stole next cycles for @5 variant.
544 534
545 movlw .2 ; Restart countdown. 535 movlw .2 ; Restart countdown.
546 movwf apnoe_mins 536 movwf apnoe_mins
547 return 537 return
538
539 calc_deko_divemode3:
540 btfss dekostop_active ; Already in deco mode ?
541 call PLED_display_deko_mask ; clear nostop time, display decodata
542 bsf dekostop_active ; Set flag
543
544 movff char_O_first_deco_depth,decodata+0 ; ceiling
545 movff char_O_first_deco_time,decodata+1 ; length of first stop in minues
546
547 call PLED_display_deko ; display decodata
548 bra calc_deko_divemode5
548 549
549 ;----------------------------------------------------------------------------- 550 ;-----------------------------------------------------------------------------
550 551
551 divemode_prepare_flags_for_deco: 552 divemode_prepare_flags_for_deco:
552 movff amb_pressure+0,int_I_pres_respiration+0 ; lo and copy result to deco routine 553 movff amb_pressure+0,int_I_pres_respiration+0 ; lo and copy result to deco routine