Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
snowleopard committed Mar 23, 2019
1 parent 1424bed commit edd7dfc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions examples/Processor.hs
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ jumpZero offset =
modifyPC = void $ write PC ((+offset) <$> pc)
in whenS zeroSet modifyPC

-- A block of instructions.
addAndJump :: Program ()
addAndJump = add (Reg R1) (Reg R2) (Reg R3) *> jumpZero 42

-----------------------------------
-- Add with overflow tracking -----
-----------------------------------
Expand Down
2 changes: 1 addition & 1 deletion paper/5-free.tex
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ \subsubsection{Blocks of instructions}
\vspace{1mm}
\begin{minted}[xleftmargin=10pt]{haskell}
addAndJump :: ISA Value
addAndJump :: ISA ()
addAndJump = add R0 1 *> jumpZero 42
\end{minted}
\newpage
Expand Down

0 comments on commit edd7dfc

Please sign in to comment.