mirror of
https://github.com/irmen/prog8.git
synced 2024-09-07 19:54:26 +00:00
correctly disable charset switching
This commit is contained in:
parent
a3be8ccc87
commit
3e3da38de1
@ -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
|
||||
}}
|
||||
}
|
||||
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user