snteh
This commit is contained in:
30
W3/main.tex
30
W3/main.tex
@ -112,7 +112,37 @@ label3:
|
||||
|
||||
\section{}
|
||||
|
||||
\subsection{\texttt{z := x >= y}}
|
||||
|
||||
\begin{lstlisting}
|
||||
sub v, y, x
|
||||
slti z, v, 1
|
||||
\end{lstlisting}
|
||||
|
||||
\subsection{\texttt{w := !z}}
|
||||
|
||||
\begin{lstlisting}
|
||||
slt w, R0, z
|
||||
\end{lstlisting}
|
||||
|
||||
\subsection{\texttt{z := x >= y, w := !z}}
|
||||
|
||||
\begin{lstlisting}
|
||||
slt w, x, y
|
||||
\end{lstlisting}
|
||||
|
||||
\newpage
|
||||
\section{}
|
||||
\subsubsection{}
|
||||
\begin{lstlisting}
|
||||
bool* y = (bool*)malloc(n);
|
||||
int i = 0;
|
||||
while (i < n) {
|
||||
ne = myop(ne, x[i]);
|
||||
y[i] = ne;
|
||||
i++;
|
||||
}
|
||||
\end{lstlisting}
|
||||
|
||||
\newpage
|
||||
\appendix
|
||||
|
Reference in New Issue
Block a user