diff options
Diffstat (limited to 'src/devices/bus/megadrive/stm95.cpp')
-rw-r--r-- | src/devices/bus/megadrive/stm95.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/devices/bus/megadrive/stm95.cpp b/src/devices/bus/megadrive/stm95.cpp index 2c7ddf89ad4..dded370bdba 100644 --- a/src/devices/bus/megadrive/stm95.cpp +++ b/src/devices/bus/megadrive/stm95.cpp @@ -15,7 +15,7 @@ #include "stm95.h" -stm95_eeprom_device::stm95_eeprom_device(running_machine &machine, UINT8 *eeprom) : +stm95_eeprom_device::stm95_eeprom_device(running_machine &machine, uint8_t *eeprom) : stm_state(IDLE), stream_pos(0), m_machine(machine) @@ -175,13 +175,13 @@ void stm95_eeprom_device::set_sck_line(int state) const device_type MD_EEPROM_STM95 = &device_creator<md_eeprom_stm95_device>; -md_eeprom_stm95_device::md_eeprom_stm95_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) +md_eeprom_stm95_device::md_eeprom_stm95_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, const char *shortname, const char *source) : device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_md_cart_interface( mconfig, *this ), m_rdcnt(0) { } -md_eeprom_stm95_device::md_eeprom_stm95_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) +md_eeprom_stm95_device::md_eeprom_stm95_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, MD_EEPROM_STM95, "MD Cart + EEPROM STM95", tag, owner, clock, "md_eeprom_stm95", __FILE__), device_md_cart_interface( mconfig, *this ), m_rdcnt(0) { @@ -191,7 +191,7 @@ md_eeprom_stm95_device::md_eeprom_stm95_device(const machine_config &mconfig, co void md_eeprom_stm95_device::device_start() { nvram_alloc(M95320_SIZE); - m_stm95 = std::make_unique<stm95_eeprom_device>(machine(), (UINT8*)get_nvram_base()); + m_stm95 = std::make_unique<stm95_eeprom_device>(machine(), (uint8_t*)get_nvram_base()); save_item(NAME(m_rdcnt)); save_item(NAME(m_bank)); @@ -215,7 +215,7 @@ READ16_MEMBER(md_eeprom_stm95_device::read) { // ugly hack until we don't know much about game protection // first 3 reads from 15e6 return 0x00000010, then normal 0x00018010 value for crc check - UINT16 res; + uint16_t res; offset -= 0x0015e6/2; logerror("read 0x15e6 %d\n", m_rdcnt); if (m_rdcnt < 6) @@ -231,7 +231,7 @@ READ16_MEMBER(md_eeprom_stm95_device::read) return m_rom[offset]; else // last 0x180000 are bankswitched { - UINT8 bank = (offset - 0x280000/2) >> 18; + uint8_t bank = (offset - 0x280000/2) >> 18; return m_rom[(offset & 0x7ffff/2) + (m_bank[bank] * 0x80000)/2]; } } |