X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=ops.h;h=cd595cd9c6a4085a923bf6a057d2e567df6375cb;hp=62b8481cf52397bce1c9b88d6b52871fe19bc2db;hb=8fa5eb3371d902b8d58dba6e6bf62726d7ed8dbc;hpb=68eb34ef8b43287bd29b1d7074536189c56e2e32 diff --git a/ops.h b/ops.h index 62b8481..cd595cd 100644 --- 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;