Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 239:3ed240d60341
High altitude (Plane/Fly) mode added
author | heinrichsweikamp |
---|---|
date | Mon, 21 Mar 2011 13:31:38 +0100 |
parents | ade0848c8b8b |
children | 544cc5d47755 |
comparison
equal
deleted
inserted
replaced
238:9581e48a914f | 239:3ed240d60341 |
---|---|
1756 ostc_debug 'b' ; Sends debug-information to screen if debugmode active | 1756 ostc_debug 'b' ; Sends debug-information to screen if debugmode active |
1757 WIN_TOP .25 | 1757 WIN_TOP .25 |
1758 WIN_LEFT .1 | 1758 WIN_LEFT .1 |
1759 WIN_FONT FT_SMALL | 1759 WIN_FONT FT_SMALL |
1760 WIN_INVERT .0 ; Init new Wordprocessor | 1760 WIN_INVERT .0 ; Init new Wordprocessor |
1761 call PLED_standard_color | 1761 |
1762 btfss high_altitude_mode ; In high altitude mode? | |
1763 call PLED_standard_color ; No | |
1764 btfsc high_altitude_mode ; In high altitude mode? | |
1765 call PLED_warnings_color ; Yes, display ambient pressure in red | |
1766 | |
1762 | 1767 |
1763 lfsr FSR2,letter | 1768 lfsr FSR2,letter |
1764 movff amb_pressure+0,lo | 1769 movff amb_pressure+0,lo |
1765 movff amb_pressure+1,hi | 1770 movff amb_pressure+1,hi |
1766 bsf leftbind | 1771 bsf leftbind |
1767 output_16 | 1772 output_16 |
1768 bcf leftbind | 1773 bcf leftbind |
1769 STRCAT_PRINT "mbar " | 1774 STRCAT_PRINT "mbar " |
1775 call PLED_standard_color ; Reset color | |
1770 return | 1776 return |
1771 | 1777 |
1772 update_batt_voltage_divemode: | 1778 update_batt_voltage_divemode: |
1773 call PLED_warnings_color | 1779 call PLED_warnings_color |
1774 DISPLAYTEXT d'246' ; LowBatt! | 1780 DISPLAYTEXT d'246' ; LowBatt! |