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

Update Machine.java

parent 97872fe6
No related branches found
No related tags found
No related merge requests found
......@@ -276,7 +276,7 @@ public class Machine
int ra = parseReg(toks[1]);
int offs = parseOffset(toks[2]);
if (regs[ra] == 0){
pc = pc + offs;
pc = pc - offs;
}else{
pc = pc + 1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment