root/doc_inner/doxygen/latex/disassemble_8c.tex

/* [<][>][^][v][top][bottom][index][help] */
\doxysection{src/disassemble.c File Reference}
\label{disassemble_8c}\index{src/disassemble.c@{src/disassemble.c}}
{\ttfamily \#include \char`\"{}disassemble.\+h\char`\"{}}\newline
Include dependency graph for disassemble.\+c\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{disassemble_8c__incl}
\end{center}
\end{figure}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ WORD} \textbf{ fgetword} (FILE $\ast$stream)
\begin{DoxyCompactList}\small\item\em ファイルストリームから1ワードを取得する \end{DoxyCompactList}\item 
void \textbf{ fungetword} (FILE $\ast$stream)
\begin{DoxyCompactList}\small\item\em ファイルストリームを1ワード戻す \end{DoxyCompactList}\item 
\textbf{ WORD} \textbf{ zero\+\_\+data\+\_\+cnt} (FILE $\ast$stream)
\begin{DoxyCompactList}\small\item\em ファイルストリームから、値が0の連続する\+WORD数を返す \end{DoxyCompactList}\item 
void \textbf{ disassemble\+\_\+puts\+\_\+code} (int ascol, \textbf{ WORD} pradr, int wordc, \textbf{ WORD} wordv[$\,$])
\begin{DoxyCompactList}\small\item\em 機械コードをコメントとして標準出力へ出力する \end{DoxyCompactList}\item 
void \textbf{ disassemble\+\_\+cmd\+\_\+adr\+\_\+x} (\textbf{ CMDTYPE} cmdtype, const char $\ast$cmdname, \textbf{ WORD} word, \textbf{ WORD} adr, \textbf{ WORD} pradr)
\begin{DoxyCompactList}\small\item\em 種類が\+R\+\_\+\+ADRまたは\+R\+\_\+\+ADR\+\_\+\+Xのコマンドを逆アセンブルし、標準出力へ出力する \end{DoxyCompactList}\item 
void \textbf{ disassemble\+\_\+cmd\+\_\+r} (\textbf{ CMDTYPE} cmdtype, const char $\ast$cmdname, \textbf{ WORD} word, \textbf{ WORD} pradr)
\begin{DoxyCompactList}\small\item\em 種類が\+R1\+\_\+\+R2または\+R\+\_\+のコマンドを逆アセンブルし、標準出力へ出力する \end{DoxyCompactList}\item 
void \textbf{ disassemble\+\_\+dc} (\textbf{ WORD} word, \textbf{ WORD} pradr)
\begin{DoxyCompactList}\small\item\em DCコマンドを逆アセンブルし、標準出力へ出力する \end{DoxyCompactList}\item 
void \textbf{ disassemble\+\_\+ds} (\textbf{ WORD} wcnt, \textbf{ WORD} pradr)
\item 
bool \textbf{ disassemble\+\_\+file} (const char $\ast$file)
\begin{DoxyCompactList}\small\item\em CASL IIのオブジェクトファイルを逆アセンブルし、標準出力へ出力する \end{DoxyCompactList}\item 
void \textbf{ disassemble\+\_\+memory} (\textbf{ WORD} start, \textbf{ WORD} end)
\begin{DoxyCompactList}\small\item\em COMET IIのメモリーを逆アセンブルし、標準出力へ出力する \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
int \textbf{ codecol} = 32
\begin{DoxyCompactList}\small\item\em 機械コードの出力列 \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Function Documentation}
\mbox{\label{disassemble_8c_a9146758d554bd05224a75682b675c43a}} 
\index{disassemble.c@{disassemble.c}!disassemble\_cmd\_adr\_x@{disassemble\_cmd\_adr\_x}}
\index{disassemble\_cmd\_adr\_x@{disassemble\_cmd\_adr\_x}!disassemble.c@{disassemble.c}}
\doxysubsubsection{disassemble\_cmd\_adr\_x()}
{\footnotesize\ttfamily void disassemble\+\_\+cmd\+\_\+adr\+\_\+x (\begin{DoxyParamCaption}\item[{\textbf{ CMDTYPE}}]{cmdtype,  }\item[{const char $\ast$}]{cmdname,  }\item[{\textbf{ WORD}}]{word,  }\item[{\textbf{ WORD}}]{adr,  }\item[{\textbf{ WORD}}]{pradr }\end{DoxyParamCaption})}



種類が\+R\+\_\+\+ADRまたは\+R\+\_\+\+ADR\+\_\+\+Xのコマンドを逆アセンブルし、標準出力へ出力する 

\begin{DoxyReturn}{Returns}
なし
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em cmdtype} & コマンドの種類 \\
\hline
{\em $\ast$cmdname} & コマンドの名前 \\
\hline
{\em word} & ワード値 \\
\hline
{\em adr} & アドレス値 \\
\hline
{\em pradr} & 次に実行すべき命令語の先頭アドレス \\
\hline
\end{DoxyParams}


Definition at line 93 of file disassemble.\+c.

Here is the call graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{disassemble_8c_a9146758d554bd05224a75682b675c43a_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{disassemble_8c_a9146758d554bd05224a75682b675c43a_icgraph}
\end{center}
\end{figure}
\mbox{\label{disassemble_8c_a3e073aa40201d443b204e8f8eef8f4f0}} 
\index{disassemble.c@{disassemble.c}!disassemble\_cmd\_r@{disassemble\_cmd\_r}}
\index{disassemble\_cmd\_r@{disassemble\_cmd\_r}!disassemble.c@{disassemble.c}}
\doxysubsubsection{disassemble\_cmd\_r()}
{\footnotesize\ttfamily void disassemble\+\_\+cmd\+\_\+r (\begin{DoxyParamCaption}\item[{\textbf{ CMDTYPE}}]{cmdtype,  }\item[{const char $\ast$}]{cmdname,  }\item[{\textbf{ WORD}}]{word,  }\item[{\textbf{ WORD}}]{pradr }\end{DoxyParamCaption})}



種類が\+R1\+\_\+\+R2または\+R\+\_\+のコマンドを逆アセンブルし、標準出力へ出力する 

\begin{DoxyReturn}{Returns}
なし
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em cmdtype} & コマンドの種類 \\
\hline
{\em $\ast$cmdname} & コマンドの名前 \\
\hline
{\em word} & ワード値 \\
\hline
{\em pradr} & 次に実行すべき命令語の先頭アドレス \\
\hline
\end{DoxyParams}


Definition at line 112 of file disassemble.\+c.

Here is the call graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{disassemble_8c_a3e073aa40201d443b204e8f8eef8f4f0_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{disassemble_8c_a3e073aa40201d443b204e8f8eef8f4f0_icgraph}
\end{center}
\end{figure}
\mbox{\label{disassemble_8c_a1a16e636a2ad1994574b1584b2d8c400}} 
\index{disassemble.c@{disassemble.c}!disassemble\_dc@{disassemble\_dc}}
\index{disassemble\_dc@{disassemble\_dc}!disassemble.c@{disassemble.c}}
\doxysubsubsection{disassemble\_dc()}
{\footnotesize\ttfamily void disassemble\+\_\+dc (\begin{DoxyParamCaption}\item[{\textbf{ WORD}}]{word,  }\item[{\textbf{ WORD}}]{pradr }\end{DoxyParamCaption})}



DCコマンドを逆アセンブルし、標準出力へ出力する 

\begin{DoxyReturn}{Returns}
なし
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em word} & ワード値 \\
\hline
{\em pradr} & 次に実行すべき命令語の先頭アドレス \\
\hline
\end{DoxyParams}


Definition at line 134 of file disassemble.\+c.

Here is the call graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{disassemble_8c_a1a16e636a2ad1994574b1584b2d8c400_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{disassemble_8c_a1a16e636a2ad1994574b1584b2d8c400_icgraph}
\end{center}
\end{figure}
\mbox{\label{disassemble_8c_af6cca737f8ba264bc811d4a9d539b9be}} 
\index{disassemble.c@{disassemble.c}!disassemble\_ds@{disassemble\_ds}}
\index{disassemble\_ds@{disassemble\_ds}!disassemble.c@{disassemble.c}}
\doxysubsubsection{disassemble\_ds()}
{\footnotesize\ttfamily void disassemble\+\_\+ds (\begin{DoxyParamCaption}\item[{\textbf{ WORD}}]{wcnt,  }\item[{\textbf{ WORD}}]{pradr }\end{DoxyParamCaption})}



Definition at line 144 of file disassemble.\+c.

Here is the call graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=292pt]{disassemble_8c_af6cca737f8ba264bc811d4a9d539b9be_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=332pt]{disassemble_8c_af6cca737f8ba264bc811d4a9d539b9be_icgraph}
\end{center}
\end{figure}
\mbox{\label{disassemble_8c_a0dcdc3e868f6583529b7718ae1f91206}} 
\index{disassemble.c@{disassemble.c}!disassemble\_file@{disassemble\_file}}
\index{disassemble\_file@{disassemble\_file}!disassemble.c@{disassemble.c}}
\doxysubsubsection{disassemble\_file()}
{\footnotesize\ttfamily bool disassemble\+\_\+file (\begin{DoxyParamCaption}\item[{const char $\ast$}]{file }\end{DoxyParamCaption})}



CASL IIのオブジェクトファイルを逆アセンブルし、標準出力へ出力する 

\begin{DoxyReturn}{Returns}
正常終了時は0、異常終了時は0以外
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em $\ast$file} & オブジェクトファイルのファイル名 \\
\hline
\end{DoxyParams}


Definition at line 183 of file disassemble.\+c.

Here is the call graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{disassemble_8c_a0dcdc3e868f6583529b7718ae1f91206_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=208pt]{disassemble_8c_a0dcdc3e868f6583529b7718ae1f91206_icgraph}
\end{center}
\end{figure}
\mbox{\label{disassemble_8c_a11850bb46bb5a4ba0fd8182bc6a304b8}} 
\index{disassemble.c@{disassemble.c}!disassemble\_memory@{disassemble\_memory}}
\index{disassemble\_memory@{disassemble\_memory}!disassemble.c@{disassemble.c}}
\doxysubsubsection{disassemble\_memory()}
{\footnotesize\ttfamily void disassemble\+\_\+memory (\begin{DoxyParamCaption}\item[{\textbf{ WORD}}]{start,  }\item[{\textbf{ WORD}}]{end }\end{DoxyParamCaption})}



COMET IIのメモリーを逆アセンブルし、標準出力へ出力する 

\begin{DoxyReturn}{Returns}
なし
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em $\ast$start} & 逆アセンブルの開始位置 \\
\hline
{\em $\ast$end} & 逆アセンブルの終了位置 \\
\hline
\end{DoxyParams}


Definition at line 238 of file disassemble.\+c.

Here is the call graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{disassemble_8c_a11850bb46bb5a4ba0fd8182bc6a304b8_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{disassemble_8c_a11850bb46bb5a4ba0fd8182bc6a304b8_icgraph}
\end{center}
\end{figure}
\mbox{\label{disassemble_8c_a00a9c06957b5355010956003e80909f1}} 
\index{disassemble.c@{disassemble.c}!disassemble\_puts\_code@{disassemble\_puts\_code}}
\index{disassemble\_puts\_code@{disassemble\_puts\_code}!disassemble.c@{disassemble.c}}
\doxysubsubsection{disassemble\_puts\_code()}
{\footnotesize\ttfamily void disassemble\+\_\+puts\+\_\+code (\begin{DoxyParamCaption}\item[{int}]{ascol,  }\item[{\textbf{ WORD}}]{pradr,  }\item[{int}]{wordc,  }\item[{\textbf{ WORD}}]{wordv[$\,$] }\end{DoxyParamCaption})}



機械コードをコメントとして標準出力へ出力する 

\begin{DoxyReturn}{Returns}
なし
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em ascol} & アセンブラの列位置 \\
\hline
{\em pradr} & 次に実行すべき命令語の先頭アドレス \\
\hline
{\em wordc} & ワード値の数 \\
\hline
{\em wordv} & ワード値の配列 \\
\hline
\end{DoxyParams}


Definition at line 82 of file disassemble.\+c.

Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{disassemble_8c_a00a9c06957b5355010956003e80909f1_icgraph}
\end{center}
\end{figure}
\mbox{\label{disassemble_8c_aff6aaa5b3ccfa5031eb7d8a2f53625f1}} 
\index{disassemble.c@{disassemble.c}!fgetword@{fgetword}}
\index{fgetword@{fgetword}!disassemble.c@{disassemble.c}}
\doxysubsubsection{fgetword()}
{\footnotesize\ttfamily \textbf{ WORD} fgetword (\begin{DoxyParamCaption}\item[{FILE $\ast$}]{stream }\end{DoxyParamCaption})}



ファイルストリームから1ワードを取得する 

\begin{DoxyReturn}{Returns}
取得した1ワード
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em stream} & ファイルストリーム \\
\hline
\end{DoxyParams}


Definition at line 156 of file disassemble.\+c.

Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{disassemble_8c_aff6aaa5b3ccfa5031eb7d8a2f53625f1_icgraph}
\end{center}
\end{figure}
\mbox{\label{disassemble_8c_aa9cc8e096051898115df27733790b5b3}} 
\index{disassemble.c@{disassemble.c}!fungetword@{fungetword}}
\index{fungetword@{fungetword}!disassemble.c@{disassemble.c}}
\doxysubsubsection{fungetword()}
{\footnotesize\ttfamily void fungetword (\begin{DoxyParamCaption}\item[{FILE $\ast$}]{stream }\end{DoxyParamCaption})}



ファイルストリームを1ワード戻す 

\begin{DoxyReturn}{Returns}
なし
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em stream} & ファイルストリーム \\
\hline
\end{DoxyParams}


Definition at line 163 of file disassemble.\+c.

Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{disassemble_8c_aa9cc8e096051898115df27733790b5b3_icgraph}
\end{center}
\end{figure}
\mbox{\label{disassemble_8c_ad0fae2bdebe20f17dda677aa0581536b}} 
\index{disassemble.c@{disassemble.c}!zero\_data\_cnt@{zero\_data\_cnt}}
\index{zero\_data\_cnt@{zero\_data\_cnt}!disassemble.c@{disassemble.c}}
\doxysubsubsection{zero\_data\_cnt()}
{\footnotesize\ttfamily \textbf{ WORD} zero\+\_\+data\+\_\+cnt (\begin{DoxyParamCaption}\item[{FILE $\ast$}]{stream }\end{DoxyParamCaption})}



ファイルストリームから、値が0の連続する\+WORD数を返す 

\begin{DoxyReturn}{Returns}
値が0の連続する\+WORD数
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em stream} & ファイルストリーム \\
\hline
\end{DoxyParams}


Definition at line 168 of file disassemble.\+c.

Here is the call graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=226pt]{disassemble_8c_ad0fae2bdebe20f17dda677aa0581536b_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=324pt]{disassemble_8c_ad0fae2bdebe20f17dda677aa0581536b_icgraph}
\end{center}
\end{figure}


\doxysubsection{Variable Documentation}
\mbox{\label{disassemble_8c_a46cd72f6a2c6fcf983a6b97289bb407c}} 
\index{disassemble.c@{disassemble.c}!codecol@{codecol}}
\index{codecol@{codecol}!disassemble.c@{disassemble.c}}
\doxysubsubsection{codecol}
{\footnotesize\ttfamily int codecol = 32}



機械コードの出力列 



Definition at line 6 of file disassemble.\+c.


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