diff options
author | 2016-05-25 08:19:21 +0200 | |
---|---|---|
committer | 2016-05-25 08:19:21 +0200 | |
commit | 68785dccfee3208163c8169abc5c6d01becf36d4 (patch) | |
tree | d6967331fd0e938981777aa32b5f246e04fb701b /src/devices/bus/neogeo/slot.cpp | |
parent | c1230f8b9bf4373d396ecb970c966ec2ce6dfc15 (diff) |
Cleanups and version bumpmame0174
Diffstat (limited to 'src/devices/bus/neogeo/slot.cpp')
-rw-r--r-- | src/devices/bus/neogeo/slot.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/devices/bus/neogeo/slot.cpp b/src/devices/bus/neogeo/slot.cpp index b7ceb2d12cf..af2f151ee8d 100644 --- a/src/devices/bus/neogeo/slot.cpp +++ b/src/devices/bus/neogeo/slot.cpp @@ -3,7 +3,7 @@ /*********************************************************************************************************** SNK Neo Geo cartslot emulation - + ***********************************************************************************************************/ #include "slot.h" @@ -44,15 +44,15 @@ UINT32 device_neogeo_cart_interface::get_region_mask(UINT8* rgn, UINT32 rgn_size // get mask based on the length rounded up to the nearest power of 2 UINT32 mask = 0xffffffff; UINT32 len = rgn_size; - + for (UINT32 bit = 0x80000000; bit != 0; bit >>= 1) { if ((len * 2 - 1) & bit) break; - + mask >>= 1; } - + return mask; } @@ -64,7 +64,7 @@ void device_neogeo_cart_interface::optimize_sprites(UINT8* region_sprites, UINT3 m_sprites_opt.resize(spritegfx_address_mask + 1); UINT8 *dest = &m_sprites_opt[0]; - + for (unsigned i = 0; i < region_sprites_size; i += 0x80, src += 0x80) { for (unsigned y = 0; y < 0x10; y++) @@ -76,7 +76,7 @@ void device_neogeo_cart_interface::optimize_sprites(UINT8* region_sprites, UINT3 (((src[0x42 | (y << 2)] >> x) & 0x01) << 1) | (((src[0x40 | (y << 2)] >> x) & 0x01) << 0); } - + for (unsigned x = 0; x < 8; x++) { *(dest++) = (((src[0x03 | (y << 2)] >> x) & 0x01) << 3) | @@ -219,7 +219,7 @@ static int neogeo_get_pcb_id(const char *slot) if (!core_stricmp(elem.slot_option, slot)) return elem.pcb_id; } - + return 0; } |