Skip to content

Commit

Permalink
Fix a couple of instructions which should be setting might_adjust_nex…
Browse files Browse the repository at this point in the history
…t_pc.
  • Loading branch information
hulkholden committed Nov 18, 2023
1 parent 10f3d66 commit a8b88b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/recompiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ function generateBLEZL(ctx) {
c.nextPC += 4;
}`);

return generateBranchOpBoilerplate(impl, ctx, false);
return generateBranchOpBoilerplate(impl, ctx, true /* might_adjust_next_pc*/);
}

// Branch Greater Than Zero
Expand Down Expand Up @@ -910,7 +910,7 @@ function generateBGTZL(ctx) {
c.nextPC += 4;
}`);

return generateBranchOpBoilerplate(impl, ctx, false);
return generateBranchOpBoilerplate(impl, ctx, true /* might_adjust_next_pc*/);
}

// Branch Less Than Zero
Expand Down

0 comments on commit a8b88b7

Please sign in to comment.