Merge branch 'master'
authorj8takagi <j8takagi@nifty.com>
Wed, 27 Feb 2019 04:11:36 +0000 (13:11 +0900)
committerj8takagi <j8takagi@nifty.com>
Wed, 27 Feb 2019 04:11:36 +0000 (13:11 +0900)
include/assemble.h
include/exec.h
include/monitor.h
include/struct.h
src/casl2.c
src/doxygen.c
test/system/comet2monitor/help/0.txt
test/system/comet2monitor/load/0.txt

index 154f8e1..e5c1427 100644 (file)
@@ -9,11 +9,7 @@
 #include <assert.h>
 #include <errno.h>
 #include "cerr.h"
-#include "cmem.h"
-#include "exec.h"
-#include "hash.h"
 #include "struct.h"
-#include "word.h"
 #include "token.h"
 
 /**
index 5794e86..08b4dd1 100644 (file)
@@ -16,24 +16,6 @@ enum {
     INSIZE = 256    /**<IN命令の、入力領域 */
 };
 
-/**
- * @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 実行エラーをエラーリストに追加する
  */
index 566230e..e370072 100644 (file)
@@ -4,13 +4,8 @@
 #include <stdio.h>
 #include <string.h>
 #include <assert.h>
-#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 モニター
index ffc448e..dce1ddf 100644 (file)
@@ -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 汎用レジスタの番号からレジスタを表す文字列を返す
  *
index 6c17d50..334e2a1 100644 (file)
@@ -1,5 +1,6 @@
 #include "package.h"
 #include "assemble.h"
+#include "exec.h"
 
 /**
  * @brief CASL IIのエラーをエラーリストに追加
index 37981e8..4de72cf 100644 (file)
@@ -3,6 +3,7 @@
  * \section メイン関数
  * - src/casl2.c
  * - src/comet2.c
+ * - src/comet2monitor.c
  * - src/dumpword.c
  * - src/casl2rev.c
  * - src/comet2monitor.c
index cae706c..ed17f9f 100644 (file)
@@ -12,4 +12,4 @@ s[ave] -- Save object from the memory to a file. `s[ave] <filepath> [<start addr
 t[race] -- Display CPU register. `t[race] a[uto]/n[oauto]' set auto/noauto display. 
 T[race] -- Display CPU register as logical value. `t[race] a[uto]/n[oauto]' set auto/noauto display. 
 ?/h[elp] -- Display this help.
-(comet2 monitor) 
\ No newline at end of file
+(comet2 monitor) 
index 0e8b09b..8bdd4d6 100644 (file)
@@ -7,4 +7,4 @@ COMET II machine code monitor. Type ? for help.
 #0000: 0010: 1120 0018 7120 7110 8100 0001 000A 0001 0000 0000 0000 0000 0000 0000 0000 0000
 #0000: 0020: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
 #0000: 0030: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
-(comet2 monitor) 
\ No newline at end of file
+(comet2 monitor)