advent-of-code/2019/Scala/intcode/opcode/Jump.scala

9 lines
312 B
Scala
Raw Normal View History

2019-12-09 13:20:04 +01:00
package intcode.opcode
trait Jump extends OpCode
{
/** Checks if the condition for jumping is fulfilled, returns boolean and jump pointer */
def checkConditionAndJump(tape: Array[Long], relative: Long, param1: Long, param2: Long, param3: Long, mode1: Int, mode2: Int, mode3: Int): (Boolean, Int)
}