]> git.sur5r.net Git - cc65/blobdiff - libsrc/c128/cputc.s
poor man's _toascii routine, contributed by Fatih Aygun
[cc65] / libsrc / c128 / cputc.s
index 5c761118f01a923ce8d8f18147c00afa69f96701..5442e9f571f7dcb9aebd22c4d4343283e3716f9b 100644 (file)
@@ -18,6 +18,9 @@
 cputdirect      = PRINT
 newline         = NEWLINE
 
+;--------------------------------------------------------------------------
+
+.code
 
 _cputcxy:
        pha                     ; Save C
@@ -75,7 +78,8 @@ plot: ldy     CURS_X
 putchar        = $CC2F
 
 ;--------------------------------------------------------------------------
-; Module constructor/destructor
+; Module constructor/destructor. Don't move the constructor into the INIT
+; segment, because it shares most of the code with the destructor.
 
 initcputc:
        lda     #$C0