From 350dc731f178463ab932ecf1dd3827494e800124 Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Thu, 14 Jul 2022 23:44:53 +0200 Subject: [PATCH] cx16: sys.reset_system() now resets vera fully as well (such as PSG sound), kernal didn't seem to do that --- compiler/res/prog8lib/cx16/syslib.p8 | 4 +++- docs/source/todo.rst | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/compiler/res/prog8lib/cx16/syslib.p8 b/compiler/res/prog8lib/cx16/syslib.p8 index 77666e337..8fc2d27e0 100644 --- a/compiler/res/prog8lib/cx16/syslib.p8 +++ b/compiler/res/prog8lib/cx16/syslib.p8 @@ -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) }} } diff --git a/docs/source/todo.rst b/docs/source/todo.rst index 05e37031f..67b55ad5f 100644 --- a/docs/source/todo.rst +++ b/docs/source/todo.rst @@ -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