advent-of-code/2019/Scala/intcode/opcode/OpCode3.scala
2019-12-09 13:20:04 +01:00

15 lines
376 B
Scala

package intcode.opcode
/** Input */
case object OpCode3 extends Input
{
/** length of an instruction */
override val length: Int = 2
/** Executes instruction for given parameters and modes */
override def input(tape: Array[Long], relative: Long, param1: Long, mode1: Int, input: Long): Unit =
{
writer(tape, relative, param1, mode1, input)
}
}