From: j8takagi Date: Wed, 27 Feb 2019 04:11:36 +0000 (+0900) Subject: Merge branch 'master' X-Git-Tag: v0.5p9~4^2~1 X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=commitdiff_plain;h=a7982d41c9809fdddbc5bac27c9d08b8a9d05012;hp=85d89b8d873f9293f2924de9e4ba2974ec1c3d55 Merge branch 'master' --- diff --git a/include/assemble.h b/include/assemble.h index 154f8e1..e5c1427 100644 --- a/include/assemble.h +++ b/include/assemble.h @@ -9,11 +9,7 @@ #include #include #include "cerr.h" -#include "cmem.h" -#include "exec.h" -#include "hash.h" #include "struct.h" -#include "word.h" #include "token.h" /** diff --git a/include/exec.h b/include/exec.h index 5794e86..08b4dd1 100644 --- a/include/exec.h +++ b/include/exec.h @@ -16,24 +16,6 @@ enum { INSIZE = 256 /** #include #include -#include "token.h" #include "assemble.h" -#include "hash.h" -#include "cmem.h" -#include "cerr.h" -#include "disassemble.h" -#include "word.h" +#include "exec.h" /** * @brief モニター diff --git a/include/struct.h b/include/struct.h index ffc448e..dce1ddf 100644 --- a/include/struct.h +++ b/include/struct.h @@ -134,6 +134,24 @@ typedef struct { extern EXECPTR *execptr; +/** + * @brief 実行モードを表すデータ型 + */ +typedef struct { + bool trace; /**<レジストリの内容をステップごとに表示する場合はtrue */ + bool logical; /**<レジストリの内容を論理値(0から65535)で表示する場合はtrue */ + bool dump; /**<メモリの内容をステップごとに表示する場合はtrue */ + int dump_start; /**<メモリの内容をステップごとに表示する場合の開始アドレス */ + int dump_end; /**<メモリの内容をステップごとに表示する場合の終了アドレス */ + bool monitor; /**<モニターモードの場合はtrue */ + bool step; /**<ステップ実行の場合はtrue */ +} EXECMODE; + +/** + * @brief 実行モード: trace, logical, dump, monitor, step + */ +extern EXECMODE execmode; + /** * @brief 汎用レジスタの番号からレジスタを表す文字列を返す * diff --git a/src/casl2.c b/src/casl2.c index 6c17d50..334e2a1 100644 --- a/src/casl2.c +++ b/src/casl2.c @@ -1,5 +1,6 @@ #include "package.h" #include "assemble.h" +#include "exec.h" /** * @brief CASL IIのエラーをエラーリストに追加 diff --git a/src/doxygen.c b/src/doxygen.c index 37981e8..4de72cf 100644 --- a/src/doxygen.c +++ b/src/doxygen.c @@ -3,6 +3,7 @@ * \section メイン関数 * - src/casl2.c * - src/comet2.c + * - src/comet2monitor.c * - src/dumpword.c * - src/casl2rev.c * - src/comet2monitor.c diff --git a/test/system/comet2monitor/help/0.txt b/test/system/comet2monitor/help/0.txt index cae706c..ed17f9f 100644 --- a/test/system/comet2monitor/help/0.txt +++ b/test/system/comet2monitor/help/0.txt @@ -12,4 +12,4 @@ s[ave] -- Save object from the memory to a file. `s[ave] [