diff code_part1/OSTC_code_asm_part1/menu_gassetup.asm @ 576:ab2686087bce

faster font display, code cleaning
author heinrichsweikamp
date Sun, 22 Apr 2012 14:38:10 +0200
parents cbdcbbc91877
children 2cecac640202
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/menu_gassetup.asm	Sat Apr 21 15:08:09 2012 +0200
+++ b/code_part1/OSTC_code_asm_part1/menu_gassetup.asm	Sun Apr 22 14:38:10 2012 +0200
@@ -30,10 +30,7 @@
 menu_gassetup_prelist:
 	call	PLED_ClearScreen
 	call	gassetup_sort_gaslist			; Sorts Gaslist according to change depth
-	clrf	timeout_counter2
-	bcf		sleepmode
-	bcf		menubit2
-	bcf		menubit3
+	call	menu_pre_loop_common		; Clear some menu flags, timeout and switches
 	call	PLED_topline_box
 	WIN_INVERT	.1	; Init new Wordprocessor
 	DISPLAYTEXT	.106			; Gas List
@@ -277,7 +274,6 @@
 	movwf	menupos
 	bcf		gas_setup_page2			; Page 1 of gassetup
 	bcf		menubit4
-	bcf		cursor
 	bcf		sleepmode
 	bcf		first_FA				; Here: =1: -, =0: +
 
@@ -287,9 +283,7 @@
 	DISPLAYTEXT	.11			; Exit
 
 menu_gassetup1:
-	clrf	timeout_counter2
-	bcf		menubit2
-	bcf		menubit3
+	call	menu_pre_loop_common		; Clear some menu flags, timeout and switches
 
 	rcall	gassetup_title_bar2			; Displays the title bar with the current Gas info
 
@@ -621,9 +615,7 @@
 	DISPLAYTEXT	.11			; Exit
 
 next_gas_page1:
-	clrf	timeout_counter2
-	bcf		menubit2
-	bcf		menubit3
+	call	menu_pre_loop_common		; Clear some menu flags, timeout and switches
 
 	WIN_TOP		.65
 	WIN_LEFT	.20