write

fun write(lineNumber: Int, operation: L1Operation, vararg operands: Int)

Write an L1 instruction to the nybblecode stream. Some opcodes (automatically) write an extension nybble (0xF). Also write any operands. Validate that the right number of operands are provided.

Parameters

lineNumber

The source code line number responsible for generating this instruction.

operation

The L1Operation to write.

operands

The Int operands for the operation.