Misc. code pruning and maintenance (nw)

This commit is contained in:
AJR 2020-02-29 09:18:07 -05:00
parent b5890a6022
commit 01a174fc28
3 changed files with 3 additions and 2 deletions

View File

@ -1504,7 +1504,7 @@ void riscii_series_device::execute_inc(u8 reg, bool a)
void riscii_series_device::execute_dec(u8 reg, bool a) void riscii_series_device::execute_dec(u8 reg, bool a)
{ {
u16 addr = get_banked_address(reg); 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) if (a)
acc_w(tmp & 0xff); acc_w(tmp & 0xff);
else else

View File

@ -72,6 +72,8 @@ void ps6_base_state::machine_start()
{ {
m_nvram_ptr = make_unique_clear<u8[]>(0x400); m_nvram_ptr = make_unique_clear<u8[]>(0x400);
subdevice<nvram_device>("nvram")->set_base(&m_nvram_ptr[0], 0x400); subdevice<nvram_device>("nvram")->set_base(&m_nvram_ptr[0], 0x400);
save_pointer(NAME(m_nvram_ptr), 0x400);
} }
u8 polysix_state::ext_r(offs_t offset) u8 polysix_state::ext_r(offs_t offset)

View File

@ -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); 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); 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; program[offset] = data_swapped;
} }
} }