Skip to content
Snippets Groups Projects
Commit a9593c39 authored by Linyuan Zhao's avatar Linyuan Zhao
Browse files

Update Machine.java

parent f213fb23
Branches
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ public class Machine ...@@ -39,7 +39,7 @@ public class Machine
/** jz ra offs =~ if (ra == 0) pc = pc + offs else pc = pc + 1 */ /** jz ra offs =~ if (ra == 0) pc = pc + offs else pc = pc + 1 */
public static final String INSTRUCTION_JZ = "jz"; public static final String INSTRUCTION_JZ = "jz";
public static final int NUM_REGS = 32; public static final int NUM_REGS = 30;
public static final int MAX_REG = (NUM_REGS - 1); 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 MEMORY_SIZE = 65536; /* 4 x as much memory as a 64 */
public static final int MAX_ADDR = MEMORY_SIZE-1; public static final int MAX_ADDR = MEMORY_SIZE-1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment