Skip to content
Snippets Groups Projects
Commit 39c69609 authored by Yang Zhou's avatar Yang Zhou
Browse files

Update Machine.java

parent aa1e42b7
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ public class Machine ...@@ -40,7 +40,7 @@ public class Machine
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 = 32;
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