Mercurial > public > hwos_code
comparison src/menu_tree.asm @ 139:e0b758865e91
some cleanup
author | heinrichsweikamp |
---|---|
date | Thu, 17 Jul 2014 17:56:09 +0200 |
parents | f3062a611eef |
children | b839972db982 |
comparison
equal
deleted
inserted
replaced
138:2852b0bd6391 | 139:e0b758865e91 |
---|---|
106 MENU_CALL tExit, return_ccr_menu | 106 MENU_CALL tExit, return_ccr_menu |
107 MENU_END | 107 MENU_END |
108 | 108 |
109 do_diluent_setup: | 109 do_diluent_setup: |
110 bsf ccr_diluent_setup ; =1: Setting up Diluents ("Gas6-10") | 110 bsf ccr_diluent_setup ; =1: Setting up Diluents ("Gas6-10") |
111 bcf short_gas_decriptions ; =1: Use short versions of gaslist_strcat_gas_mod and gaslist_strcat_setpoint | |
111 call gaslist_cleanup_list ; Takes care that only one gas can be first and first has 0m change depth | 112 call gaslist_cleanup_list ; Takes care that only one gas can be first and first has 0m change depth |
112 MENU_BEGIN tDiluentSetup, .6 | 113 MENU_BEGIN tDiluentSetup, .6 |
113 MENU_DYNAMIC gaslist_strcat_gas_mod, do_edit_gas_menu | 114 MENU_DYNAMIC gaslist_strcat_gas_mod, do_edit_gas_menu |
114 MENU_DYNAMIC gaslist_strcat_gas_mod, do_edit_gas_menu | 115 MENU_DYNAMIC gaslist_strcat_gas_mod, do_edit_gas_menu |
115 MENU_DYNAMIC gaslist_strcat_gas_mod, do_edit_gas_menu | 116 MENU_DYNAMIC gaslist_strcat_gas_mod, do_edit_gas_menu |
121 do_return_fixed_setpoints: | 122 do_return_fixed_setpoints: |
122 call menu_processor_pop ; drop exit line. | 123 call menu_processor_pop ; drop exit line. |
123 call menu_processor_pop ; back to last gas. | 124 call menu_processor_pop ; back to last gas. |
124 | 125 |
125 do_fixed_setpoints: | 126 do_fixed_setpoints: |
127 bcf short_gas_decriptions ; =1: Use short versions of gaslist_strcat_gas_mod and gaslist_strcat_setpoint | |
126 MENU_BEGIN tFixedSetpoints, .6 | 128 MENU_BEGIN tFixedSetpoints, .6 |
127 MENU_DYNAMIC gaslist_strcat_setpoint, do_edit_sp_menu | 129 MENU_DYNAMIC gaslist_strcat_setpoint, do_edit_sp_menu |
128 MENU_DYNAMIC gaslist_strcat_setpoint, do_edit_sp_menu | 130 MENU_DYNAMIC gaslist_strcat_setpoint, do_edit_sp_menu |
129 MENU_DYNAMIC gaslist_strcat_setpoint, do_edit_sp_menu | 131 MENU_DYNAMIC gaslist_strcat_setpoint, do_edit_sp_menu |
130 MENU_DYNAMIC gaslist_strcat_setpoint, do_edit_sp_menu | 132 MENU_DYNAMIC gaslist_strcat_setpoint, do_edit_sp_menu |
151 | 153 |
152 btfsc ccr_diluent_setup ; Return to CCR-Menu? | 154 btfsc ccr_diluent_setup ; Return to CCR-Menu? |
153 bra do_diluent_setup ; Yes. | 155 bra do_diluent_setup ; Yes. |
154 do_gas_menu: | 156 do_gas_menu: |
155 bcf ccr_diluent_setup ; =1: Setting up Diluents ("Gas6-10") | 157 bcf ccr_diluent_setup ; =1: Setting up Diluents ("Gas6-10") |
158 bcf short_gas_decriptions ; =1: Use short versions of gaslist_strcat_gas_mod and gaslist_strcat_setpoint | |
156 call gaslist_cleanup_list ; Takes care that only one gas can be first and first has 0m change depth | 159 call gaslist_cleanup_list ; Takes care that only one gas can be first and first has 0m change depth |
157 MENU_BEGIN tGaslist, .6 | 160 MENU_BEGIN tGaslist, .6 |
158 MENU_DYNAMIC gaslist_strcat_gas_mod, do_edit_gas_menu | 161 MENU_DYNAMIC gaslist_strcat_gas_mod, do_edit_gas_menu |
159 MENU_DYNAMIC gaslist_strcat_gas_mod, do_edit_gas_menu | 162 MENU_DYNAMIC gaslist_strcat_gas_mod, do_edit_gas_menu |
160 MENU_DYNAMIC gaslist_strcat_gas_mod, do_edit_gas_menu | 163 MENU_DYNAMIC gaslist_strcat_gas_mod, do_edit_gas_menu |
376 clrf desaturation_time+0 ; Reset Desat | 379 clrf desaturation_time+0 ; Reset Desat |
377 clrf desaturation_time+1 | 380 clrf desaturation_time+1 |
378 goto do_return_settings ; back to menu | 381 goto do_return_settings ; back to menu |
379 | 382 |
380 do_reset_settings: | 383 do_reset_settings: |
384 banksel common | |
381 extern option_reset_all | 385 extern option_reset_all |
382 call option_reset_all ; Reset all options to factory default. | 386 call option_reset_all ; Reset all options to factory default. |
383 goto restart ; Restart into surfacemode | 387 goto restart ; Restart into surfacemode |
384 | 388 |
385 do_continue_menu_3stack: ; Return three levels deep | 389 do_continue_menu_3stack: ; Return three levels deep |