X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=include%2Fassemble.h;h=78f5b8abce185a1f06a2b726de2cc6c3448fcfd6;hp=257fe37ba91fecd8fa18c43d58407f743e3d18b9;hb=2f0b91ab1a54973a084e1609b46a1432c8b8e334;hpb=1708c99d4b6263863304d48ebca3b3473d6a0112 diff --git a/include/assemble.h b/include/assemble.h index 257fe37..78f5b8a 100644 --- a/include/assemble.h +++ b/include/assemble.h @@ -1,7 +1,17 @@ #ifndef YACASL2_ASSEMBLE_INCLUDED #define YACASL2_ASSEMBLE_INCLUDED +#include +#include +#include #include +#include +#include +#include +#include "cerr.h" +#include "cmem.h" +#include "exec.h" +#include "hash.h" #include "struct.h" #include "word.h" @@ -65,9 +75,7 @@ typedef struct { */ typedef struct _LABELTAB { struct _LABELTAB *next; /**<リスト次項目へのポインタ */ - char *prog; /**<プログラム名 */ - char *label; /**<ラベル名 */ - WORD adr; /**<アドレス */ + LABELARRAY *label; /**<ラベル配列 */ } LABELTAB; /** @@ -179,6 +187,17 @@ void addcerrlist_assemble(); */ bool assemblefile(const char *file, PASS pass); +/** + * @brief 指定された1つまたは複数のファイルを2回アセンブル + * + * @return なし + * + * @param filec アセンブルするファイルの数 + * @param filev アセンブルするファイル名の配列 + * @param adr アセンブル結果を格納するアドレス + */ +void assemble(int filec, char *filev[], WORD adr); + /** * @brief ファイルにアセンブル結果を書き込む *