mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-12-15 07:39:07 +00:00
Added maven framework support. Started working on NPCs #19
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user