%% -*- Mode: LATEX -*-

\documentclass[11pt]{rhitcsse}

\input{cs232_defs}
\title{Lab 1 Questions}

\begin{document}

\maketitle

Answer the following questions as completely as possible and hand in
before leaving the lab.

\begin{enumerate}
  \item What is the address of \texttt{main} in \texttt{p1.asm}?
  \vspace*{0.25in}%
  \item What are the values of \$2, \$3, and \$4 at main in \texttt{p1.asm}?
  \vspace*{0.25in}%
  \item What are the values of \$2, \$3, and \$4 at the end of
  \texttt{p1.asm}?  Hint: \$2 is not 43, why?
  \vspace*{0.5in}%
  \item How do you tell \texttt{add} from \texttt{sub}? Be sure to
  explain fully.
  \vspace*{0.75in}%
  \item How many many instructions are needed for \texttt{p4.asm}?
  \vspace*{0.25in}%
  \item How many registers are needed for \texttt{p4.asm}?
  \vspace*{0.25in}%
  \item What is the opcode for \texttt{lw}?  How did you determine it?
  \vspace*{0.5in}%
  \item At what address does the array \texttt{V} start in
  \texttt{main.asm}?  How did you determine the address?  How many
  bytes are occupied by each element of the array?
  \vspace*{0.75in}%
  \item What is the purpose of the \texttt{sll  \$t0, \$t0, 2}
  in \texttt{main.asm}?  What happens when you comment it out?  Be
  sure to explain why this happens?
  \vspace*{0.75in}%
\end{enumerate}

\end{document}

% Local Variables:
% mode:latex
% End:
