\doxysection{assemble.\+h}
\label{assemble_8h_source}\index{include/assemble.h@{include/assemble.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{preprocessor}{\#ifndef\ YACASL2\_ASSEMBLE\_H\_INCLUDED}}
\DoxyCodeLine{00002\ \textcolor{preprocessor}{\#define\ YACASL2\_ASSEMBLE\_H\_INCLUDED}}
\DoxyCodeLine{00003\ }
\DoxyCodeLine{00004\ \textcolor{preprocessor}{\#include\ <stdio.h>}}
\DoxyCodeLine{00005\ \textcolor{preprocessor}{\#include\ <stdlib.h>}}
\DoxyCodeLine{00006\ \textcolor{preprocessor}{\#include\ <string.h>}}
\DoxyCodeLine{00007\ \textcolor{preprocessor}{\#include\ <stdbool.h>}}
\DoxyCodeLine{00008\ \textcolor{preprocessor}{\#include\ <ctype.h>}}
\DoxyCodeLine{00009\ \textcolor{preprocessor}{\#include\ <assert.h>}}
\DoxyCodeLine{00010\ \textcolor{preprocessor}{\#include\ <errno.h>}}
\DoxyCodeLine{00011\ \textcolor{preprocessor}{\#include\ "{}cerr.h"{}}}
\DoxyCodeLine{00012\ \textcolor{preprocessor}{\#include\ "{}struct.h"{}}}
\DoxyCodeLine{00013\ \textcolor{preprocessor}{\#include\ "{}token.h"{}}}
\DoxyCodeLine{00014\ }
\DoxyCodeLine{00018\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\{}
\DoxyCodeLine{00019\ \ \ \ \ \textcolor{keywordtype}{bool}\ src;\ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00020\ \ \ \ \ \textcolor{keywordtype}{bool}\ label;\ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00021\ \ \ \ \ \textcolor{keywordtype}{bool}\ onlylabel;\ \ \ \ \ \ \ }
\DoxyCodeLine{00022\ \ \ \ \ \textcolor{keywordtype}{bool}\ asdetail;\ \ \ \ \ \ \ \ }
\DoxyCodeLine{00023\ \ \ \ \ \textcolor{keywordtype}{bool}\ onlyassemble;\ \ \ \ }
\DoxyCodeLine{00024\ \}\ ASMODE;}
\DoxyCodeLine{00025\ }
\DoxyCodeLine{00029\ \textcolor{keyword}{extern}\ ASMODE\ asmode;}
\DoxyCodeLine{00030\ }
\DoxyCodeLine{00034\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\{}
\DoxyCodeLine{00035\ \ \ \ \ WORD\ ptr;\ \ \ \ \ }
\DoxyCodeLine{00036\ \ \ \ \ WORD\ lptr;\ \ \ \ }
\DoxyCodeLine{00037\ \ \ \ \ \textcolor{keywordtype}{char}\ *prog;\ \ \ }
\DoxyCodeLine{00038\ \}\ ASPTR;}
\DoxyCodeLine{00039\ }
\DoxyCodeLine{00043\ \textcolor{keyword}{extern}\ ASPTR\ *asptr;}
\DoxyCodeLine{00044\ }
\DoxyCodeLine{00048\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\{}
\DoxyCodeLine{00049\ \ \ \ \ \textcolor{keywordtype}{char}\ *prog;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00050\ \ \ \ \ \textcolor{keywordtype}{char}\ *label;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00051\ \ \ \ \ WORD\ adr;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00052\ \}\ LABELARRAY;}
\DoxyCodeLine{00053\ }
\DoxyCodeLine{00057\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\_LABELTAB\ \{}
\DoxyCodeLine{00058\ \ \ \ \ \textcolor{keyword}{struct\ }\_LABELTAB\ *next;\ \ \ \ \ }
\DoxyCodeLine{00059\ \ \ \ \ LABELARRAY\ *label;\ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00060\ \}\ LABELTAB;}
\DoxyCodeLine{00061\ }
\DoxyCodeLine{00065\ \textcolor{keyword}{enum}\ \{}
\DoxyCodeLine{00066\ \ \ \ \ LABELTABSIZE\ =\ 251,\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00067\ \};}
\DoxyCodeLine{00068\ }
\DoxyCodeLine{00072\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{enum}\ \{}
\DoxyCodeLine{00073\ \ \ \ \ FIRST\ =\ 0,\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00074\ \ \ \ \ SECOND\ =\ 1,\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00075\ \}\ PASS;}
\DoxyCodeLine{00076\ }
\DoxyCodeLine{00081\ \textcolor{keywordtype}{void}\ addcerrlist\_label();}
\DoxyCodeLine{00082\ }
\DoxyCodeLine{00091\ WORD\ getlabel(\textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *prog,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *label);}
\DoxyCodeLine{00092\ }
\DoxyCodeLine{00102\ \textcolor{keywordtype}{bool}\ addlabel(\textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *prog,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *label,\ WORD\ adr);}
\DoxyCodeLine{00103\ }
\DoxyCodeLine{00108\ \textcolor{keywordtype}{void}\ printlabel();}
\DoxyCodeLine{00109\ }
\DoxyCodeLine{00114\ \textcolor{keywordtype}{void}\ freelabel();}
\DoxyCodeLine{00115\ }
\DoxyCodeLine{00120\ \textcolor{keywordtype}{void}\ addcerrlist\_assemble();}
\DoxyCodeLine{00121\ }
\DoxyCodeLine{00132\ \textcolor{keywordtype}{bool}\ assemblefile(\textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *file,\ PASS\ pass);}
\DoxyCodeLine{00133\ }
\DoxyCodeLine{00143\ \textcolor{keywordtype}{bool}\ assemble(\textcolor{keywordtype}{int}\ filec,\ \textcolor{keywordtype}{char}\ *filev[],\ WORD\ adr);}
\DoxyCodeLine{00144\ }
\DoxyCodeLine{00150\ \textcolor{keywordtype}{void}\ outassemble(\textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *file);}
\DoxyCodeLine{00151\ }
\DoxyCodeLine{00152\ \textcolor{preprocessor}{\#endif}}
\end{DoxyCode}