Added maven framework support. Started working on NPCs #19

This commit is contained in:
simon
2017-11-21 20:22:10 -05:00
parent 12db25e726
commit 6be2a496c6
158 changed files with 1002 additions and 333 deletions

View File

@@ -23,7 +23,8 @@ public class CPUTest {
cpu.reset();
cpu.getMemory().clear();
Random random = new Random();
random.nextBytes(cpu.getMemory().getBytes());
byte[] randomBytes = new byte[cpu.getMemory().getWords().length * 2];
random.nextBytes(randomBytes);
for (int machineCode = Character.MIN_VALUE; machineCode < Character.MAX_VALUE; machineCode++) {
Instruction instruction = cpu.getInstructionSet().get(machineCode & 0x03F); // 0000 0000 00XX XXXX