cx16: sys.reset_system() now resets vera fully as well (such as PSG sound), kernal didn't seem to do that

This commit is contained in:
Irmen de Jong 2022-07-14 23:44:53 +02:00
parent f690f58bd4
commit 350dc731f1
2 changed files with 4 additions and 2 deletions

View File

@ -868,7 +868,9 @@ sys {
; Soft-reset the system back to initial power-on Basic prompt.
%asm {{
sei
stz $01 ; bank the kernal in
stz $01 ; bank the kernal in
lda #$80
sta cx16.VERA_CTRL ; reset Vera (kernal doesn't do this?)
jmp (cx16.RESET_VEC)
}}
}

View File

@ -3,7 +3,7 @@ TODO
For next release
^^^^^^^^^^^^^^^^
- cx16: sys.reset_system() doesn't silence the vera psg (kernel bug in reset vector?) use reset vera bit?
- txt.chrout("a") -> crash
- see if we can let for loops skip the loop if end<start, without adding a lot of code size/duplicating the loop condition
this is documented behiavor to now loop around but it's too easy to forget about