]> git.sur5r.net Git - cc65/blobdiff - asminc/pce.inc
fixed hline/vline
[cc65] / asminc / pce.inc
index 767f1a529da331523e55bab57f7f391e3e8b35e4..4680ba826f8762ac90872c61cd135330ef78837e 100644 (file)
@@ -11,14 +11,13 @@ CRAM_PTR    = $34       ;2
 CHARCOLOR   = $36
 RVS         = $37
 BGCOLOR     = $38
-_tickcount  = $39       ;4
+tickcount   = $39       ;4
 
 screenrows = (224/8)
-charsperline = (512/8)
-xsize = charsperline
+charsperline = 61
 
-CH_HLINE = 7
-CH_VLINE = 7
+CH_HLINE = 1
+CH_VLINE = 2
 
 ; huc6270 - Video Display Controller (vdc)
 
@@ -42,6 +41,9 @@ VDC_DESR =16 ; (DMA) Destination Register
 VDC_LENR =17 ; (DMA) Length Register
 VDC_SATB =18 ; Sprite Attribute Table
 
+; VDC port
+; Note: absolute addressing mode must be used when writing to this port
+
 VDC_CTRL        = $0000
 VDC_DATA_LO     = $0002
 VDC_DATA_HI     = $0003
@@ -79,24 +81,6 @@ IRQ_STATUS      = $1403
 CDR_MEM_DISABLE = $1803
 CDR_MEM_ENABLE  = $1807
 
-;; lda abs
-.macro ldaio arg1
-        .byte $ad
-        .word arg1
-.endmacro
-
-;; sta abs
-.macro staio arg1
-        .byte $8d
-        .word arg1
-.endmacro
-
-;; stz abs
-.macro stzio arg1
-        .byte $9c
-        .word arg1
-.endmacro
-
 ; Write VDC register
 .macro VREG arg1,arg2
         st0     #arg1