Skip to content
Browse files

Yet another micro optimization.

  • Loading branch information...
1 parent 9cfe160 commit bac62afaf53ead8a6983d70ac2fe2673806a45e2 @ubercomp committed Feb 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lm32_cpu.js
View
2 src/lm32_cpu.js
@@ -942,7 +942,7 @@ lm32.lm32Cpu = function (params) {
var v8 = ics.ram.v8;
do {
- if(ics.interrupt && (ics.ie.ie == 1) && ((ps.ip & ps.im) !== 0)) {
+ if((ps.ip & ps.im) && ics.interrupt && ics.ie.ie == 1) {
// here is the correct place to treat exceptions
ics.interrupt = false;
raise_exception(ics, 6);

0 comments on commit bac62af

Please sign in to comment.
Something went wrong with that request. Please try again.