Permalink
Browse files

CS 241: $1 -> $4 (fixes #19) and re-indented another code segment.

  • Loading branch information...
christhomson committed Mar 30, 2013
1 parent 27bdebd commit 5ecc7197f3473bb6318c5852786880900f7fa423
Showing with 2 additions and 2 deletions.
  1. BIN cs241.pdf
  2. +2 −2 cs241.tex
View
BIN cs241.pdf
Binary file not shown.
View
@@ -3206,7 +3206,7 @@
sub $30, $30, $4
lis $5 ;; term -> factor -> NUM (2) subtree
.word 2
- add $30, $30, $1
+ add $30, $30, $4
lw $5, -4($30)
add $3, $5, $3
jr $31
@@ -3616,7 +3616,7 @@
We first need to be able to generate code for a test. Let's look at this rule: test $\to \text{expr}_1$ LT $\text{expr}_2$. This allows us to write WLPP code like:
\begin{verbatim}
while(a < b) {
- a = a + 1;
+ a = a + 1;
}
\end{verbatim}

0 comments on commit 5ecc719

Please sign in to comment.