exec.cを一部変更
[YACASL2.git] / include / struct.h
index de1aa4b..0825ac1 100644 (file)
@@ -114,6 +114,7 @@ typedef struct _CMDTAB {
 typedef struct {
     WORD start;   /**<開始アドレス */
     WORD end;     /**<終了アドレス */
+    bool stop;    /**<終了フラグ */
 } EXECPTR;
 
 extern EXECPTR *execptr;
@@ -150,10 +151,10 @@ void free_cmdtype_code();
 bool create_code_type();
 
 /**
- * å\91½ä»¤ã\82³ã\83¼ã\83\89ã\81\8bã\82\89å\91½ä»¤ã\82¿ã\82¤ã\83\97ã\82\92è¿\94ã\81\99
- * 無効な場合はNONEを返す
+ * 命令コードから命令を返す
+ * 命令コードでない場合はNULLを返す
  */
-CMDTYPE getcmdtype(WORD code);
+CMD *getcmd(WORD code);
 
 /**
  * 命令コードから命令の関数ポインタを返す