Mercurial > public > hwos_code
comparison src/tft_outputs.asm @ 252:d912fb71d606
change warning sign
author | heinrichsweikamp |
---|---|
date | Thu, 19 Mar 2015 12:28:23 +0100 |
parents | 3fec179a6220 |
children | ad62dff7739a |
comparison
equal
deleted
inserted
replaced
251:3fec179a6220 | 252:d912fb71d606 |
---|---|
581 global TFT_divemode_warning | 581 global TFT_divemode_warning |
582 TFT_divemode_warning: | 582 TFT_divemode_warning: |
583 bsf dive_warning_displayed ; =1: The warning sign is shown | 583 bsf dive_warning_displayed ; =1: The warning sign is shown |
584 WIN_TOP warning_icon_row | 584 WIN_TOP warning_icon_row |
585 WIN_LEFT warning_icon_column | 585 WIN_LEFT warning_icon_column |
586 ; TFT_WRITE_PROM_IMAGE dive_warning_block ; Show Warning icon | 586 TFT_WRITE_PROM_IMAGE dive_warning2_block ; Show Warning icon |
587 ; movlw .3 | 587 return |
588 ; cpfslt warning_counter ; More then two warnings? | |
589 ; rcall TFT_divemode_warning_counter ; Yes, show the number | |
590 return | |
591 | |
592 ;TFT_divemode_warning_counter: | |
593 ; WIN_SMALL warning_icon_column+.8,warning_icon_row+.13 | |
594 ; call TFT_warnings_color | |
595 ; movff warning_counter,lo | |
596 ; bsf leftbind | |
597 ; output_8 | |
598 ; bcf leftbind | |
599 ; STRCAT_PRINT "" | |
600 ; call TFT_standard_color | |
601 ; return | |
602 | 588 |
603 global TFT_divemode_warning_clear | 589 global TFT_divemode_warning_clear |
604 TFT_divemode_warning_clear: | 590 TFT_divemode_warning_clear: |
605 btfss dive_warning_displayed ; =1: The warning sign is shown | 591 btfss dive_warning_displayed ; =1: The warning sign is shown |
606 return | 592 return |