Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Documentation
Each F18A instruction, ordered by opcode.
readOpcode :: String -> Either ParseError Opcode Source
Tries to read a given string as an opcode from the list of names.
fromOpcode :: Opcode -> F18Word Source
Converts an Opcode to its 18-bit word representation.
isJump :: Opcode -> Bool Source
Returns whether the given opcode is a jump instruction expecting an address.
opcodeTime :: Opcode -> Double Source
Estimates how long a given opcode will take to execute. Normal opcodes take 1.5 nanoseconds where ones that access the memory take 5 nanoseconds.