COMET IIモニターに、コマンドQUITとREVERSEを追加
[YACASL2.git] / include / exec.h
index e73db1c..3e36e4b 100644 (file)
@@ -3,9 +3,13 @@
 
 #include <stdbool.h>
 #include <stdio.h>
+#include <assert.h>
+#include <time.h>
 #include "struct.h"
 #include "word.h"
 #include "cmem.h"
+#include "cerr.h"
+#include "monitor.h"
 
 enum {
     INSIZE = 256    /**<IN命令の、入力領域 */
@@ -18,11 +22,11 @@ typedef struct {
     bool trace;           /**<レジストリの内容をステップごとに表示する場合はtrue */
     bool logical;         /**<レジストリの内容を論理値(0から65535)で表示する場合はtrue */
     bool dump;            /**<メモリの内容をステップごとに表示する場合はtrue */
-    bool debugger;           /**<デバッガーモードの場合はtrue */
+    bool step;           /**<ステップ実行の場合はtrue */
 } EXECMODE;
 
 /**
- * @brief 実行モード: trace, logical, dump, debugger
+ * @brief 実行モード: trace, logical, dump, step
  */
 extern EXECMODE execmode;
 
@@ -370,8 +374,11 @@ void svc();
  * @brief COMET IIのメモリを表示する
  *
  * @return なし
+ *
+ * @param start 表示の開始アドレス
+ * @param end 表示の終了アドレス
  */
-void dumpmemory();
+void dumpmemory(WORD start, WORD end);
 
 /**
  * @brief COMET IIのレジスタを表示する
@@ -389,11 +396,15 @@ void dspregister();
  */
 bool disassemble_file(const char *file);
 
+
 /**
- * @brief COMET IIã\83\87ã\83\90ã\83\83ã\82¬ã\83¼ã\82\92èµ·å\8b\95する
+ * @brief COMET IIã\81®ã\83¡ã\83¢ã\83ªã\83¼ã\82\92é\80\86ã\82¢ã\82»ã\83³ã\83\96ã\83«ã\81\97ã\80\81æ¨\99æº\96å\87ºå\8a\9bã\81¸å\87ºå\8a\9bする
  *
  * @return なし
+ *
+ * @param *start 逆アセンブルの開始位置
+ * @param *end 逆アセンブルの終了位置
  */
-void debugger();
+void disassemble_memory(WORD start, WORD end);
 
 #endif            /* YACASL2_EXEC_INCLUDEDの終端 */