mirror of
https://github.com/holub/mame
synced 2025-05-12 00:58:53 +03:00
added assert for index out-of-bounds access with tecnbras (nw)
This commit is contained in:
parent
4a45f25894
commit
f9a8a749f4
@ -75,6 +75,7 @@ WRITE8_MEMBER(tecnbras_state::print_column_w)
|
||||
{
|
||||
int x = m_xcoord + offset;
|
||||
for (int i=0; i<7; i++){
|
||||
assert((x/5) < ARRAY_LENGTH(m_digit));
|
||||
m_digit[x/5][i] &= ~(1 << (x%5));
|
||||
m_digit[x/5][i] |= BIT(data, 7-i) ? (1 << (x%5)) : 0;
|
||||
output_set_indexed_value("dmd_", (x/5)*7 + i, 0x1F & m_digit[x/5][i]);
|
||||
|
Loading…
Reference in New Issue
Block a user