diff options
Diffstat (limited to 'src/mame/drivers/segaorun.cpp')
-rw-r--r-- | src/mame/drivers/segaorun.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/segaorun.cpp b/src/mame/drivers/segaorun.cpp index f6a59e4a640..fcd8de73381 100644 --- a/src/mame/drivers/segaorun.cpp +++ b/src/mame/drivers/segaorun.cpp @@ -2964,13 +2964,13 @@ DRIVER_INIT_MEMBER(segaorun_state,outrunb) uint16_t *word = (uint16_t *)memregion("maincpu")->base(); uint32_t length = memregion("maincpu")->bytes() / 2; for (uint32_t i = 0; i < length; i++) - word[i] = bitswap<16>(word[i], 15,14,11,12,13,10,9,8,6,7,5,4,3,2,1,0); + word[i] = BITSWAP16(word[i], 15,14,11,12,13,10,9,8,6,7,5,4,3,2,1,0); // sub CPU: swap bits 14,15 and 2,3 word = (uint16_t *)memregion("subcpu")->base(); length = memregion("subcpu")->bytes() / 2; for (uint32_t i = 0; i < length; i++) - word[i] = bitswap<16>(word[i], 14,15,13,12,11,10,9,8,7,6,5,4,2,3,1,0); + word[i] = BITSWAP16(word[i], 14,15,13,12,11,10,9,8,7,6,5,4,2,3,1,0); // road gfx // rom a-2.bin: swap bits 6,7 @@ -2979,15 +2979,15 @@ DRIVER_INIT_MEMBER(segaorun_state,outrunb) length = memregion("gfx3")->bytes() / 2; for (uint32_t i = 0; i < length; i++) { - byte[i] = bitswap<8>(byte[i], 6,7,5,4,3,2,1,0); - byte[i+length] = bitswap<8>(byte[i+length], 7,5,6,4,3,2,1,0); + byte[i] = BITSWAP8(byte[i], 6,7,5,4,3,2,1,0); + byte[i+length] = BITSWAP8(byte[i+length], 7,5,6,4,3,2,1,0); } // Z80 code: swap bits 5,6 byte = memregion("soundcpu")->base(); length = memregion("soundcpu")->bytes(); for (uint32_t i = 0; i < length; i++) - byte[i] = bitswap<8>(byte[i], 7,5,6,4,3,2,1,0); + byte[i] = BITSWAP8(byte[i], 7,5,6,4,3,2,1,0); } DRIVER_INIT_MEMBER(segaorun_state,shangon) |