From 01a174fc289609a130724983c7e7766576b61aec Mon Sep 17 00:00:00 2001 From: AJR Date: Sat, 29 Feb 2020 09:18:07 -0500 Subject: Misc. code pruning and maintenance (nw) --- src/devices/cpu/rii/riscii.cpp | 2 +- src/mame/drivers/polysix.cpp | 2 ++ src/mame/drivers/synthex.cpp | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/devices/cpu/rii/riscii.cpp b/src/devices/cpu/rii/riscii.cpp index f8d1b2a914b..7e05eb18055 100644 --- a/src/devices/cpu/rii/riscii.cpp +++ b/src/devices/cpu/rii/riscii.cpp @@ -1504,7 +1504,7 @@ void riscii_series_device::execute_inc(u8 reg, bool a) void riscii_series_device::execute_dec(u8 reg, bool a) { u16 addr = get_banked_address(reg); - u16 tmp = (u16(m_regs->read_byte(addr)) + 0xff) & 0x1ff; + u16 tmp = u16(m_regs->read_byte(addr)) + 0xff; if (a) acc_w(tmp & 0xff); else diff --git a/src/mame/drivers/polysix.cpp b/src/mame/drivers/polysix.cpp index 0515a6cfa19..a0aff74997c 100644 --- a/src/mame/drivers/polysix.cpp +++ b/src/mame/drivers/polysix.cpp @@ -72,6 +72,8 @@ void ps6_base_state::machine_start() { m_nvram_ptr = make_unique_clear(0x400); subdevice("nvram")->set_base(&m_nvram_ptr[0], 0x400); + + save_pointer(NAME(m_nvram_ptr), 0x400); } u8 polysix_state::ext_r(offs_t offset) diff --git a/src/mame/drivers/synthex.cpp b/src/mame/drivers/synthex.cpp index ede8ebe6904..89cec40d355 100644 --- a/src/mame/drivers/synthex.cpp +++ b/src/mame/drivers/synthex.cpp @@ -216,7 +216,6 @@ void synthex_state::driver_start() { u16 addr_swapped = bitswap<14>(offset, 13, 12, 11, 7, 3, 1, 0, 2, 4, 5, 6, 8, 9, 10); u8 data_swapped = bitswap<8>(romdata[addr_swapped], 5, 1, 4, 3, 2, 0, 6, 7); - osd_printf_verbose("program[$%04X] = $%02X <- ROM[$%04X] = $%02X\n", offset + 0xd000, data_swapped, addr_swapped, romdata[addr_swapped]); program[offset] = data_swapped; } } -- cgit v1.2.3