projects
/
YACASL2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
comet2monitorの修正
[YACASL2.git]
/
src
/
comet2monitor.c
diff --git
a/src/comet2monitor.c
b/src/comet2monitor.c
index
d6fcbea
..
3f9ed7a
100644
(file)
--- a/
src/comet2monitor.c
+++ b/
src/comet2monitor.c
@@
-24,7
+24,7
@@
int main(int argc, char *argv[])
{
int memsize = DEFAULT_MEMSIZE, clocks = DEFAULT_CLOCKS;
int opt, stat = 0;
{
int memsize = DEFAULT_MEMSIZE, clocks = DEFAULT_CLOCKS;
int opt, stat = 0;
- const char *version = PACKAGE_VERSION, *cmdversion = "comet2 of YACASL2 version %s\n";
+ const char *version = PACKAGE_VERSION, *cmdversion = "comet2
monitor: COMET II machine code monitor
of YACASL2 version %s\n";
const char *usage = "Usage: %s [-vh] [-M <MEMORYSIZE>] [-C <CLOCKS>]\n";
/* オプションの処理 */
const char *usage = "Usage: %s [-vh] [-M <MEMORYSIZE>] [-C <CLOCKS>]\n";
/* オプションの処理 */
@@
-52,12
+52,14
@@
int main(int argc, char *argv[])
addcerrlist_load();
addcerrlist_exec();
addcerrlist_load();
addcerrlist_exec();
- /* COMET II仮想マシンのリセット */
- reset(memsize, clocks);
+ create_cmdtable(HASH_CMDTYPE);
+ reset(memsize, clocks);
/* COMET II仮想マシンのリセット */
execptr->start = 0;
execptr->start = 0;
- execmode.step = true;
- exec(); /* プログラム実行 */
+ execmode.monitor = true;
+ exec(); /* プログラム実行 */
+
shutdown();
shutdown();
+ free_cmdtable(HASH_CMDTYPE);
stat = (cerr->num == 0) ? 0 : 1;
freecerr(); /* エラーの解放 */
return stat;
stat = (cerr->num == 0) ? 0 : 1;
freecerr(); /* エラーの解放 */
return stat;