Skip to content
Snippets Groups Projects
Commit 77ba56b0 authored by Guoxin Xuan's avatar Guoxin Xuan
Browse files

Update Machine.java

parent f3657d79
Branches master
No related tags found
No related merge requests found
......@@ -243,7 +243,7 @@ public class Machine
throw new InvalidInstructionException();
}
int rd = parseReg(toks[1]);
int rs = parseReg(toks[2]-1);
int rs = parseReg(toks[2])-1;
int offs = parseOffset(toks[3]);
do_load(rd,rs,offs);
} else if (toks[0].equals(INSTRUCTION_STORE)){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment