X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=include%2Fstruct.h;h=d4d87d2047b744f389b0b927001a964b0a3fd601;hb=15a07be760d84746bbace2d70326cd939f4568fd;hp=54a2418b94240ff0e9bfe80983d4fba93fb8083c;hpb=03e322484530da78d796401413d9f5f493d95345;p=YACASL2.git diff --git a/include/struct.h b/include/struct.h index 54a2418..d4d87d2 100644 --- a/include/struct.h +++ b/include/struct.h @@ -1,8 +1,13 @@ #ifndef YACASL2_CASL2_INCLUDED #define YACASL2_CASL2_INCLUDED +#include +#include +#include #include #include "word.h" +#include "cmem.h" +#include "hash.h" /** * @brief COMET IIの規格値 @@ -80,7 +85,7 @@ typedef enum { /** * オペランドなし */ - NONE = 00, + NONE = 0, } CMDTYPE; /** @@ -156,6 +161,16 @@ bool create_code_cmdtype(); */ const void (*getcmdptr(WORD code)); +/** + * 命令コードから命令のタイプを返す + */ +CMDTYPE getcmdtype(WORD code); + +/** + * 命令コードから命令の名前を返す + */ +char *getcmdname(WORD code); + /** * コードがキーの命令ハッシュ表を解放する */