Skip to content
Snippets Groups Projects
Commit 3cf57fd3 authored by Jingjiahui Lu's avatar Jingjiahui Lu
Browse files

Update Machine.java

parent ab136bee
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,7 @@ public class Machine
private void do_load(int dest, int src, int offs) {
if (regs[src] + offs > MAX_ADDR){
/* no op */
}else if(regs[src] + offs < 0){
}else if(regs[src] - offs < 0){
/* no op */
}else{
regs[dest] = memory[regs[src] + offs];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment