diff code_part1/OSTC_code_asm_part1/menu_logbook.asm @ 142:8b75ba28d641

Screen-flipping custom function. - Fix bank safe addressings.
author JeanDo
date Fri, 07 Jan 2011 03:01:02 +0100
parents d721b49b8934
children c09b0be2e1e6
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/menu_logbook.asm	Thu Jan 06 18:36:22 2011 +0100
+++ b/code_part1/OSTC_code_asm_part1/menu_logbook.asm	Fri Jan 07 03:01:02 2011 +0100
@@ -520,10 +520,11 @@
 
 	call		profile_display_fill		; In this column between this row (xC+0) and the last row (apnoe_mins)
 	movff		xC+0,apnoe_mins				; Store last row for fill routine
+	incf		timeout_counter3,F
+
 	movf		xC+0,W
 	call		PLED_SetRow					; 0...259
 
-	incf		timeout_counter3,F
 	movf		timeout_counter3,W
 	call		PLED_SetColumnPixel			; pixel x2
 	call		PLED_standard_color
@@ -593,12 +594,13 @@
 	movff		apnoe_mins,xC+1		; Copy
 profile_display_fill_down2:			; Loop	
 	decf		xC+1,F
+
 	movf		xC+1,W				; Row
 	call		PLED_SetRow			; 0...259
 
 	call		PLED_standard_color
+	call		PLED_PxlWrite_Single; Write one Pixel
 
-	call		PLED_PxlWrite_Single; Write one Pixel
 	movf		xC+0,W
 	cpfseq		xC+1				; Loop until xC+1=xC+0
 	bra			profile_display_fill_down2
@@ -608,12 +610,13 @@
 	movff		xC+0,xC+1			; Copy
 profile_display_fill_up2:			; Loop	
 	decf		xC+1,F
+
 	movf		xC+1,W				; Row
 	call		PLED_SetRow			; 0...259
 
-	call	PLED_standard_color
+	call	    PLED_standard_color
+	call		PLED_PxlWrite_Single; Write one Pixel
 
-	call		PLED_PxlWrite_Single; Write one Pixel
 	movf		apnoe_mins,W
 	cpfseq		xC+1				; Loop until xC+1=apnoe_mins
 	bra			profile_display_fill_up2