Skip to content

Commit

Permalink
CS 241: $1 -> $4 (fixes #19) and re-indented another code segment.
Browse files Browse the repository at this point in the history
  • Loading branch information
christhomson committed Mar 30, 2013
1 parent 27bdebd commit 5ecc719
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified cs241.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions cs241.tex
Expand Up @@ -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
Expand Down Expand Up @@ -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}

Expand Down

0 comments on commit 5ecc719

Please sign in to comment.