Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/altimeter.asm @ 681:6e456a6398e0
Hardware4 support
author | heinrichsweikamp |
---|---|
date | Fri, 25 Jan 2013 18:00:49 +0100 |
parents | ab2686087bce |
children | 91ae251d379f |
comparison
equal
deleted
inserted
replaced
680:c6220d340684 | 681:6e456a6398e0 |
---|---|
110 | 110 |
111 WIN_TOP .35 ; Custom view drawing zone... | 111 WIN_TOP .35 ; Custom view drawing zone... |
112 WIN_LEFT .90 | 112 WIN_LEFT .90 |
113 WIN_INVERT .0 | 113 WIN_INVERT .0 |
114 WIN_FONT .0 | 114 WIN_FONT .0 |
115 call PLED_standard_color | 115 call DISP_standard_color |
116 | 116 |
117 STRCPY TXT_ALT5 | 117 STRCPY TXT_ALT5 |
118 | 118 |
119 movff altitude+0,lo ; BANK-SAFE read altitude | 119 movff altitude+0,lo ; BANK-SAFE read altitude |
120 movff altitude+1,hi | 120 movff altitude+1,hi |
227 iorwf fA | 227 iorwf fA |
228 bnz altimeter_menu_1 ; Yes: skip reset... | 228 bnz altimeter_menu_1 ; Yes: skip reset... |
229 rcall altimeter_reset | 229 rcall altimeter_reset |
230 | 230 |
231 altimeter_menu_1: | 231 altimeter_menu_1: |
232 call PLED_ClearScreen ; Menu header. | 232 call DISP_ClearScreen ; Menu header. |
233 call PLED_standard_color | 233 call DISP_standard_color |
234 call PLED_topline_box | 234 call DISP_topline_box |
235 WIN_INVERT .1 ; Init new Wordprocessor | 235 WIN_INVERT .1 ; Init new Wordprocessor |
236 DISPLAYTEXTH .288 ; Title bar | 236 DISPLAYTEXTH .288 ; Title bar |
237 | 237 |
238 movlw 2 ; Start menu on line 2. | 238 movlw 2 ; Start menu on line 2. |
239 movwf menupos | 239 movwf menupos |
297 output_16 | 297 output_16 |
298 bcf leftbind | 298 bcf leftbind |
299 STRCAT_PRINT TXT_METER5 | 299 STRCAT_PRINT TXT_METER5 |
300 | 300 |
301 alt_menu_loop: | 301 alt_menu_loop: |
302 call PLED_menu_cursor ; Display cursor | 302 call DISP_menu_cursor ; Display cursor |
303 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! | 303 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! |
304 | 304 |
305 alt_menu_loop1: ; Wait for button. | 305 alt_menu_loop1: ; Wait for button. |
306 btfsc uart_dump_screen ; Asked to dump screen contains ? | 306 btfsc uart_dump_screen ; Asked to dump screen contains ? |
307 call dump_screen ; Yes! | 307 call dump_screen ; Yes! |