Blaster Master + other fixes
[fceu.git] / ops.h
diff --git a/ops.h b/ops.h
index 62b8481..cd595cd 100644 (file)
--- a/ops.h
+++ b/ops.h
@@ -22,7 +22,8 @@ case 0x00:  /* BRK */
             _PC++;
             PUSH(_PC>>8);
             PUSH(_PC);
-            PUSH(_P|U_FLAG|B_FLAG);
+           _P|=B_FLAG;
+            PUSH(_P|U_FLAG);
            _P|=I_FLAG;
             _PC=RdMem(0xFFFE);
             _PC|=RdMem(0xFFFF)<<8;