notaz.gp2x.de
/
fceu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
savestate and other bugfixes
[fceu.git]
/
fce.c
diff --git
a/fce.c
b/fce.c
index
d3b5c63
..
51e6621
100644
(file)
--- a/
fce.c
+++ b/
fce.c
@@
-145,6
+145,8
@@
void asmcpu_unpack(void)
X6502_Rebase_a();
nes_registers[4] = X.S << 24;
nes_registers[4]|= X.IRQlow << 8;
X6502_Rebase_a();
nes_registers[4] = X.S << 24;
nes_registers[4]|= X.IRQlow << 8;
+ if (MapIRQHook)
+ nes_registers[4] |= 1<<16; // MapIRQHook set bit
nes_registers[7] = (uint32)X.count << 16;
// NVUB DIZC
nes_registers[7] = (uint32)X.count << 16;
// NVUB DIZC
@@
-1514,9
+1516,9
@@
void PowerNES(void)
memset(RAM,0x00,0x800);
#endif
ResetMapping();
memset(RAM,0x00,0x800);
#endif
ResetMapping();
- GameInterface(GI_POWER, 0);
PowerSound();
PowerPPU();
PowerSound();
PowerPPU();
+ GameInterface(GI_POWER, 0);
timestampbase=0;
#ifdef ASM_6502
if (geniestage)
timestampbase=0;
#ifdef ASM_6502
if (geniestage)