Skip to content
Snippets Groups Projects

WIP: Master

Open Zhuolun Lang requested to merge zlang/SWEN90006-A1-2018:master into master
Files
7
@@ -39,7 +39,7 @@ public class Machine
/** jz ra offs =~ if (ra == 0) pc = pc + offs else pc = pc + 1 */
public static final String INSTRUCTION_JZ = "jz";
public static final int NUM_REGS = 32;
public static final int NUM_REGS = 33;
public static final int MAX_REG = (NUM_REGS - 1);
public static final int MEMORY_SIZE = 65536; /* 4 x as much memory as a 64 */
public static final int MAX_ADDR = MEMORY_SIZE-1;
Loading