diff options
author | 2016-10-22 13:13:17 +0200 | |
---|---|---|
committer | 2016-10-22 13:13:17 +0200 | |
commit | ddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch) | |
tree | a70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/mame/machine/electron.cpp | |
parent | 333bff8de64dfaeb98134000412796b4fdef970b (diff) |
NOTICE (TYPE NAME CONSOLIDATION)
Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8
also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
Diffstat (limited to 'src/mame/machine/electron.cpp')
-rw-r--r-- | src/mame/machine/electron.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mame/machine/electron.cpp b/src/mame/machine/electron.cpp index 10091c75bdd..23b3a00e799 100644 --- a/src/mame/machine/electron.cpp +++ b/src/mame/machine/electron.cpp @@ -145,7 +145,7 @@ TIMER_CALLBACK_MEMBER(electron_state::electron_tape_timer_handler) READ8_MEMBER(electron_state::electron_read_keyboard) { - UINT8 data = 0; + uint8_t data = 0; //logerror( "PC=%04x: keyboard read from paged rom area, address: %04x", activecpu_get_pc(), offset ); for (int i = 0; i < 14; i++) @@ -193,7 +193,7 @@ WRITE8_MEMBER(electron_state::electron_jim_w) READ8_MEMBER(electron_state::electron_sheila_r) { - UINT8 data = ((UINT8 *)memregion("user1")->base())[0x43E00 + offset]; + uint8_t data = ((uint8_t *)memregion("user1")->base())[0x43E00 + offset]; switch ( offset & 0x0f ) { case 0x00: /* Interrupt status */ @@ -212,7 +212,7 @@ READ8_MEMBER(electron_state::electron_sheila_r) } static const int electron_palette_offset[4] = { 0, 4, 5, 1 }; -static const UINT16 electron_screen_base[8] = { 0x3000, 0x3000, 0x3000, 0x4000, 0x5800, 0x5800, 0x6000, 0x5800 }; +static const uint16_t electron_screen_base[8] = { 0x3000, 0x3000, 0x3000, 0x4000, 0x5800, 0x5800, 0x6000, 0x5800 }; WRITE8_MEMBER(electron_state::electron_sheila_w) { @@ -307,7 +307,7 @@ WRITE8_MEMBER(electron_state::electron_sheila_w) m_ula.screen_mode = ( data >> 3 ) & 0x07; m_ula.screen_base = electron_screen_base[ m_ula.screen_mode ]; m_ula.screen_size = 0x8000 - m_ula.screen_base; - m_ula.vram = (UINT8 *)m_ram->pointer() + m_ula.screen_base; + m_ula.vram = (uint8_t *)m_ram->pointer() + m_ula.screen_base; logerror( "ULA: screen mode set to %d\n", m_ula.screen_mode ); m_ula.cassette_motor_mode = ( data >> 6 ) & 0x01; m_cassette->change_state(m_ula.cassette_motor_mode ? CASSETTE_MOTOR_ENABLED : CASSETTE_MOTOR_DISABLED, CASSETTE_MOTOR_DISABLED ); @@ -375,12 +375,12 @@ void electron_state::machine_reset() m_ula.screen_size = 0x8000 - 0x3000; m_ula.screen_addr = 0; m_ula.tape_running = 0; - m_ula.vram = (UINT8 *)m_ram->pointer() + m_ula.screen_base; + m_ula.vram = (uint8_t *)m_ram->pointer() + m_ula.screen_base; } void electron_state::machine_start() { - UINT8 *lo_rom, *up_rom; + uint8_t *lo_rom, *up_rom; std::string region_tag; memory_region *cart_rom = memregion(region_tag.assign(m_cart->tag()).append(GENERIC_ROM_REGION_TAG).c_str()); @@ -409,7 +409,7 @@ DEVICE_IMAGE_LOAD_MEMBER( electron_state, electron_cart ) { if (image.software_entry() == nullptr) { - UINT32 filesize = image.length(); + uint32_t filesize = image.length(); if (filesize != 16384) { |