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\_H\_INCLUDED}}
\DoxyCodeLine{00002\ \textcolor{preprocessor}{\#define\ YACASL2\_STRUCT\_H\_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\ }
\DoxyCodeLine{00012\ \textcolor{keyword}{typedef}\ \textcolor{keywordtype}{unsigned}\ \textcolor{keywordtype}{int}\ CLOCK;}
\DoxyCodeLine{00013\ }
\DoxyCodeLine{00017\ \textcolor{keyword}{enum}\ \{}
\DoxyCodeLine{00018\ \ \ \ \ CMDSIZE\ =\ 4,\ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00019\ \ \ \ \ GRSIZE\ =\ 8,\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00020\ \ \ \ \ MAX\_MEMSIZE\ =\ 65536,\ \ \ \ \ \ }
\DoxyCodeLine{00021\ \ \ \ \ DEFAULT\_MEMSIZE\ =\ 512,\ \ \ \ }
\DoxyCodeLine{00022\ \ \ \ \ MAX\_CLOCKS\ =\ 1000000,\ \ \ \ \ }
\DoxyCodeLine{00023\ \ \ \ \ DEFAULT\_CLOCKS\ =\ MAX\_CLOCKS,\ }
\DoxyCodeLine{00024\ \};}
\DoxyCodeLine{00025\ }
\DoxyCodeLine{00029\ \textcolor{keyword}{enum}\ \{}
\DoxyCodeLine{00030\ \ \ \ \ OF\ =\ 0x4,\ \ \ \ }
\DoxyCodeLine{00031\ \ \ \ \ SF\ =\ 0x2,\ \ \ \ }
\DoxyCodeLine{00032\ \ \ \ \ ZF\ =\ 0x1,\ \ \ \ }
\DoxyCodeLine{00033\ \};}
\DoxyCodeLine{00034\ }
\DoxyCodeLine{00038\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\{}
\DoxyCodeLine{00039\ \ \ \ \ WORD\ gr[GRSIZE];\ }
\DoxyCodeLine{00040\ \ \ \ \ WORD\ sp;\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00041\ \ \ \ \ WORD\ pr;\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00042\ \ \ \ \ WORD\ fr;\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00043\ \}\ CPU;}
\DoxyCodeLine{00044\ }
\DoxyCodeLine{00048\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\{}
\DoxyCodeLine{00049\ \ \ \ \ CPU\ *cpu;\ \ \ \ \ \ \ \ }
\DoxyCodeLine{00050\ \ \ \ \ WORD\ *memory;\ \ \ \ }
\DoxyCodeLine{00051\ \ \ \ \ WORD\ memsize;\ \ \ \ \ }
\DoxyCodeLine{00052\ \ \ \ \ CLOCK\ clocks;\ \ \ \ }
\DoxyCodeLine{00053\ \}\ SYSTEM;}
\DoxyCodeLine{00054\ }
\DoxyCodeLine{00058\ \textcolor{keyword}{extern}\ SYSTEM\ *sys;}
\DoxyCodeLine{00059\ }
\DoxyCodeLine{00063\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{enum}\ \{}
\DoxyCodeLine{00064\ \ \ \ \ HASH\_CMDTYPE,}
\DoxyCodeLine{00065\ \ \ \ \ HASH\_CODE,}
\DoxyCodeLine{00066\ \ \ \ \ HASH\_MAX,}
\DoxyCodeLine{00067\ \}\ CMDTAB\_HASH;}
\DoxyCodeLine{00068\ }
\DoxyCodeLine{00073\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{enum}\ \{}
\DoxyCodeLine{00080\ \ \ \ \ R\_ADR\_X\ =\ 01,}
\DoxyCodeLine{00086\ \ \ \ \ R1\_R2\ =\ 02,}
\DoxyCodeLine{00092\ \ \ \ \ ADR\_X\ =\ 03,}
\DoxyCodeLine{00097\ \ \ \ \ R\_\ =\ 04,}
\DoxyCodeLine{00101\ \ \ \ \ NONE\ =\ 0,}
\DoxyCodeLine{00102\ \}\ CMDTYPE;}
\DoxyCodeLine{00103\ }
\DoxyCodeLine{00107\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\{}
\DoxyCodeLine{00108\ \ \ \ \ \textcolor{keywordtype}{char}\ *name;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00109\ \ \ \ \ \textcolor{keyword}{const}\ void\ (*ptr);\ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00110\ \}\ CMD;}
\DoxyCodeLine{00111\ }
\DoxyCodeLine{00115\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\{}
\DoxyCodeLine{00116\ \ \ \ \ \textcolor{keywordtype}{char}\ *name;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00117\ \ \ \ \ CMDTYPE\ type;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00118\ \ \ \ \ WORD\ code;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00119\ \ \ \ \ \textcolor{keyword}{const}\ void\ (*ptr);\ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00120\ \}\ COMET2CMD;}
\DoxyCodeLine{00121\ }
\DoxyCodeLine{00125\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\_CMDTAB\ \{}
\DoxyCodeLine{00126\ \ \ \ \ \textcolor{keyword}{struct\ }\_CMDTAB\ *next;\ \ \ \ \ \ \ }
\DoxyCodeLine{00127\ \ \ \ \ \textcolor{keyword}{const}\ COMET2CMD\ *cmd;\ \ \ \ \ \ \ }
\DoxyCodeLine{00128\ \}\ CMDTAB;}
\DoxyCodeLine{00129\ }
\DoxyCodeLine{00133\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\{}
\DoxyCodeLine{00134\ \ \ \ \ WORD\ start;\ \ \ }
\DoxyCodeLine{00135\ \ \ \ \ WORD\ end;\ \ \ \ \ }
\DoxyCodeLine{00136\ \ \ \ \ \textcolor{keywordtype}{bool}\ stop;\ \ \ \ }
\DoxyCodeLine{00137\ \}\ EXECPTR;}
\DoxyCodeLine{00138\ }
\DoxyCodeLine{00139\ \textcolor{keyword}{extern}\ EXECPTR\ *execptr;}
\DoxyCodeLine{00140\ }
\DoxyCodeLine{00144\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\{}
\DoxyCodeLine{00145\ \ \ \ \ \textcolor{keywordtype}{bool}\ trace;\ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00146\ \ \ \ \ \textcolor{keywordtype}{bool}\ logical;\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00147\ \ \ \ \ \textcolor{keywordtype}{bool}\ dump;\ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00148\ \ \ \ \ \textcolor{keywordtype}{int}\ dump\_start;\ \ \ \ \ \ \ }
\DoxyCodeLine{00149\ \ \ \ \ \textcolor{keywordtype}{int}\ dump\_end;\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00150\ \ \ \ \ \textcolor{keywordtype}{bool}\ monitor;\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00151\ \ \ \ \ \textcolor{keywordtype}{bool}\ step;\ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00152\ \}\ EXECMODE;}
\DoxyCodeLine{00153\ }
\DoxyCodeLine{00157\ \textcolor{keyword}{extern}\ EXECMODE\ execmode;}
\DoxyCodeLine{00158\ }
\DoxyCodeLine{00166\ \textcolor{keywordtype}{char}\ *grstr(WORD\ word);}
\DoxyCodeLine{00167\ }
\DoxyCodeLine{00175\ WORD\ memsize\_str2word(\textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *str);}
\DoxyCodeLine{00176\ }
\DoxyCodeLine{00183\ \textcolor{keywordtype}{void}\ comet2\_init(WORD\ memsize,\ CLOCK\ clocks);}
\DoxyCodeLine{00184\ }
\DoxyCodeLine{00188\ \textcolor{keywordtype}{void}\ comet2\_reset();}
\DoxyCodeLine{00189\ }
\DoxyCodeLine{00193\ \textcolor{keywordtype}{void}\ comet2\_resetall();}
\DoxyCodeLine{00194\ }
\DoxyCodeLine{00198\ \textcolor{keywordtype}{void}\ comet2\_shutdown();}
\DoxyCodeLine{00199\ }
\DoxyCodeLine{00205\ \textcolor{keywordtype}{bool}\ create\_cmdtable(CMDTAB\_HASH\ hash);}
\DoxyCodeLine{00206\ }
\DoxyCodeLine{00210\ \textcolor{keywordtype}{void}\ free\_cmdtable(CMDTAB\_HASH\ hash);}
\DoxyCodeLine{00211\ }
\DoxyCodeLine{00216\ WORD\ getcmdcode(\textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *cmd,\ CMDTYPE\ type);}
\DoxyCodeLine{00217\ }
\DoxyCodeLine{00221\ \textcolor{keyword}{const}\ void\ (*getcmdptr(WORD\ code));}
\DoxyCodeLine{00222\ }
\DoxyCodeLine{00226\ CMDTYPE\ getcmdtype(WORD\ code);}
\DoxyCodeLine{00227\ }
\DoxyCodeLine{00231\ \textcolor{keywordtype}{char}\ *getcmdname(WORD\ code);}
\DoxyCodeLine{00232\ }
\DoxyCodeLine{00233\ \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}

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