diff options
Diffstat (limited to 'src/devices/bus/msx_cart/nomapper.cpp')
-rw-r--r-- | src/devices/bus/msx_cart/nomapper.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/devices/bus/msx_cart/nomapper.cpp b/src/devices/bus/msx_cart/nomapper.cpp index 175681e0227..2b9b756e628 100644 --- a/src/devices/bus/msx_cart/nomapper.cpp +++ b/src/devices/bus/msx_cart/nomapper.cpp @@ -7,7 +7,7 @@ const device_type MSX_CART_NOMAPPER = &device_creator<msx_cart_nomapper>; -msx_cart_nomapper::msx_cart_nomapper(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) +msx_cart_nomapper::msx_cart_nomapper(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, MSX_CART_NOMAPPER, "MSX Cartridge - ROM", tag, owner, clock, "msx_cart_nomapper", __FILE__) , msx_cart_interface(mconfig, *this) , m_start_address(0) @@ -21,8 +21,8 @@ void msx_cart_nomapper::device_start() void msx_cart_nomapper::initialize_cartridge() { - UINT32 size = get_rom_size(); - UINT8 *rom = get_rom_base(); + uint32_t size = get_rom_size(); + uint8_t *rom = get_rom_base(); // determine start address // default to $4000 @@ -33,7 +33,7 @@ void msx_cart_nomapper::initialize_cartridge() /* 8KB/16KB */ case 0x2000: case 0x4000: { - UINT16 start = rom[3] << 8 | rom[2]; + uint16_t start = rom[3] << 8 | rom[2]; // start address of $0000: call address in the $4000 region: $4000, else $8000 if (start == 0) @@ -56,7 +56,7 @@ void msx_cart_nomapper::initialize_cartridge() // take default, check when no "AB" at $0000, but "AB" at $4000 if (rom[0] != 'A' && rom[1] != 'B' && rom[0x4000] == 'A' && rom[0x4001] == 'B') { - UINT16 start = rom[0x4003] << 8 | rom[0x4002]; + uint16_t start = rom[0x4003] << 8 | rom[0x4002]; // start address of $0000 and call address in the $4000 region, or start address outside the $8000 region: $0000, else default if ((start == 0 && (rom[0x4005] & 0xc0) == 0x40) || start < 0x8000 || start >= 0xc000) @@ -81,7 +81,7 @@ void msx_cart_nomapper::initialize_cartridge() break; } - m_end_address = std::min<UINT32>(m_start_address + size, 0x10000); + m_end_address = std::min<uint32_t>(m_start_address + size, 0x10000); } READ8_MEMBER(msx_cart_nomapper::read_cart) |