Delete OpCode5.scala
This commit is contained in:
parent
94297a5463
commit
e6371940cf
|
@ -1,14 +0,0 @@
|
||||||
package day5.opcode
|
|
||||||
|
|
||||||
case object OpCode5 extends Jump
|
|
||||||
{
|
|
||||||
/** length of an instruction */
|
|
||||||
override val length: Int = 3
|
|
||||||
|
|
||||||
/** Executes instruction for given parameters and modes */
|
|
||||||
override def checkConditionAndJump(tape: Array[Int], param1: Int, param2: Int, param3: Int, mode1: Int, mode2: Int, mode3: Int): (Boolean, Int) =
|
|
||||||
{
|
|
||||||
if (accessor(param1, mode1, tape) != 0) (true, accessor(param2, mode2, tape))
|
|
||||||
else (false, 0)
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue