all repos — mgba @ e0ae2e89063ec7139b89358cf476d4d79fdbcc8e

mGBA Game Boy Advance Emulator

DS: Backport CPSR I fix
Jeffrey Pfau jeffrey@endrift.com
Mon, 02 Jan 2017 18:22:02 -0800
commit

e0ae2e89063ec7139b89358cf476d4d79fdbcc8e

parent

87caf0a6acc558dcfbf90b7981e38d0a6a5128da

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/ds/ds.csrc/ds/ds.c

@@ -195,7 +195,7 @@

static void DSProcessEvents(struct ARMCore* cpu) { struct DS* ds = (struct DS*) cpu->master; - if (ds->springIRQ7) { + if (ds->springIRQ7 && !cpu->cpsr.i) { ARMRaiseIRQ(cpu); ds->springIRQ7 = 0; }