mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-20 11:06:46 +00:00
change types to map interface, remove unused import
This commit is contained in:
parent
4958c3d9a0
commit
7b3839f046
@ -4,7 +4,7 @@ import net.simon987.server.assembly.instruction.*;
|
|||||||
import net.simon987.server.logging.LogManager;
|
import net.simon987.server.logging.LogManager;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Set;
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default instruction set for the CPU
|
* Default instruction set for the CPU
|
||||||
@ -14,12 +14,12 @@ public class DefaultInstructionSet implements InstructionSet {
|
|||||||
/**
|
/**
|
||||||
* Map of instructions, stored in opcode : Instruction format
|
* Map of instructions, stored in opcode : Instruction format
|
||||||
*/
|
*/
|
||||||
private HashMap<Integer, Instruction> instructionMap = new HashMap<>(32);
|
private Map<Integer, Instruction> instructionMap = new HashMap<>(32);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Map of aliasses, stored in mnemonic : Instruction format
|
* Map of aliasses, stored in mnemonic : Instruction format
|
||||||
*/
|
*/
|
||||||
private HashMap<String, Instruction> aliasesMap = new HashMap<>(16);
|
private Map<String, Instruction> aliasesMap = new HashMap<>(16);
|
||||||
|
|
||||||
private Instruction defaultInstruction;
|
private Instruction defaultInstruction;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user