Fix topBit always returning False
This commit is contained in:
parent
112a49a7b7
commit
4f5817c032
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ type SmallValue = Word16
|
||||||
type Opcode = Word4
|
type Opcode = Word4
|
||||||
|
|
||||||
topBit :: (FiniteBits b) => b -> Bool
|
topBit :: (FiniteBits b) => b -> Bool
|
||||||
topBit b = testBit b $ finiteBitSize b
|
topBit b = testBit b $ finiteBitSize b - 1
|
||||||
|
|
||||||
bytesToWord :: (Word8, Word8, Word8) -> MimaWord
|
bytesToWord :: (Word8, Word8, Word8) -> MimaWord
|
||||||
bytesToWord (w1, w2, w3) =
|
bytesToWord (w1, w2, w3) =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue