root/doc_inner/doxygen/latex/struct_8h_source.tex

/* [<][>][^][v][top][bottom][index][help] */
\doxysection{struct.\+h}
\label{struct_8h_source}\index{include/struct.h@{include/struct.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{preprocessor}{\#ifndef\ YACASL2\_STRUCT\_INCLUDED}}
\DoxyCodeLine{00002\ \textcolor{preprocessor}{\#define\ YACASL2\_STRUCT\_INCLUDED}}
\DoxyCodeLine{00003\ }
\DoxyCodeLine{00004\ \textcolor{preprocessor}{\#include\ <stdio.h>}}
\DoxyCodeLine{00005\ \textcolor{preprocessor}{\#include\ <assert.h>}}
\DoxyCodeLine{00006\ \textcolor{preprocessor}{\#include\ <string.h>}}
\DoxyCodeLine{00007\ \textcolor{preprocessor}{\#include\ <time.h>}}
\DoxyCodeLine{00008\ \textcolor{preprocessor}{\#include\ "{}word.h"{}}}
\DoxyCodeLine{00009\ \textcolor{preprocessor}{\#include\ "{}cmem.h"{}}}
\DoxyCodeLine{00010\ \textcolor{preprocessor}{\#include\ "{}hash.h"{}}}
\DoxyCodeLine{00011\ \textcolor{preprocessor}{\#include\ "{}exec.h"{}}}
\DoxyCodeLine{00012\ }
\DoxyCodeLine{00016\ \textcolor{keyword}{enum}\ \{}
\DoxyCodeLine{00017\ \ \ \ \ CMDSIZE\ =\ 4,\ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00018\ \ \ \ \ GRSIZE\ =\ 8,\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00019\ \ \ \ \ DEFAULT\_MEMSIZE\ =\ 512,\ \ \ \ }
\DoxyCodeLine{00020\ \ \ \ \ DEFAULT\_CLOCKS\ =\ 5000000,\ }
\DoxyCodeLine{00021\ \};}
\DoxyCodeLine{00022\ }
\DoxyCodeLine{00026\ \textcolor{keyword}{enum}\ \{}
\DoxyCodeLine{00027\ \ \ \ \ OF\ =\ 0x4,\ \ \ \ }
\DoxyCodeLine{00028\ \ \ \ \ SF\ =\ 0x2,\ \ \ \ }
\DoxyCodeLine{00029\ \ \ \ \ ZF\ =\ 0x1,\ \ \ \ }
\DoxyCodeLine{00030\ \};}
\DoxyCodeLine{00031\ }
\DoxyCodeLine{00035\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\{}
\DoxyCodeLine{00036\ \ \ \ \ WORD\ gr[GRSIZE];\ }
\DoxyCodeLine{00037\ \ \ \ \ WORD\ sp;\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00038\ \ \ \ \ WORD\ pr;\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00039\ \ \ \ \ WORD\ fr;\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00040\ \}\ CPU;}
\DoxyCodeLine{00041\ }
\DoxyCodeLine{00045\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\{}
\DoxyCodeLine{00046\ \ \ \ \ CPU\ *cpu;\ \ \ \ \ \ \ \ }
\DoxyCodeLine{00047\ \ \ \ \ WORD\ *memory;\ \ \ \ }
\DoxyCodeLine{00048\ \ \ \ \ \textcolor{keywordtype}{int}\ memsize;\ \ \ \ \ }
\DoxyCodeLine{00049\ \ \ \ \ clock\_t\ clocks;\ \ }
\DoxyCodeLine{00050\ \}\ SYSTEM;}
\DoxyCodeLine{00051\ }
\DoxyCodeLine{00055\ \textcolor{keyword}{extern}\ SYSTEM\ *sys;}
\DoxyCodeLine{00056\ }
\DoxyCodeLine{00060\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{enum}\ \{}
\DoxyCodeLine{00061\ \ \ \ \ HASH\_CMDTYPE,}
\DoxyCodeLine{00062\ \ \ \ \ HASH\_CODE,}
\DoxyCodeLine{00063\ \ \ \ \ HASH\_MAX,}
\DoxyCodeLine{00064\ \}\ CMDTAB\_HASH;}
\DoxyCodeLine{00065\ }
\DoxyCodeLine{00070\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{enum}\ \{}
\DoxyCodeLine{00077\ \ \ \ \ R\_ADR\_X\ =\ 01,}
\DoxyCodeLine{00083\ \ \ \ \ R1\_R2\ =\ 02,}
\DoxyCodeLine{00089\ \ \ \ \ ADR\_X\ =\ 03,}
\DoxyCodeLine{00094\ \ \ \ \ R\_\ =\ 04,}
\DoxyCodeLine{00098\ \ \ \ \ NONE\ =\ 0,}
\DoxyCodeLine{00099\ \}\ CMDTYPE;}
\DoxyCodeLine{00100\ }
\DoxyCodeLine{00104\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\{}
\DoxyCodeLine{00105\ \ \ \ \ \textcolor{keywordtype}{char}\ *name;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00106\ \ \ \ \ \textcolor{keyword}{const}\ void\ (*ptr);\ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00107\ \}\ CMD;}
\DoxyCodeLine{00108\ }
\DoxyCodeLine{00112\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\{}
\DoxyCodeLine{00113\ \ \ \ \ \textcolor{keywordtype}{char}\ *name;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00114\ \ \ \ \ CMDTYPE\ type;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00115\ \ \ \ \ WORD\ code;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00116\ \ \ \ \ \textcolor{keyword}{const}\ void\ (*ptr);\ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00117\ \}\ COMET2CMD;}
\DoxyCodeLine{00118\ }
\DoxyCodeLine{00122\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\_CMDTAB\ \{}
\DoxyCodeLine{00123\ \ \ \ \ \textcolor{keyword}{struct\ }\_CMDTAB\ *next;\ \ \ \ \ \ \ }
\DoxyCodeLine{00124\ \ \ \ \ \textcolor{keyword}{const}\ COMET2CMD\ *cmd;\ \ \ \ \ \ \ }
\DoxyCodeLine{00125\ \}\ CMDTAB;}
\DoxyCodeLine{00126\ }
\DoxyCodeLine{00130\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\{}
\DoxyCodeLine{00131\ \ \ \ \ WORD\ start;\ \ \ }
\DoxyCodeLine{00132\ \ \ \ \ WORD\ end;\ \ \ \ \ }
\DoxyCodeLine{00133\ \ \ \ \ \textcolor{keywordtype}{bool}\ stop;\ \ \ \ }
\DoxyCodeLine{00134\ \}\ EXECPTR;}
\DoxyCodeLine{00135\ }
\DoxyCodeLine{00136\ \textcolor{keyword}{extern}\ EXECPTR\ *execptr;}
\DoxyCodeLine{00137\ }
\DoxyCodeLine{00141\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\{}
\DoxyCodeLine{00142\ \ \ \ \ \textcolor{keywordtype}{bool}\ trace;\ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00143\ \ \ \ \ \textcolor{keywordtype}{bool}\ logical;\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00144\ \ \ \ \ \textcolor{keywordtype}{bool}\ dump;\ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00145\ \ \ \ \ \textcolor{keywordtype}{int}\ dump\_start;\ \ \ \ \ \ \ }
\DoxyCodeLine{00146\ \ \ \ \ \textcolor{keywordtype}{int}\ dump\_end;\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00147\ \ \ \ \ \textcolor{keywordtype}{bool}\ monitor;\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00148\ \ \ \ \ \textcolor{keywordtype}{bool}\ step;\ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00149\ \}\ EXECMODE;}
\DoxyCodeLine{00150\ }
\DoxyCodeLine{00154\ \textcolor{keyword}{extern}\ EXECMODE\ execmode;}
\DoxyCodeLine{00155\ }
\DoxyCodeLine{00163\ \textcolor{keywordtype}{char}\ *grstr(WORD\ word);}
\DoxyCodeLine{00164\ }
\DoxyCodeLine{00168\ \textcolor{keywordtype}{void}\ reset(\textcolor{keywordtype}{int}\ memsize,\ \textcolor{keywordtype}{int}\ clocks);}
\DoxyCodeLine{00169\ }
\DoxyCodeLine{00173\ \textcolor{keywordtype}{void}\ shutdown();}
\DoxyCodeLine{00174\ }
\DoxyCodeLine{00180\ \textcolor{keywordtype}{bool}\ create\_cmdtable(CMDTAB\_HASH\ hash);}
\DoxyCodeLine{00181\ }
\DoxyCodeLine{00185\ \textcolor{keywordtype}{void}\ free\_cmdtable(CMDTAB\_HASH\ hash);}
\DoxyCodeLine{00186\ }
\DoxyCodeLine{00191\ WORD\ getcmdcode(\textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *cmd,\ CMDTYPE\ type);}
\DoxyCodeLine{00192\ }
\DoxyCodeLine{00196\ \textcolor{keyword}{const}\ void\ (*getcmdptr(WORD\ code));}
\DoxyCodeLine{00197\ }
\DoxyCodeLine{00201\ CMDTYPE\ getcmdtype(WORD\ code);}
\DoxyCodeLine{00202\ }
\DoxyCodeLine{00206\ \textcolor{keywordtype}{char}\ *getcmdname(WORD\ code);}
\DoxyCodeLine{00207\ }
\DoxyCodeLine{00208\ \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}

/* [<][>][^][v][top][bottom][index][help] */