Mercurial > public > hwos_code
comparison src/divemode.asm @ 331:8b9b03b70b14
Merged new_screen_layout into default
author | Janos Kovacs <kovjanos@gmail.com> |
---|---|
date | Fri, 26 Jun 2015 15:03:47 +0200 |
parents | 6d8c82fe5a01 |
children | 3d43da7acfe1 |
comparison
equal
deleted
inserted
replaced
329:7ac341bd5d38 | 331:8b9b03b70b14 |
---|---|
456 movff sub_a+0,last_pressure_velocity+0 ; store old value for velocity | 456 movff sub_a+0,last_pressure_velocity+0 ; store old value for velocity |
457 movff sub_a+1,last_pressure_velocity+1 | 457 movff sub_a+1,last_pressure_velocity+1 |
458 | 458 |
459 call subU16 ; sub_c = amb_pressure - last_pressure | 459 call subU16 ; sub_c = amb_pressure - last_pressure |
460 | 460 |
461 bcf neg_flag_velocity | |
462 btfsc neg_flag | |
463 bsf neg_flag_velocity | |
464 | |
461 movff sub_c+0,xA+0 | 465 movff sub_c+0,xA+0 |
462 movff sub_c+1,xA+1 | 466 movff sub_c+1,xA+1 |
463 movlw d'39' ; 77 when called every second.... | 467 movlw d'39' ; 77 when called every second.... |
464 movwf xB+0 | 468 movwf xB+0 |
465 clrf xB+1 | 469 clrf xB+1 |
565 bcf divemode_menu ; Timeout! Clear flag | 569 bcf divemode_menu ; Timeout! Clear flag |
566 call TFT_clear_divemode_menu ; Clear menu | 570 call TFT_clear_divemode_menu ; Clear menu |
567 call TFT_active_gas_divemode ; Redraw gas/setpoint/diluent | 571 call TFT_active_gas_divemode ; Redraw gas/setpoint/diluent |
568 bcf blinking_better_gas ; Clear flag to have temperature updated once | 572 bcf blinking_better_gas ; Clear flag to have temperature updated once |
569 call TFT_temp_divemode ; Displays temperature | 573 call TFT_temp_divemode ; Displays temperature |
574 call TFT_draw_gassep_line ; Gas separator grid in spec mode only | |
570 | 575 |
571 btfss decostop_active ; In deco mode ? | 576 btfss decostop_active ; In deco mode ? |
572 bra timeout_divemode_menu_ndl ; No, show NDL again | 577 bra timeout_divemode_menu_ndl ; No, show NDL again |
573 ; Show deco | 578 ; Show deco |
574 call TFT_display_deko_mask ; clear nostop time, display decodata | 579 call TFT_display_deko_mask ; clear nostop time, display decodata |