public final class InstructionJumpLessThanZero
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
label |
static java.lang.String |
NAME |
| Constructor and Description |
|---|
InstructionJumpLessThanZero(java.lang.String label) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isConditionTrue(MachineState state) |
void |
step(Machine machine)
Update the instruction, when it is done it must increment the machine's
program counter itself.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitonBeforeWriteComplete, onWriteCompletedpublic static final java.lang.String NAME
protected final java.lang.String label
public InstructionJumpLessThanZero(java.lang.String label)
protected boolean isConditionTrue(MachineState state)
public java.lang.String toString()
toString in class java.lang.Objectpublic final void step(Machine machine)
Instructionstep in interface Instructionmachine - the machine to run the instruction on.