]> git.sur5r.net Git - cc65/blobdiff - libsrc/c16/cputc.s
Fixed key definitions (were removed from apple2.h)
[cc65] / libsrc / c16 / cputc.s
index 680dc559398633f3cd0c1f9d4d62b59f90582fa8..26bc2ae5a5a37cf44e67a2fb27951f3ba3675e5c 100644 (file)
@@ -8,7 +8,6 @@
        .export         _cputcxy, _cputc, cputdirect, putchar
        .export         newline, plot
        .import         popa, _gotoxy
-       .import         xsize
         .import         PLOT
 
        .include        "../plus4/plus4.inc"
@@ -50,7 +49,7 @@ cputdirect:
 
 advance:
         iny
-        cpy     xsize
+        cpy     #XSIZE
         bne     L3
         jsr     newline         ; new line
         ldy     #0              ; + cr
@@ -59,13 +58,13 @@ L3:     sty     CURS_X
 
 newline:
        clc
-       lda     xsize
+       lda     #XSIZE
        adc     SCREEN_PTR
        sta     SCREEN_PTR
        bcc     L4
        inc     SCREEN_PTR+1
        clc
-L4:    lda     xsize
+L4:    lda     #XSIZE
        adc     CRAM_PTR
        sta     CRAM_PTR
        bcc     L5