X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fstruct.h;h=ed58762a3a8334c338f448aede586db669571c33;hb=be496380efb4018b38076cfadb4b790fa388a1e3;hp=9064d5f5d3fe3c273374f3e5fd00997cb19fd282;hpb=a46594d66972fae37a609506bcf01f6b2bdc865e;p=YACASL2.git diff --git a/include/struct.h b/include/struct.h index 9064d5f..ed58762 100644 --- a/include/struct.h +++ b/include/struct.h @@ -85,7 +85,7 @@ typedef enum { /** * オペランドなし */ - NONE = 00, + NONE = 0, } CMDTYPE; /** @@ -111,7 +111,7 @@ typedef struct { */ typedef struct _CMDTAB { struct _CMDTAB *next; /**<リスト次項目へのポインタ */ - COMET2CMD *cmd; /**<命令コード表の項目 */ + const COMET2CMD *cmd; /**<命令コード表の項目 */ } CMDTAB; /** @@ -125,6 +125,15 @@ typedef struct { extern EXECPTR *execptr; +/** + * @brief 汎用レジスタの番号からレジスタを表す文字列を返す + * + * @return 汎用レジスタを表す文字列。「GR0」「GR1」・・・「GR7」のいずれか + * + * @param word レジスタ番号[0-7]を表すWORD値 + */ +char *grstr(WORD word); + /** * COMET II仮想マシンのリセット */