Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 410:c6f9eb123b85
remove of red ambient pressure (High altitude mode)
author | heinrichsweikamp |
---|---|
date | Mon, 11 Jul 2011 16:04:35 +0200 |
parents | 3e0192f6c241 |
children | b2c9cc018671 |
comparison
equal
deleted
inserted
replaced
409:b358a394e6aa | 410:c6f9eb123b85 |
---|---|
1810 WIN_TOP .25 | 1810 WIN_TOP .25 |
1811 WIN_LEFT .1 | 1811 WIN_LEFT .1 |
1812 WIN_FONT FT_SMALL | 1812 WIN_FONT FT_SMALL |
1813 WIN_INVERT .0 ; Init new Wordprocessor | 1813 WIN_INVERT .0 ; Init new Wordprocessor |
1814 | 1814 |
1815 btfss high_altitude_mode ; In high altitude mode? | 1815 ; btfss high_altitude_mode ; In high altitude mode? |
1816 call PLED_standard_color ; No | 1816 call PLED_standard_color ; No |
1817 btfsc high_altitude_mode ; In high altitude mode? | 1817 ; btfsc high_altitude_mode ; In high altitude mode? |
1818 call PLED_warnings_color ; Yes, display ambient pressure in red | 1818 ; call PLED_warnings_color ; Yes, display ambient pressure in red |
1819 | 1819 |
1820 SAFE_2BYTE_COPY amb_pressure, lo | 1820 SAFE_2BYTE_COPY amb_pressure, lo |
1821 lfsr FSR2,letter | 1821 lfsr FSR2,letter |
1822 | 1822 |
1823 movff lo,sub_a+0 | 1823 movff lo,sub_a+0 |
3138 movwf xB+0 | 3138 movwf xB+0 |
3139 clrf xB+1 | 3139 clrf xB+1 |
3140 ;xA/xB=xC with xA as remainder | 3140 ;xA/xB=xC with xA as remainder |
3141 call div16x16 ; xC+0=p_amb/10 | 3141 call div16x16 ; xC+0=p_amb/10 |
3142 | 3142 |
3143 ; char_I_const_ppO2 > p_amb/10 -> Not physically possible! -> Display actual value! | 3143 ; ; char_I_const_ppO2 > p_amb/10 -> Not physically possible! -> Display actual value! |
3144 tstfsz xC+1 ; xC>255 | 3144 ; tstfsz xC+1 ; xC>255 |
3145 setf xC+0 ; Yes, set xC+0 to 2,55bar ppO2 | 3145 ; setf xC+0 ; Yes, set xC+0 to 2,55bar ppO2 |
3146 | 3146 |
3147 movff ppO2_setpoint_store,WREG | 3147 movff ppO2_setpoint_store,WREG |
3148 cpfslt xC+0 ; Setpoint value possible? | 3148 cpfslt xC+0 ; Setpoint value possible? |
3149 bra PLED_const_ppO2_value1 ; Yes | 3149 bra PLED_const_ppO2_value1 ; Yes |
3150 | 3150 |