Mercurial > public > hwos_code
comparison src/menu_processor.asm @ 275:653a3ab08062
rename into hwOS
author | heinrichsweikamp |
---|---|
date | Thu, 07 May 2015 13:11:14 +0200 |
parents | e1e5876bd777 |
children | 5ad479f2a868 |
comparison
equal
deleted
inserted
replaced
274:9347893b74ce | 275:653a3ab08062 |
---|---|
1 ;============================================================================= | 1 ;============================================================================= |
2 ; | 2 ; |
3 ; File menu_processor.asm | 3 ; File menu_processor.asm |
4 ; | 4 ; |
5 ; Routines to handle all OSTC3 graphic/text menus. | 5 ; Routines to handle all hwOS graphic/text menus. |
6 ; | 6 ; |
7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. | 7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. |
8 ;============================================================================= | 8 ;============================================================================= |
9 ; HISTORY | 9 ; HISTORY |
10 ; 2012-11-02 : [jDG] Cleanup for OSTC3: removed icons. Added scrolling. | 10 ; 2012-11-02 : [jDG] Cleanup for hwOS: removed icons. Added scrolling. |
11 ; But need a font with lower/upper alpha chars... | 11 ; But need a font with lower/upper alpha chars... |
12 | 12 |
13 #include "convert.inc" | 13 #include "convert.inc" |
14 #include "ostc3.inc" | 14 #include "hwos.inc" |
15 #include "strings.inc" | 15 #include "strings.inc" |
16 #include "tft.inc" | 16 #include "tft.inc" |
17 #include "varargs.inc" | 17 #include "varargs.inc" |
18 #include "wait.inc" | 18 #include "wait.inc" |
19 #include "start.inc" | 19 #include "start.inc" |
257 clrf timeout_counter2 ; Reset timeout | 257 clrf timeout_counter2 ; Reset timeout |
258 | 258 |
259 menu_vertical_2: | 259 menu_vertical_2: |
260 rcall menu_draw_lines ; Always re-draw whole menu | 260 rcall menu_draw_lines ; Always re-draw whole menu |
261 | 261 |
262 movlw CCP1CON_VALUE ; See ostc3.inc | 262 movlw CCP1CON_VALUE ; See hwos.inc |
263 btfss divemode ; Not in divemode | 263 btfss divemode ; Not in divemode |
264 movwf CCP1CON ; Power-on backlight | 264 movwf CCP1CON ; Power-on backlight |
265 | 265 |
266 menu_vertical_1: | 266 menu_vertical_1: |
267 movf selected_item,W ; Get current item data | 267 movf selected_item,W ; Get current item data |