mirror of
https://github.com/irmen/prog8.git
synced 2024-10-18 01:24:51 +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) {
|
asmsub disable_runstop_and_charsetswitch() clobbers(A) {
|
||||||
%asm {{
|
%asm {{
|
||||||
;; TODO c128 how to do this?
|
lda #$80
|
||||||
;; lda #$80
|
sta 247 ; disable charset switching
|
||||||
;; sta 657 ; disable charset switching
|
lda #112
|
||||||
;; lda #239
|
sta 808 ; disable run/stop key
|
||||||
;; sta 808 ; disable run/stop key
|
|
||||||
rts
|
rts
|
||||||
}}
|
}}
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
main {
|
main {
|
||||||
sub start() {
|
sub start() {
|
||||||
str input = "?" * 20
|
str input = "?" * 20
|
||||||
|
c128.disable_basic()
|
||||||
txt.lowercase()
|
txt.lowercase()
|
||||||
txt.print("Hello There! Enter Your Name: ")
|
txt.print("Hello There! Enter Your Name: ")
|
||||||
void txt.input_chars(input)
|
void txt.input_chars(input)
|
||||||
@ -10,10 +11,6 @@ main {
|
|||||||
repeat {
|
repeat {
|
||||||
txt.print(input)
|
txt.print(input)
|
||||||
txt.spc()
|
txt.spc()
|
||||||
sys.waitvsync()
|
|
||||||
sys.waitvsync()
|
|
||||||
sys.waitvsync()
|
|
||||||
sys.waitvsync()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user