added assert for index out-of-bounds with saturneu -cart test1f (nw)

This commit is contained in:
Oliver Stöneberg 2014-07-28 07:28:22 +00:00
parent b5a05a2945
commit 96fea7d2fa

View File

@ -6046,6 +6046,7 @@ int saturn_state::get_vcounter( void )
return (vcount & ~1) | (machine().first_screen()->frame_number() & 1);
/* 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
}