rm480z: remove an array overflow (this is dead code, function never gets called, but GCC 14.1 complained)

This commit is contained in:
hap 2024-05-11 00:48:18 +02:00
parent 2f39b6a382
commit 4522973566
2 changed files with 4 additions and 4 deletions

View file

@ -228,7 +228,7 @@ void mm5799_device::op_ret()
void mm5799_device::op_rets()
{
// RET: return from subroutine, skip next
// RETS: return from subroutine, skip next
op_ret();
m_skip = true;
}

View file

@ -446,9 +446,10 @@ void rm480z_state::update_screen(bitmap_ind16 &bitmap) const
if (ra < 10)
{
const uint8_t chr = m_vram.get_char(y, x);
gfx = m_chargen[(chr << 4) | ra ];
gfx = m_chargen[(chr << 4) | ra];
}
/* Display a scanline of a character */
// Display a scanline of a character
*p++ = BIT(gfx, 7);
*p++ = BIT(gfx, 6);
*p++ = BIT(gfx, 5);
@ -459,6 +460,5 @@ void rm480z_state::update_screen(bitmap_ind16 &bitmap) const
*p++ = BIT(gfx, 0);
}
}
ma += 64;
}
}