From 00dedfabc90465b6183e6fee4287d3d494921aa6 Mon Sep 17 00:00:00 2001 From: 0kmg <9137159+0kmg@users.noreply.github.com> Date: Wed, 23 Mar 2022 10:16:49 -0800 Subject: bus/nes: Simplifications using bit utility functions. (#9444) * bus/nes: Simplifications using bit utility functions. * Corrected UNL-KOF97 board's address decoding. * Cleaned up Gouder board further and added missing mirroring bit. Fixes BG graphics. --- src/devices/bus/nes/act53.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/devices/bus/nes/act53.cpp') diff --git a/src/devices/bus/nes/act53.cpp b/src/devices/bus/nes/act53.cpp index 51e2d75a7e1..2c0dee10afc 100644 --- a/src/devices/bus/nes/act53.cpp +++ b/src/devices/bus/nes/act53.cpp @@ -155,7 +155,7 @@ void nes_action53_device::write_l(offs_t offset, u8 data) LOG_MMC(("action 53 write_l, offset: %04x, data: %02x\n", offset, data)); offset += 0x100; if (offset >= 0x1000) - m_sel = BIT(data, 0) | (BIT(data, 7) << 1); + m_sel = bitswap<2>(data, 7, 0); } -- cgit v1.2.3-70-g09d2