updated
authorChristian Urban <christian dot urban at kcl dot ac dot uk>
Tue, 26 Nov 2013 19:54:16 +0000
changeset 205 0b59588d28d2
parent 204 fec99c437965
child 206 85b961f1eee9
updated
coursework/cw03.pdf
coursework/cw03.tex
Binary file coursework/cw03.pdf has changed
--- a/coursework/cw03.tex	Sat Nov 23 13:45:55 2013 +0000
+++ b/coursework/cw03.tex	Tue Nov 26 19:54:16 2013 +0000
@@ -87,12 +87,29 @@
 \end{center}
 
 \noindent
+If you generated a correct assembler file for Jasmin, for example
+\texttt{loops.j}, you can use
 
+\begin{center}
+\texttt{java -jar jasmin-2.4/jasmin.jar loops.j}
+\end{center}
+
+\noindent
+in order to translate it to Java Byte Code. The resulting class file can be
+run with
+
+\begin{center}
+\texttt{java loops}
+\end{center}
+
+\noindent
+where you potentially need to give the path to the class file.\bigskip
 
 \noindent
 You need to submit a document containing the answers for the two questions 
 below. You can do the implementation in any programming language you like, but you need 
-to submit the source code with which you answered the questions. However, the coursework 
+to submit the source code with which you answered the questions. Otherwise
+the submission will not be counted.  However, the coursework 
 will \emph{only} be judged according to the answers. You can submit your answers
 in a txt-file or as pdf.\bigskip
 
@@ -150,6 +167,23 @@
 \end{minipage}
 \end{center}
 
+\noindent
+In this question you are supposed to give the assembler instructions for the
+for the program
+
+\begin{center}
+\begin{minipage}{6cm}
+\begin{lstlisting}[language=While,basicstyle=\ttfamily, numbers=none]
+for i := 1 upto 10000 do {
+  for i := 1 upto 10000 do {
+  skip
+  }
+} 
+\end{lstlisting}
+\end{minipage}
+\end{center}
+
+
 
 \subsection*{Further Information}