Skip to content

Commit

Permalink
BL(2) is not a fixed jump when not mixed with BL(1)
Browse files Browse the repository at this point in the history
  • Loading branch information
endrift committed Mar 21, 2013
1 parent 2d77b0b commit a4e5ac0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,7 @@ ARMCore.prototype.compileArm = function(instruction) {
}

op.execMode = this.MODE_ARM;
op.fixedJump = op.fixedJump || false;
return op;
};

Expand Down Expand Up @@ -1455,7 +1456,7 @@ ARMCore.prototype.compileThumb = function(instruction) {
// BL(2)
op = this.thumbCompiler.constructBL2(immediate);
op.writesPC = true;
op.fixedJump = true;
op.fixedJump = false;
break;
}
break;
Expand All @@ -1467,5 +1468,6 @@ ARMCore.prototype.compileThumb = function(instruction) {
}

op.execMode = this.MODE_THUMB;
op.fixedJump = op.fixedJump || false;
return op;
};

0 comments on commit a4e5ac0

Please sign in to comment.