remove workaround for black cursor at boot as this was recently fixed in the kernal rom.

This commit is contained in:
Irmen de Jong 2023-01-17 23:27:27 +01:00
parent dc16629c24
commit bbf6357222
3 changed files with 2 additions and 23 deletions

View File

@ -638,9 +638,6 @@ asmsub init_system() {
and #%11111000
ora P8ZP_SCRATCH_REG
sta VERA_DC_VIDEO ; keep old output mode
ldy #0
clc
jsr c64.PLOT ; force a call to PLOT to avoid autostart black square issue, also see textio.fix_autostart_square()
lda #$90 ; black
jsr c64.CHROUT
lda #1 ; swap fg/bg

View File

@ -21,26 +21,6 @@ sub home() {
txt.chrout(19)
}
asmsub fix_autostart_square() {
; Here's a possible work around for weird issue that prints a black character after first call to c64.PLOT()
; if you're also using c64.CINT() yourself. The default prog8 program initialization (which calls CINT) already performs this workaround.
; The problem occurs when a program is autostarded in the emulator with -run -prg test.prg,
; or when the program is saved as AUTOBOOT.X16 and loaded on boot like that.
%asm {{
phx
sec
jsr c64.PLOT
clc
jsr c64.PLOT
lda #' '
jsr c64.CHROUT ; overwrite the black square
clc
jsr c64.PLOT ; cursor back to original position
plx
rts
}}
}
sub nl() {
txt.chrout('\n')
}

View File

@ -20,6 +20,8 @@ For 9.0 major changes
- rewrite 6502 codegen on Pt* ast and symboltable, instead of CompilerAst nodes. (work in codegen-on-new-ast branch)
- optimize "dotted string" comments again.
- update to kotlin 1.8.0 once it is available in IDEA
Need help with
^^^^^^^^^^^^^^