Update OpCode6.scala
This commit is contained in:
parent
f620d03737
commit
a802558779
|
@ -1,5 +1,12 @@
|
||||||
package intcode.opcode
|
package intcode.opcode
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Jump-If-False
|
||||||
|
* If the first parameter is zero, it sets the instruction pointer to the value from the second parameter.
|
||||||
|
* Otherwise, it does nothing.
|
||||||
|
*
|
||||||
|
* checkConditionAndJump -> returns boolean for condition and int for pointer
|
||||||
|
*/
|
||||||
case object OpCode6 extends Jump
|
case object OpCode6 extends Jump
|
||||||
{
|
{
|
||||||
/** length of an instruction */
|
/** length of an instruction */
|
||||||
|
|
Loading…
Reference in a new issue