summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/pbaction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/pbaction.cpp')
-rw-r--r--src/mame/drivers/pbaction.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mame/drivers/pbaction.cpp b/src/mame/drivers/pbaction.cpp
index 1fa8cc13dc6..f3a4ffcdb5e 100644
--- a/src/mame/drivers/pbaction.cpp
+++ b/src/mame/drivers/pbaction.cpp
@@ -695,14 +695,12 @@ void pbaction_state::init_pbaction2()
{
uint8_t *rom = memregion("maincpu")->base();
- /* first of all, do a simple bitswap */
+ // first of all, do a simple bitswap
for (int i = 0; i < 0xc000; i++)
- {
rom[i] = bitswap<8>(rom[i], 7,6,5,4,1,2,3,0);
- }
- /* install a protection (?) workaround */
- m_maincpu->space(AS_PROGRAM).install_read_handler(0xc000, 0xc000, read8_delegate(FUNC(pbaction_state::pbaction2_prot_kludge_r),this) );
+ // install a protection (?) workaround
+ m_maincpu->space(AS_PROGRAM).install_read_handler(0xc000, 0xc000, read8_delegate(*this, FUNC(pbaction_state::pbaction2_prot_kludge_r)) );
}