]> git.sur5r.net Git - cc65/commitdiff
fixed VDC register assignments
authormrdudz <mrdudz@users.noreply.github.com>
Mon, 7 Sep 2015 10:55:36 +0000 (12:55 +0200)
committermrdudz <mrdudz@users.noreply.github.com>
Mon, 7 Sep 2015 10:55:36 +0000 (12:55 +0200)
asminc/pce.inc
libsrc/pce/conio.s

index 9a77bcc4e27f52e20b8ff008a1b40ab63b51fdb0..3e82c38cc04429abe33b8262cfdedfdc8d23b2c5 100644 (file)
@@ -18,27 +18,29 @@ charsperline    = 61
 CH_HLINE        = 1
 CH_VLINE        = 2
 
-; huc6270 - Video Display Controller (vdc)
+; huc6270 - Video Display Controller (VDC)
 
 VDC_MAWR        = 0             ; Memory Address Write Register
 VDC_MARR        = 1             ; Memory Address Read Register
-VDC_VWR         = 2             ; VRAM Write Register
-VDC_VRR         = 3             ; VRAM Read Register
-VDC_CR          = 4             ; Control Register
-VDC_RCR         = 5             ; Raster Counter Register
-VDC_BXR         = 6             ; Background X-Scroll Register
-VDC_BYR         = 7             ; Background Y-Scroll Register
-VDC_MWR         = 8             ; Memory-access Width Register
-VDC_HSR         = 9             ; Horizontal Sync Register (?)
-VDC_HDR         = 10            ; Horizontal Display Register (?)
-VDC_VPR         = 11            ; (unknown)
-VDC_VDW         = 12            ; (unknown use)
-VDC_VCR         = 13            ; (unknown use)
-VDC_DCR         = 14            ; (DMA) Control Register
-VDC_SOUR        = 15            ; (DMA) Source Register
-VDC_DESR        = 16            ; (DMA) Destination Register
-VDC_LENR        = 17            ; (DMA) Length Register
-VDC_SATB        = 18            ; Sprite Attribute Table
+VDC_VWR         = 2             ; VRAM Write Register (write only)
+VDC_VRR         = 2             ; VRAM Read Register (read only)
+VDC_UNK03       = 3             ; (unknown)
+VDC_UNK04       = 4             ; (unknown)
+VDC_CR          = 5             ; Control Register
+VDC_RCR         = 6             ; Raster Counter Register
+VDC_BXR         = 7             ; Background X-Scroll Register
+VDC_BYR         = 8             ; Background Y-Scroll Register
+VDC_MWR         = 9             ; Memory-access Width Register
+VDC_HSR         = 10            ; Horizontal Sync Register
+VDC_HDR         = 11            ; Horizontal Display Register
+VDC_VPR         = 12            ; Vertical synchronous register
+VDC_VDW         = 13            ; Vertical display register
+VDC_VCR         = 14            ; Vertical display END position register
+VDC_DCR         = 15            ; (DMA) Control Register
+VDC_SOUR        = 16            ; (DMA) Source Register
+VDC_DESR        = 17            ; (DMA) Destination Register
+VDC_LENR        = 18            ; (DMA) Length Register
+VDC_SATB        = 19            ; Sprite Attribute Table
 
 ; VDC port
 ; Note: absolute addressing mode must be used when writing to this port
index b9333e1fa6f9eb302106370ea99c02328aef042b..a8565a6ae1ac23a20cab440204204f354cd7d672 100644 (file)
@@ -14,7 +14,7 @@ initconio:
         jsr     conio_init
         jsr     set_palette
 
-        st0     #VDC_RCR
+        st0     #VDC_CR
         st1     #<$0088
         st2     #>$0088
         rts