mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-16 01:35:07 +00:00
NES; don't crash
This commit is contained in:
parent
5ffccc5019
commit
1bf64c4f4f
2 changed files with 1 additions and 4 deletions
|
@ -309,8 +309,6 @@ int DivPlatformNES::init(DivEngine* p, int channels, int sugRate, bool pal) {
|
||||||
}
|
}
|
||||||
|
|
||||||
init_nla_table(500,500);
|
init_nla_table(500,500);
|
||||||
apu.addrSpace=new unsigned char[65536];
|
|
||||||
|
|
||||||
reset();
|
reset();
|
||||||
return 5;
|
return 5;
|
||||||
}
|
}
|
||||||
|
|
|
@ -207,7 +207,7 @@ enum apu_mode { APU_60HZ, APU_48HZ };
|
||||||
break;\
|
break;\
|
||||||
}\
|
}\
|
||||||
{\
|
{\
|
||||||
DMC.buffer = apu.addrSpace[DMC.address];\
|
DMC.buffer = 0;\
|
||||||
}\
|
}\
|
||||||
/* incremento gli hwtick da compiere */\
|
/* incremento gli hwtick da compiere */\
|
||||||
if (hwtick) { hwtick[0] += tick; }\
|
if (hwtick) { hwtick[0] += tick; }\
|
||||||
|
@ -368,7 +368,6 @@ typedef struct _apu {
|
||||||
|
|
||||||
int cpu_cycles;
|
int cpu_cycles;
|
||||||
int cpu_opcode_cycle;
|
int cpu_opcode_cycle;
|
||||||
unsigned char* addrSpace;
|
|
||||||
BYTE odd_cycle;
|
BYTE odd_cycle;
|
||||||
|
|
||||||
/* ------------------------------------------------------- */
|
/* ------------------------------------------------------- */
|
||||||
|
|
Loading…
Reference in a new issue