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.
This commit is contained in:
parent
f8c6c58373
commit
1644bcdf03
1 changed files with 1 additions and 0 deletions
|
@ -50,6 +50,7 @@ cputdirect:
|
|||
lda CH
|
||||
cmp WNDWDTH
|
||||
bcc :+
|
||||
jsr newline
|
||||
left: lda #$00 ; Goto left edge of screen
|
||||
sta CH
|
||||
: rts
|
||||
|
|
Loading…
Add table
Reference in a new issue