Mercurial > public > hwos_code
comparison src/divemenu_tree.asm @ 401:7be43d886bb1
Logbook marker can be set in dive mode menu (OC only)
author | heinrichsweikamp |
---|---|
date | Sat, 09 Jan 2016 11:42:01 +0100 |
parents | f0828110d864 |
children | 6e60012bb3fc |
comparison
equal
deleted
inserted
replaced
400:a508afb8cb50 | 401:7be43d886bb1 |
---|---|
33 | 33 |
34 bcf ccr_diluent_setup ; For OC gases | 34 bcf ccr_diluent_setup ; For OC gases |
35 bcf is_bailout_menu | 35 bcf is_bailout_menu |
36 movlw .1 | 36 movlw .1 |
37 movwf menupos ; Set to first option in divemode menu | 37 movwf menupos ; Set to first option in divemode menu |
38 MENU_BEGIN tMainMenu, .4 | 38 MENU_BEGIN tMainMenu, .5 |
39 MENU_CALL tDivemenu_Gaslist, do_divemode_gaslist | 39 MENU_CALL tDivemenu_Gaslist, do_divemode_gaslist |
40 MENU_CALL tDivemenu_ResetAvr, do_divemode_resetavr | 40 MENU_CALL tDivemenu_ResetAvr, do_divemode_resetavr |
41 MENU_CALL tDivemenu_ToggleGF, do_divemode_togglegf | 41 MENU_CALL tDivemenu_ToggleGF, do_divemode_togglegf |
42 MENU_CALL tDivemenu_Marker, do_set_marker | |
42 MENU_CALL tExit, do_exit_divemode_menu | 43 MENU_CALL tExit, do_exit_divemode_menu |
43 MENU_END | 44 MENU_END |
45 | |
46 do_set_marker: | |
47 movlw d'6' ; Type of Alarm (Manual Marker) | |
48 movwf AlarmType ; Copy to Alarm Register | |
49 bsf event_occured ; Set Event Flag | |
50 bra do_exit_divemode_menu ; And exit | |
44 | 51 |
45 main_divemenu_ccr: | 52 main_divemenu_ccr: |
46 bsf ccr_diluent_setup ; For diluents | 53 bsf ccr_diluent_setup ; For diluents |
47 movlw .1 | 54 movlw .1 |
48 movwf menupos ; Set to first option in divemode menu | 55 movwf menupos ; Set to first option in divemode menu |