correctly disable charset switching

This commit is contained in:
Irmen de Jong 2021-12-22 21:47:41 +01:00
parent a3be8ccc87
commit 3e3da38de1
2 changed files with 5 additions and 9 deletions

View File

@ -313,11 +313,10 @@ asmsub init_system_phase2() {
asmsub disable_runstop_and_charsetswitch() clobbers(A) {
%asm {{
;; TODO c128 how to do this?
;; lda #$80
;; sta 657 ; disable charset switching
;; lda #239
;; sta 808 ; disable run/stop key
lda #$80
sta 247 ; disable charset switching
lda #112
sta 808 ; disable run/stop key
rts
}}
}

View File

@ -3,6 +3,7 @@
main {
sub start() {
str input = "?" * 20
c128.disable_basic()
txt.lowercase()
txt.print("Hello There! Enter Your Name: ")
void txt.input_chars(input)
@ -10,10 +11,6 @@ main {
repeat {
txt.print(input)
txt.spc()
sys.waitvsync()
sys.waitvsync()
sys.waitvsync()
sys.waitvsync()
}
}
}