実行時の処理を修正
[YACASL2.git] / include / struct.h
index 39f874b..ec4f52b 100644 (file)
@@ -97,6 +97,7 @@ typedef struct {
     char *name;                 /**<命令名 */
     CMDTYPE type;               /**<命令タイプ */
     WORD code;                  /**<命令コード */
+    const void (*ptr);                   /**<命令の関数ポインタ */
 } CMD;
 
 /**
@@ -113,6 +114,7 @@ typedef struct _CMDTAB {
 typedef struct {
     WORD start;   /**<開始アドレス */
     WORD end;     /**<終了アドレス */
+    bool stop;    /**<終了フラグ */
 } EXECPTR;
 
 extern EXECPTR *execptr;
@@ -154,6 +156,11 @@ bool create_code_type();
  */
 CMDTYPE getcmdtype(WORD code);
 
+/**
+ * 命令コードから命令の関数ポインタを返す
+ */
+const void (*getcmdptr(WORD code));
+
 /**
  * コードがキーの命令ハッシュ表を解放する
  */