Companion

object Companion

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).

Properties

Link copied to clipboard
const val distinctInstructions: Int

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