Companion

object Companion

Properties

Link copied to clipboard

The number of distinct instructions supported by the coding scheme. It must be a power of two.

Functions

Link copied to clipboard
fun decode(instruction: Int): ParsingOperation

Decode the specified instruction into a ParsingOperation.

Link copied to clipboard
fun operand(instruction: Int): Int

Answer the operand given a coded instruction (that represents the same operation as the receiver).