]> git.sur5r.net Git - cc65/commitdiff
Implemented line wrap.
authorOliver Schmidt <ol.sc@web.de>
Sun, 19 Aug 2018 22:22:45 +0000 (00:22 +0200)
committerOliver Schmidt <ol.sc@web.de>
Sun, 19 Aug 2018 22:30:17 +0000 (00:30 +0200)
According to https://github.com/cc65/wiki/wiki/Direct-console-IO it is undefined what happens when the end of the sceen is reached. But it is _not_ undefined what happens when the end of the line is reached. So implement the usual thing - which was easy enough to do after all.

libsrc/apple2/cputc.s

index 348fa4af9a73b588fdd26155db65e0e6b4c10bdb..30383fcfe0d3b803de6e561470a2e0f22ba3292b 100644 (file)
@@ -50,6 +50,7 @@ cputdirect:
         lda     CH
         cmp     WNDWDTH
         bcc     :+
+        jsr     newline
 left:   lda     #$00            ; Goto left edge of screen
         sta     CH
 :       rts