Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 255:1efd59d689f8
small change in the set time menu, default setpoints set to 0.8, 1.0 and 1.2Bar
author | heinrichsweikamp |
---|---|
date | Sun, 10 Apr 2011 09:17:20 +0200 |
parents | 8f20e8948b97 |
children | d8dfbc7041b0 |
comparison
equal
deleted
inserted
replaced
254:8f20e8948b97 | 255:1efd59d689f8 |
---|---|
290 global PLED_resetdebugger | 290 global PLED_resetdebugger |
291 global temp10 | 291 global temp10 |
292 | 292 |
293 movlb 1 ; For C-code calls | 293 movlb 1 ; For C-code calls |
294 call PLED_boot ; PLED boot | 294 call PLED_boot ; PLED boot |
295 call PLED_ClearScreen ; clean up OLED | |
296 | |
297 call PLED_standard_color | 295 call PLED_standard_color |
298 WIN_INVERT .0 ; Init new Wordprocessor | 296 WIN_INVERT .0 ; Init new Wordprocessor |
299 | 297 |
300 DISPLAYTEXT .133 | 298 DISPLAYTEXT .133 |
301 DISPLAYTEXT .134 | 299 DISPLAYTEXT .134 |
1695 lfsr FSR2,letter | 1693 lfsr FSR2,letter |
1696 OUTPUTTEXT d'14' ; Desat | 1694 OUTPUTTEXT d'14' ; Desat |
1697 PUTC ' ' | 1695 PUTC ' ' |
1698 ; movff int_O_desaturation_time+0,lo ; divide by 60... | 1696 ; movff int_O_desaturation_time+0,lo ; divide by 60... |
1699 ; movff int_O_desaturation_time+1,hi | 1697 ; movff int_O_desaturation_time+1,hi |
1700 movff desaturation_time_buffer+0,lo ; divide by 60... | 1698 movff desaturation_time_buffer+0,lo ; divide by 60... |
1701 movff desaturation_time_buffer+1,hi | 1699 movff desaturation_time_buffer+1,hi |
1702 | 1700 |
1703 call convert_time ; converts hi:lo in minutes to hours (hi) and minutes (lo) | 1701 call convert_time ; converts hi:lo in minutes to hours (hi) and minutes (lo) |
1704 bsf leftbind | 1702 bsf leftbind |
1705 movf lo,W | 1703 movf lo,W |
1706 movff hi,lo | 1704 movff hi,lo |
1761 | 1759 |
1762 btfss high_altitude_mode ; In high altitude mode? | 1760 btfss high_altitude_mode ; In high altitude mode? |
1763 call PLED_standard_color ; No | 1761 call PLED_standard_color ; No |
1764 btfsc high_altitude_mode ; In high altitude mode? | 1762 btfsc high_altitude_mode ; In high altitude mode? |
1765 call PLED_warnings_color ; Yes, display ambient pressure in red | 1763 call PLED_warnings_color ; Yes, display ambient pressure in red |
1766 | |
1767 | 1764 |
1768 lfsr FSR2,letter | 1765 lfsr FSR2,letter |
1769 movff amb_pressure+0,lo | 1766 movff amb_pressure+0,lo |
1770 movff amb_pressure+1,hi | 1767 movff amb_pressure+1,hi |
1771 bsf leftbind | 1768 bsf leftbind |