From 1644bcdf035aca1ccf1b6c93543c0b8c96231ecf Mon Sep 17 00:00:00 2001 From: Oliver Schmidt Date: Mon, 20 Aug 2018 00:22:45 +0200 Subject: [PATCH] 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. --- libsrc/apple2/cputc.s | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5