Update the hardware models a bit.
[matthijs/master-project/cλash.git] / Alu.hs
diff --git a/Alu.hs b/Alu.hs
index 17978204628b47ae06953944a9fbffd49c08205f..54039084b7ac6cffbea6c369cfaed4e7ab013fb7 100644 (file)
--- a/Alu.hs
+++ b/Alu.hs
@@ -58,8 +58,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
-alu Low a b = b
+alu High a b = a + b
+alu Low a b = a - b
 
 type ExecState = (RegisterBankState, Word, Word)
 exec :: (RegAddr, Bit, AluOp) -> ExecState -> (ExecState, Word)