X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fmaster-project%2Fc%CE%BBash.git;a=blobdiff_plain;f=Alu.hs;h=7171a6549d4a216f7ffb876eacdc4d8db5e22571;hp=e1aff99e98bbafc444ef29035dcaed1c2817781f;hb=HEAD;hpb=f8eab7bbb02bf1db6db8ff2697db8dd85080582b diff --git a/Alu.hs b/Alu.hs index e1aff99..7171a65 100644 --- a/Alu.hs +++ b/Alu.hs @@ -62,8 +62,8 @@ alu :: AluOp -> Word -> Word -> Word {-# NOINLINE alu #-} --alu High a b = a `hwand` b --alu Low a b = a `hwor` b -alu High a b = a P.+ b -alu Low a b = a P.- b +alu High a b = a + b +alu Low a b = a - b type ExecState = State (RegisterBankState, Word, Word) exec :: (RegAddr, Bit, AluOp) -> ExecState -> (ExecState, Word)