X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=Alu.hs;h=54039084b7ac6cffbea6c369cfaed4e7ab013fb7;hb=eb3177ed5e53fd27bc64a45584ab646545c27e5f;hp=17978204628b47ae06953944a9fbffd49c08205f;hpb=8ebcc3ed9b394000ccd07ffeb541f791444dfbc2;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git diff --git a/Alu.hs b/Alu.hs index 1797820..5403908 100644 --- 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)