Imports in instructions
This commit is contained in:
parent
fa804681c2
commit
505bc620a4
3 changed files with 4 additions and 15 deletions
|
@ -1,10 +1,6 @@
|
||||||
package hatelace.instructions;
|
package hatelace.instructions;
|
||||||
|
|
||||||
import hatelace.Instruction;
|
import hatelace.*;
|
||||||
import hatelace.Memory;
|
|
||||||
import hatelace.ProgramCounter;
|
|
||||||
import hatelace.Word;
|
|
||||||
import hatelace.Address;
|
|
||||||
|
|
||||||
public class Add extends Instruction {
|
public class Add extends Instruction {
|
||||||
private Address op1;
|
private Address op1;
|
||||||
|
@ -27,6 +23,6 @@ public class Add extends Instruction {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Object[] operands() {
|
protected Object[] operands() {
|
||||||
return new Object[] {this.op1, this.op2, this.dest};
|
return new Object[] { this.op1, this.op2, this.dest };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
package hatelace.instructions;
|
package hatelace.instructions;
|
||||||
|
|
||||||
import hatelace.Address;
|
import hatelace.*;
|
||||||
import hatelace.Word;
|
|
||||||
import hatelace.Memory;
|
|
||||||
import hatelace.ProgramCounter;
|
|
||||||
import hatelace.Instruction;
|
|
||||||
|
|
||||||
public class Copy extends Instruction {
|
public class Copy extends Instruction {
|
||||||
private Word word;
|
private Word word;
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
package hatelace.instructions;
|
package hatelace.instructions;
|
||||||
|
|
||||||
import hatelace.Address;
|
import hatelace.*;
|
||||||
import hatelace.Instruction;
|
|
||||||
import hatelace.Memory;
|
|
||||||
import hatelace.ProgramCounter;
|
|
||||||
|
|
||||||
public class Mul extends Instruction {
|
public class Mul extends Instruction {
|
||||||
private Address op1;
|
private Address op1;
|
||||||
|
|
Loading…
Reference in a new issue