X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=src%2Fexec.c;h=b920fb157644cb754e5d511ea7ccf62b88c619f3;hp=2a716101789650c36b6e8cc59db30c97291983e9;hb=c2820a4ee2f34c794268b5a61d3223f1c270d39c;hpb=aac61489b663d7156faba49d9c3e99702dcf9b8c diff --git a/src/exec.c b/src/exec.c index 2a71610..b920fb1 100644 --- a/src/exec.c +++ b/src/exec.c @@ -110,7 +110,7 @@ static CERR cerr_load[] = { }; /** - * @brief 実行モード: trace, logical, dump, debugger + * @brief 実行モード: trace, logical, dump, step */ EXECMODE execmode = {false, false, false, false}; @@ -812,7 +812,7 @@ void exec() fprintf(stdout, "\n"); } /* デバッガーモードの場合、デバッガーを起動 */ - if(execmode.debugger == true || getbps(sys->cpu->pr) == true) { + if(execmode.step == true || getbps(sys->cpu->pr) == true) { debugger(); } /* プログラムレジスタをチェック */ @@ -850,6 +850,7 @@ void exec() } while(clock_end - clock_begin < CLOCKS_PER_SEC / sys->clocks); } execfin: + freebps(); free_code_cmdtype(); /* 命令のコードとタイプがキーのハッシュ表を解放 */ if(cerr->num > 0) { fprintf(stderr, "Execute error - %d: %s\n", cerr->num, cerr->msg);