From 452297356677d6a5035daefd50582b04500119bb Mon Sep 17 00:00:00 2001 From: hap Date: Sat, 11 May 2024 00:48:18 +0200 Subject: [PATCH] rm480z: remove an array overflow (this is dead code, function never gets called, but GCC 14.1 complained) --- src/devices/cpu/cops1/mm5799op.cpp | 2 +- src/mame/rm/rm380z_v.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/devices/cpu/cops1/mm5799op.cpp b/src/devices/cpu/cops1/mm5799op.cpp index 4e293ff3c3f..84f0c6ef766 100644 --- a/src/devices/cpu/cops1/mm5799op.cpp +++ b/src/devices/cpu/cops1/mm5799op.cpp @@ -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; } diff --git a/src/mame/rm/rm380z_v.cpp b/src/mame/rm/rm380z_v.cpp index 2dfa15c0682..152b5138896 100644 --- a/src/mame/rm/rm380z_v.cpp +++ b/src/mame/rm/rm380z_v.cpp @@ -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; } }