prevent possibility of out of bounds array access, this fixes a crash in deco32.c

This commit is contained in:
Michaël Banaan Ananas 2012-01-14 20:33:52 +00:00
parent bc3996fde6
commit 4f8856e033

View File

@ -27,7 +27,7 @@
#define P cpustate->p
#define S cpustate->sp.b.l
#define TRANSLATED(addr) ((cpustate->mmr[(addr)>>13] << 13) | ((addr)&0x1fff))
#define TRANSLATED(addr) ((cpustate->mmr[(addr)>>13&7] << 13) | ((addr)&0x1fff))
#define H6280_CYCLES(cyc) \
{ \
cpustate->ICount -= ((cyc) * cpustate->clocks_per_cycle); \