Imports in instructions

This commit is contained in:
Imbus 2024-04-16 14:35:11 +02:00
parent fa804681c2
commit 505bc620a4
3 changed files with 4 additions and 15 deletions

View file

@ -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 };
} }
} }

View file

@ -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;

View file

@ -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;