Safe Haskell | Safe-Inferred |
---|
Documentation
Each F18A instruction, ordered by opcode.
readOpcode :: String -> Either ParseError OpcodeSource
Tries to read a given string as an opcode from the list of names.
fromOpcode :: Opcode -> F18WordSource
Converts an Opcode to its 18-bit word representation.
isJump :: Opcode -> BoolSource
Returns whether the given opcode is a jump instruction expecting an address.
opcodeTime :: Opcode -> DoubleSource
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.