diff code_part1/OSTC_code_asm_part1/menu_custom.asm @ 7:5c4ba624165d

cf32 bug fixed
author heinrichsweikamp
date Wed, 24 Feb 2010 13:33:17 +0100
parents 96a35aeda5f2
children 68825abc35f7
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/menu_custom.asm	Mon Feb 15 16:08:56 2010 +0100
+++ b/code_part1/OSTC_code_asm_part1/menu_custom.asm	Wed Feb 24 13:33:17 2010 +0100
@@ -113,16 +113,13 @@
 menu_custom_functions_page2:
 	movlw	d'154'			; start of custom function descriptors		
 	movwf	customfunction_temp1
-	bsf		customfunction_page	; Use Page I...
-	movlw	d'1'
-	movwf	EEADRH
+	bsf		customfunction_page	; Use Page II...
 	bra		menu_custom_functions0
 
 menu_custom_functions:
 	movlw	d'36'			; start of custom function descriptors		
 	movwf	customfunction_temp1
 	bcf		customfunction_page	; Use Page I...
-	clrf	EEADRH
 	
 menu_custom_functions0:
 	bsf		leftbind
@@ -153,6 +150,11 @@
 	WIN_INVERT	.0	; Init new Wordprocessor	
 
 menu_custom_functions1:
+	movlw	d'1'
+	btfss	customfunction_page	; Use Page II...
+	movlw	d'0'
+	movwf	EEADRH
+
 	clrf	timeout_counter2
 	bcf		menubit2
 	bcf		menubit3
@@ -174,12 +176,6 @@
 	movwf	POSTINC2
 	call	word_processor
 
-;	movlw	d'16'
-;	movwf	temp1
-;	WIN_LEFT 	.40
-;	WIN_TOP		.35
-;	call	PLED_display_clear_common_y1
-;
 	movf	customfunction_temp1,W		; start of custom function descriptors		
 	addwf	decodata+0,W				; add # of current custom function, place result in wreg
 	call	displaytext1				; shows descriptor