summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/neogeo/sbp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/neogeo/sbp.cpp')
-rw-r--r--src/devices/bus/neogeo/sbp.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/devices/bus/neogeo/sbp.cpp b/src/devices/bus/neogeo/sbp.cpp
index 805aeff1214..5947bab07da 100644
--- a/src/devices/bus/neogeo/sbp.cpp
+++ b/src/devices/bus/neogeo/sbp.cpp
@@ -16,7 +16,7 @@
extern const device_type NEOGEO_SBP_CART = &device_creator<neogeo_sbp_cart>;
-neogeo_sbp_cart::neogeo_sbp_cart(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
+neogeo_sbp_cart::neogeo_sbp_cart(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
neogeo_rom_device(mconfig, NEOGEO_SBP_CART, "Neo Geo Super Bubble Pop Cart", tag, owner, clock, "neocart_sbp", __FILE__)
{}
@@ -33,9 +33,9 @@ void neogeo_sbp_cart::device_reset()
READ16_MEMBER( neogeo_sbp_cart::protection_r )
{
- UINT16* rom = (get_rom_size()) ? get_rom_base() : get_region_rom_base();
- UINT16 origdata = rom[offset + (0x200/2)];
- UINT16 data = BITSWAP16(origdata, 11,10,9,8,15,14,13,12,3,2,1,0,7,6,5,4);
+ uint16_t* rom = (get_rom_size()) ? get_rom_base() : get_region_rom_base();
+ uint16_t origdata = rom[offset + (0x200/2)];
+ uint16_t data = BITSWAP16(origdata, 11,10,9,8,15,14,13,12,3,2,1,0,7,6,5,4);
int realoffset = 0x200 + (offset * 2);
logerror("sbp_lowerrom_r offset %08x data %04x\n", realoffset, data);
@@ -71,10 +71,10 @@ WRITE16_MEMBER( neogeo_sbp_cart::protection_w )
}
-void neogeo_sbp_cart::patch(UINT8* cpurom, UINT32 cpurom_size)
+void neogeo_sbp_cart::patch(uint8_t* cpurom, uint32_t cpurom_size)
{
/* the game code clears the text overlay used ingame immediately after writing it.. why? protection? sloppy code that the hw ignores? imperfect emulation? */
- UINT16* rom = (UINT16*)cpurom;
+ uint16_t* rom = (uint16_t*)cpurom;
rom[0x2a6f8/2] = 0x4e71;
rom[0x2a6fa/2] = 0x4e71;