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

Screen-flipping custom function. - Fix bank safe addressings.
author JeanDo
date Fri, 07 Jan 2011 03:01:02 +0100
parents 6a94f96e9cea
children 6e456a6398e0
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/color_processor.asm	Thu Jan 06 18:36:22 2011 +0100
+++ b/code_part1/OSTC_code_asm_part1/color_processor.asm	Fri Jan 07 03:01:02 2011 +0100
@@ -53,7 +53,7 @@
 ;Temporary overlay (in bank 0), ACCESS area
     CBLOCK  0x000
         img_colors
-        img_width:2                     ; SHOULD be @1, because of aa_box_cmd
+        img_width:2                     ; SHOULD be @1, because of PLED_box_write
         img_pixelsL
         img_pixelsH
         img_pixelsU
@@ -64,7 +64,7 @@
 
 ;-----------------------------------------------------------------------------
 color_image:
-        movlb   HIGH(img_width)         ; Switch to bank 0.
+        movlb   HIGH(win_height)        ; Switch to bank 0.
 
         ;---- Get image parameters -------------------------------------------
         tblrd*+                     
@@ -100,7 +100,7 @@
         clrf    img_width+1             ; x2 on width, for the true box size.
         rlcf    img_width+0
         rlcf    img_width+1
-        call    aa_box_cmd
+        call    PLED_box_write
         AA_CMD_WRITE 0x22
 
         ;---- Decode pixels --------------------------------------------------