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
..
65f4241
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";
/* オプションの処理 */
@@
-55,8
+55,8
@@
int main(int argc, char *argv[])
/* COMET II仮想マシンのリセット */
reset(memsize, clocks);
execptr->start = 0;
/* COMET II仮想マシンのリセット */
reset(memsize, clocks);
execptr->start = 0;
- execmode.
step
= true;
- exec(); /* プログラム実行 */
+ execmode.
monitor
= true;
+ exec();
/* プログラム実行 */
shutdown();
stat = (cerr->num == 0) ? 0 : 1;
freecerr(); /* エラーの解放 */
shutdown();
stat = (cerr->num == 0) ? 0 : 1;
freecerr(); /* エラーの解放 */