This commit is contained in:
Stephen Crane 2016-01-24 15:28:54 +00:00
parent 01def1ba15
commit feb219dd2e
1 changed files with 1 additions and 2 deletions

View File

@ -91,8 +91,7 @@ void r6502::irq() {
void r6502::brk() {
if (!P.bits.I) {
pusha(PC);
P.bits.B = 1;
pusha(PC+1);
php();
P.bits.I = 1;
PC = vector(ibvec);