diff code_part1/OSTC_code_asm_part1/simulator.asm @ 35:d4f0c097a7fa

preparations for new gaslist
author heinrichsweikamp
date Tue, 25 May 2010 21:42:23 +0200
parents 5dbdc08e5460
children 92001c045088
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/simulator.asm	Tue May 25 18:10:51 2010 +0200
+++ b/code_part1/OSTC_code_asm_part1/simulator.asm	Tue May 25 21:42:23 2010 +0200
@@ -64,10 +64,10 @@
 	goto	menu_simulator_do			; call submenu
 
 	btfss	menubit
-	goto	menu						; exit setup menu and return to main menu
+	goto	menu_simulator_exit
 
 	btfsc	sleepmode
-	goto	more_menu
+	goto	menu_simulator_exit
 
 	btfsc	divemode
 	goto	restart						; exit menu, restart and enter divemode
@@ -85,6 +85,7 @@
 	bra		simulator_calc_deco
 	dcfsnz	menupos,F
 	bra		simulator_show_decoplan
+menu_simulator_exit:
 	movlw	d'4'
 	movwf	menupos
 	goto	more_menu2						; exit...