From: Oliver Schmidt Date: Sun, 19 Aug 2018 22:22:45 +0000 (+0200) Subject: Implemented line wrap. X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1644bcdf035aca1ccf1b6c93543c0b8c96231ecf;p=cc65 Implemented line wrap. 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. --- diff --git a/libsrc/apple2/cputc.s b/libsrc/apple2/cputc.s index 348fa4af9..30383fcfe 100644 --- a/libsrc/apple2/cputc.s +++ b/libsrc/apple2/cputc.s @@ -50,6 +50,7 @@ cputdirect: lda CH cmp WNDWDTH bcc :+ + jsr newline left: lda #$00 ; Goto left edge of screen sta CH : rts