X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=include%2Fassemble.h;h=f6e081add610e658bbb4b436f0c90088ba4367c0;hp=6372e19105c884cedac77c512701f4bf8b69a39a;hb=a901ac636091cc9d044a78525064b699ef7a2760;hpb=fda1563ea37180835e0b9c6e7a9c7ae607895446 diff --git a/include/assemble.h b/include/assemble.h index 6372e19..f6e081a 100644 --- a/include/assemble.h +++ b/include/assemble.h @@ -1,3 +1,6 @@ +#ifndef YACASL2_ASSEMBLE_INCLUDED +#define YACASL2_ASSEMBLE_INCLUDED + /* CASL IIの制限 */ enum { LINESIZE = 1024, /* 行の最大文字数 */ @@ -7,6 +10,16 @@ enum { OPDSIZE = 40, /* オペラントの最大数 */ }; +/* アセンブルモード */ +typedef struct { + bool srcmode; /* ソースを表示する場合はtrue */ + bool labelmode; /* ラベル表を表示する場合はtrue */ + bool onlylabelmode; /* ラベル表を表示して終了する場合はtrue */ + bool asdetailmode; /* アセンブラ詳細結果を表示する場合はtrue */ + bool onlyassemblemode; /* アセンブルだけを行う場合はtrue */ +} ASMODE; +extern ASMODE asmode; + /* 値を格納するポインタ */ extern WORD ptr; @@ -148,3 +161,5 @@ bool writeRPUSH(PASS pass); /* マクロ命令「RPOP」をメモリに書込 */ bool writeRPOP(PASS pass); + +#endif