mirror of
https://github.com/holub/mame
synced 2025-06-03 11:26:56 +03:00
prevent possibility of out of bounds array access, this fixes a crash in deco32.c
This commit is contained in:
parent
bc3996fde6
commit
4f8856e033
@ -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); \
|
||||
|
Loading…
Reference in New Issue
Block a user