cws/cw04.tex
changeset 852 b68252417cf4
parent 836 c8c30949e06f
child 859 2c6fa627df78
equal deleted inserted replaced
851:2918388fe4ab 852:b68252417cf4
    62 
    62 
    63 \begin{center}
    63 \begin{center}
    64 \texttt{java -jar jasmin-2.4/jasmin.jar loops.j}
    64 \texttt{java -jar jasmin-2.4/jasmin.jar loops.j}
    65 \end{center}
    65 \end{center}
    66 
    66 
    67 \noindent in order to translate it into Java Byte Code. The
    67 \noindent in order to translate it into Java Byte Code. If needed, you
    68 resulting class file can be run with
    68 need to give the path to the Jasmin jar-file.  The resulting class
       
    69 file can be run with
    69 
    70 
    70 \begin{center}
    71 \begin{center}
    71 \texttt{java loops}
    72 \texttt{java loops}
    72 \end{center}
    73 \end{center}
    73 
    74 
   145 Figure~\ref{fibs}. You can write your own program for
   146 Figure~\ref{fibs}. You can write your own program for
   146 calculating factorials. Submit your assembler code as
   147 calculating factorials. Submit your assembler code as
   147 a file that can be run, not as PDF-text.
   148 a file that can be run, not as PDF-text.
   148 
   149 
   149 \begin{figure}[t]
   150 \begin{figure}[t]
   150 \lstinputlisting[language=while]{../progs/while-tests/fib.while}
   151 \lstinputlisting[language=while]{../cwtests/cw04/fib.while}
   151 \caption{The Fibonacci program in the WHILE language.\label{fibs}}
   152 \caption{The Fibonacci program in the WHILE language.\label{fibs}}
   152 \end{figure}
   153 \end{figure}
   153 
   154 
   154 \subsection*{Question 2}
   155 \subsection*{Question 2}
   155 
   156