]> git.sur5r.net Git - cc65/commitdiff
Define the screen dimension defines in a more meaningful way.
authorStephan Mühlstrasser <stephan.muehlstrasser@web.de>
Sun, 22 Feb 2015 15:27:13 +0000 (16:27 +0100)
committerStephan Mühlstrasser <stephan.muehlstrasser@web.de>
Sun, 22 Feb 2015 15:27:13 +0000 (16:27 +0100)
libsrc/osic1p/_scrsize.s
libsrc/osic1p/cputc.s
libsrc/osic1p/osic1p.inc

index 337fe1ee780f0920b67cca25d2a6ba14964acb19..b0241c547ff72f5336a141e99cda0d808b585c6f 100644 (file)
@@ -13,7 +13,7 @@
         .include        "osic1p.inc"
 
 .proc   screensize
-        ldx     #(SCR_LINELEN + 1)
-        ldy     #(SCR_HEIGHT + 1)
+        ldx     #SCR_LINELEN
+        ldy     #SCR_HEIGHT
         rts
 .endproc
index 47969df152d66c12cb364259ca8418ef1621f94a..9e6ae3253f5e04135b3fdf3b00f094e0c894ad78 100644 (file)
@@ -35,7 +35,7 @@ cputdirect:
 ; Advance cursor position
 
 advance:
-        cpy     #SCR_LINELEN    ; xsize-1
+        cpy     #(SCR_LINELEN - 1)
         bne     L3
         jsr     newline         ; new line
         ldy     #$FF            ; + cr
index e95db637eee34b133f7293a0ccfed87740a1431f..f49bc122b5a1a818b9202c4d81262db92d59dace 100644 (file)
@@ -6,5 +6,5 @@ KBD             := $DF00        ; Polled keyboard register
 \r
 ; Other definitions\r
 VIDEORAMSIZE    = $0400         ; Size of C1P video RAM (1 kB)\r
-SCR_LINELEN     = $18           ; screen width - 1\r
-SCR_HEIGHT      = $18           ; screen height - 1\r
+SCR_LINELEN     = $19           ; screen width\r
+SCR_HEIGHT      = $19           ; screen height\r