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\ \ \ \ \ 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\ \ \ \ \ void\ (*ptr);\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00120\ \ \ \ \ \textcolor{keywordtype}{int}\ wordlen;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00121\ \}\ COMET2CMD;}
\DoxyCodeLine{00122\ }
\DoxyCodeLine{00126\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\_CMDTAB\ \{}
\DoxyCodeLine{00127\ \ \ \ \ \textcolor{keyword}{struct\ }\_CMDTAB\ *next;\ \ \ \ \ \ \ }
\DoxyCodeLine{00128\ \ \ \ \ \textcolor{keyword}{const}\ COMET2CMD\ *cmd;\ \ \ \ \ \ \ }
\DoxyCodeLine{00129\ \}\ CMDTAB;}
\DoxyCodeLine{00130\ }
\DoxyCodeLine{00134\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\{}
\DoxyCodeLine{00135\ \ \ \ \ WORD\ start;\ \ \ }
\DoxyCodeLine{00136\ \ \ \ \ WORD\ end;\ \ \ \ \ }
\DoxyCodeLine{00137\ \ \ \ \ \textcolor{keywordtype}{bool}\ stop;\ \ \ \ }
\DoxyCodeLine{00138\ \ \ \ \ \textcolor{keywordtype}{bool}\ started;\ }
\DoxyCodeLine{00139\ \}\ EXECPTR;}
\DoxyCodeLine{00140\ }
\DoxyCodeLine{00141\ \textcolor{keyword}{extern}\ EXECPTR\ *execptr;}
\DoxyCodeLine{00142\ }
\DoxyCodeLine{00146\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\{}
\DoxyCodeLine{00147\ \ \ \ \ \textcolor{keywordtype}{bool}\ trace;\ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00148\ \ \ \ \ \textcolor{keywordtype}{bool}\ logical;\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00149\ \ \ \ \ \textcolor{keywordtype}{bool}\ dump;\ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00150\ \ \ \ \ WORD\ dump\_start;\ \ \ \ \ \ }
\DoxyCodeLine{00151\ \ \ \ \ WORD\ dump\_end;\ \ \ \ \ \ \ \ }
\DoxyCodeLine{00152\ \ \ \ \ \textcolor{keywordtype}{bool}\ monitor;\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00153\ \ \ \ \ \textcolor{keywordtype}{bool}\ step;\ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00154\ \}\ EXECMODE;}
\DoxyCodeLine{00155\ }
\DoxyCodeLine{00159\ \textcolor{keyword}{extern}\ EXECMODE\ execmode;}
\DoxyCodeLine{00160\ }
\DoxyCodeLine{00168\ \textcolor{keywordtype}{char}\ *grstr(WORD\ word);}
\DoxyCodeLine{00169\ }
\DoxyCodeLine{00177\ WORD\ memsize\_str2word(\textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *str);}
\DoxyCodeLine{00178\ }
\DoxyCodeLine{00185\ \textcolor{keywordtype}{void}\ comet2\_init(WORD\ memsize,\ CLOCK\ clocks);}
\DoxyCodeLine{00186\ }
\DoxyCodeLine{00190\ \textcolor{keywordtype}{void}\ comet2\_reset();}
\DoxyCodeLine{00191\ }
\DoxyCodeLine{00195\ \textcolor{keywordtype}{void}\ comet2\_resetall();}
\DoxyCodeLine{00196\ }
\DoxyCodeLine{00200\ \textcolor{keywordtype}{void}\ comet2\_shutdown();}
\DoxyCodeLine{00201\ }
\DoxyCodeLine{00207\ \textcolor{keywordtype}{bool}\ create\_cmdtable(CMDTAB\_HASH\ hash);}
\DoxyCodeLine{00208\ }
\DoxyCodeLine{00212\ \textcolor{keywordtype}{void}\ free\_cmdtable(CMDTAB\_HASH\ hash);}
\DoxyCodeLine{00213\ }
\DoxyCodeLine{00218\ WORD\ getcmdcode(\textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *cmd,\ CMDTYPE\ type);}
\DoxyCodeLine{00219\ }
\DoxyCodeLine{00224\ WORD\ getcmdwordlen(\textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *cmd,\ CMDTYPE\ type);}
\DoxyCodeLine{00225\ }
\DoxyCodeLine{00229\ void\ (*getcmdptr(WORD\ code));}
\DoxyCodeLine{00230\ }
\DoxyCodeLine{00234\ CMDTYPE\ getcmdtype(WORD\ code);}
\DoxyCodeLine{00235\ }
\DoxyCodeLine{00239\ \textcolor{keywordtype}{char}\ *getcmdname(WORD\ code);}
\DoxyCodeLine{00240\ }
\DoxyCodeLine{00241\ \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}

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