From: j8takagi Date: Mon, 22 Jun 2026 05:31:02 +0000 (+0900) Subject: CPUリセット時の動作を修正するため、execptr->stopをfalseに戻す X-Git-Tag: v0.5p58~3 X-Git-Url: https://j8takagi.net/gitweb?a=commitdiff_plain;h=a58e0f73265e147313eedd3c9063a0ba39c8f428;p=yacasl2.git CPUリセット時の動作を修正するため、execptr->stopをfalseに戻す --- diff --git a/src/struct.c b/src/struct.c index 855a266..2ad0f2b 100644 --- a/src/struct.c +++ b/src/struct.c @@ -310,6 +310,8 @@ void memory_reset() { */ void comet2_reset() { + /* CASL2プログラム終了のアドレスを初期化 */ + execptr->stop = false; /* CPUをリセット */ cpu_reset(); } @@ -319,6 +321,8 @@ void comet2_reset() */ void comet2_resetall() { + /* CASL2プログラム終了のアドレスを初期化 */ + execptr->stop = false; /* CPUをリセット */ cpu_reset(); /* メモリをリセット */