Mercurial > public > hwos_code
comparison src/divemode.asm @ 471:9edb1359ce43
NEW: New Customview 11 in dive mode shows ppO2, EAD/END and CNS
CHANGE: Customview 4 shows Clock, Battery Information and Tissue Information
author | heinrichsweikamp |
---|---|
date | Sun, 11 Dec 2016 14:43:56 +0100 |
parents | d93d75ae01bf |
children | 4fdf6886004b |
comparison
equal
deleted
inserted
replaced
470:81faca166e1b | 471:9edb1359ce43 |
---|---|
1753 movlw .9 | 1753 movlw .9 |
1754 cpfseq menupos3 ; ppO2 shown in Custom View? | 1754 cpfseq menupos3 ; ppO2 shown in Custom View? |
1755 bra check_ppO2_a ; No | 1755 bra check_ppO2_a ; No |
1756 return ; Yes, do not show twice (in custom view and in warning area) | 1756 return ; Yes, do not show twice (in custom view and in warning area) |
1757 check_ppO2_a: | 1757 check_ppO2_a: |
1758 incf warning_counter,F ; increase counter | 1758 movlw .11 |
1759 cpfseq menupos3 ; ppO2 shown in Custom View? | |
1760 bra check_ppO2_b ; No | |
1761 return ; Yes, do not show twice (in custom view and in warning area) | |
1762 check_ppO2_b: | |
1763 incf warning_counter,F ; increase counter | |
1759 goto TFT_display_ppo2 ; Show ppO2 (and return) | 1764 goto TFT_display_ppo2 ; Show ppO2 (and return) |
1760 | 1765 |
1761 global check_cns_violation | 1766 global check_cns_violation |
1762 check_cns_violation: | 1767 check_cns_violation: |
1763 ; Check if CNS should be displayed | 1768 ; Check if CNS should be displayed |
1774 movlw cns_display_high ; cns_display_high | 1779 movlw cns_display_high ; cns_display_high |
1775 subwf lo,W | 1780 subwf lo,W |
1776 btfss STATUS,C | 1781 btfss STATUS,C |
1777 return ; No Display, no warning | 1782 return ; No Display, no warning |
1778 ; Display CNS | 1783 ; Display CNS |
1779 incf warning_counter,F ; increase counter | 1784 bra display_cns_violation |
1780 goto TFT_display_cns ; Show CNS (and return) | |
1781 | |
1782 check_cns_violation2: | 1785 check_cns_violation2: |
1783 incf warning_counter,F ; increase counter | 1786 bsf warning_active ; Set Warning flag |
1784 bsf warning_active ; Set Warning flag | 1787 display_cns_violation: ; Show CNS if not shown in the custom view |
1785 goto TFT_display_cns ; Show CNS (and return) | 1788 movlw .11 |
1786 | 1789 cpfseq menupos3 ; CNS shown in Custom View? |
1790 bra display_cns_violation2 ; No | |
1791 return ; Yes, do not show twice (in custom view and in warning area) | |
1792 display_cns_violation2: | |
1793 incf warning_counter,F ; increase counter | |
1794 goto TFT_display_cns ; Show CNS (and return) | |
1795 | |
1796 | |
1787 global check_and_store_gf_violation | 1797 global check_and_store_gf_violation |
1788 check_and_store_gf_violation: | 1798 check_and_store_gf_violation: |
1789 movff char_O_gradient_factor,lo ; gradient factor absolute (Non-GF model) | 1799 movff char_O_gradient_factor,lo ; gradient factor absolute (Non-GF model) |
1790 movff char_I_deco_model,hi | 1800 movff char_I_deco_model,hi |
1791 decfsz hi,F ; jump over next line if char_I_deco_model == 1 | 1801 decfsz hi,F ; jump over next line if char_I_deco_model == 1 |