Skip to content
Snippets Groups Projects
Commit ee566f74 authored by Zhuolun Lang's avatar Zhuolun Lang
Browse files

Update Machine.java

parent 2e9729f7
No related branches found
No related tags found
1 merge request!1WIP: Master
...@@ -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 = 33;
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