mirror of
https://github.com/holub/mame
synced 2025-05-18 03:35:03 +03:00
added assert for index out-of-bounds with saturneu -cart test1f (nw)
This commit is contained in:
parent
b5a05a2945
commit
96fea7d2fa
@ -6046,6 +6046,7 @@ int saturn_state::get_vcounter( void )
|
|||||||
return (vcount & ~1) | (machine().first_screen()->frame_number() & 1);
|
return (vcount & ~1) | (machine().first_screen()->frame_number() & 1);
|
||||||
|
|
||||||
/* docs says << 1, but according to HW tests it's a typo. */
|
/* docs says << 1, but according to HW tests it's a typo. */
|
||||||
|
assert((vcount & 0x1ff) < ARRAY_LENGTH(true_vcount));
|
||||||
return (true_vcount[vcount & 0x1ff][STV_VDP2_VRES]); // Non-interlace
|
return (true_vcount[vcount & 0x1ff][STV_VDP2_VRES]); // Non-interlace
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user