diff code_part1/OSTC_code_asm_part1/oled_samsung.asm @ 130:d721b49b8934

Fixed profile view (Logbook)
author Heinrichsweikamp
date Tue, 04 Jan 2011 17:41:13 +0100
parents 06c4899ddb4b
children 8b75ba28d641
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/oled_samsung.asm	Tue Jan 04 16:32:28 2011 +0100
+++ b/code_part1/OSTC_code_asm_part1/oled_samsung.asm	Tue Jan 04 17:41:13 2011 +0100
@@ -57,8 +57,8 @@
 ; PLED_SetColumnPixel:
 ; -----------------------------
 PLED_SetColumnPixel:
-	movwf	win_leftx2		    ; d'0' ... d'159'
-	mullw   2                   ; Copy to POD, times 2.
+	movff	WREG,win_leftx2		 ; d'0' ... d'159'
+	mullw   2                   ; Copy to PROD, times 2.
 
 	movlw	0x21				; Start Address Vertical (.0 - .319)
 	rcall	PLED_CmdWrite
@@ -84,7 +84,9 @@
     rcall   PLED_PxlWrite_Single        ; Write first pixel.
 
 ; Write 2nd Pixel on same row but one column to the right
-    movwf   win_leftx2,W                ; Increment column address.
+	movff	win_top,WREG
+	rcall	PLED_SetRow					; Re-Set Row
+    movff  	win_leftx2,WREG             ; Increment column address.
     mullw   2
     incf    PRODL
     clrf    WREG                        ; Does not reset CARRY...