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;
import hatelace.Instruction;
import hatelace.Memory;
import hatelace.ProgramCounter;
import hatelace.Word;
import hatelace.Address;
import hatelace.*;
public class Add extends Instruction {
private Address op1;
@ -27,6 +23,6 @@ public class Add extends Instruction {
}
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;
import hatelace.Address;
import hatelace.Word;
import hatelace.Memory;
import hatelace.ProgramCounter;
import hatelace.Instruction;
import hatelace.*;
public class Copy extends Instruction {
private Word word;

View file

@ -1,9 +1,6 @@
package hatelace.instructions;
import hatelace.Address;
import hatelace.Instruction;
import hatelace.Memory;
import hatelace.ProgramCounter;
import hatelace.*;
public class Mul extends Instruction {
private Address op1;