Update OpCode5.scala
This commit is contained in:
parent
a802558779
commit
46c5d40c49
|
@ -1,5 +1,12 @@
|
|||
package intcode.opcode
|
||||
|
||||
/**
|
||||
* Jump-If-True
|
||||
* If the first parameter is non-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 OpCode5 extends Jump
|
||||
{
|
||||
/** length of an instruction */
|
||||
|
|
Loading…
Reference in a new issue