From 83478dc6531c2f99811f7bb5af3cb3786ffafb2b Mon Sep 17 00:00:00 2001 From: j8takagi Date: Mon, 6 Jul 2026 23:21:40 +0900 Subject: [PATCH] =?utf8?q?monitor=E3=81=A7q=E3=81=BE=E3=81=9F=E3=81=AFEOF?= =?utf8?q?=E3=81=A7comet=20II=E3=82=92=E5=8D=B3=E6=99=82=E7=B5=82=E4=BA=86?= =?utf8?q?=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/exec.c | 5 +++-- src/monitor.c | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/exec.c b/src/exec.c index 5ff6120..a95d440 100644 --- a/src/exec.c +++ b/src/exec.c @@ -692,7 +692,8 @@ void exec() create_cmdtable(HASH_CODE); /* 命令コードがキーのハッシュ表を作成 */ /* 機械語の実行 */ - for (sys->cpu->pr = execptr->start; ; ) { + sys->cpu->pr = execptr->start; + do { clock_begin = clock(); /* クロック周波数設定のため、実行開始時間を格納 */ dsp_trace_dump(); /* モニターモードでCOMET II起動時、またはステップモードかブレークポイントの場合、モニターを起動 */ @@ -742,7 +743,7 @@ void exec() do { clock_end = clock(); } while(clock_end - clock_begin < CLOCKS_PER_SEC / sys->clocks); - } + } while(1); execfin: FREE(s); freebps(); diff --git a/src/monitor.c b/src/monitor.c index fa03bea..08e4db3 100644 --- a/src/monitor.c +++ b/src/monitor.c @@ -371,6 +371,7 @@ void monquit() { execmode.monitor = false; execmode.step = false; + execptr->stop = true; freebps(); } -- 2.47.3