diff code_part1/OSTC_code_asm_part1/oled_samsung.asm @ 452:05ec97e106da

Minor changes: Tp? curve in orange. Ceilling stippled area.
author JeanDo
date Fri, 19 Aug 2011 00:56:27 +0200
parents 07f5b0baaa57
children 472bccc39aeb
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/oled_samsung.asm	Thu Aug 18 23:33:24 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/oled_samsung.asm	Fri Aug 19 00:56:27 2011 +0200
@@ -131,13 +131,16 @@
 ; Inputs: win_leftx2, win_top, win_height, win_color:2
 ; Trashed: WREG, PROD, TABLAT, TBLPTRL
 half_vertical_line:
-        movff   win_leftx2,WREG         ; Init X position.
-        mullw   2
-        rcall   pixel_write_col320      ; Start Address Vertical (.0 - .319)
-
         clrf    TABLAT                  ; Loop index.
 
 half_vertical_line_loop:
+        movff   win_leftx2,WREG         ; Init X position.
+        mullw   2
+        movf    TABLAT,W                ; Get loop index
+        andlw   1                       ; Just low bit
+        xorwf   PRODL,F                 ; And use it to jitter current X position
+        rcall   pixel_write_col320      ; Start Address Vertical (.0 - .319)
+
         movff   win_height,WREG         ; Index reached height (Bank0 read) ?
         xorwf   TABLAT,W
         btfsc   STATUS,Z                ; Equals ?