diff options
Diffstat (limited to 'src/mame/machine/microtan.cpp')
-rw-r--r-- | src/mame/machine/microtan.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mame/machine/microtan.cpp b/src/mame/machine/microtan.cpp index 70e50fa87d5..191f833705c 100644 --- a/src/mame/machine/microtan.cpp +++ b/src/mame/machine/microtan.cpp @@ -129,9 +129,9 @@ static const char keyboard[8][9][8] = { }, }; -UINT8 microtan_state::read_dsw() +uint8_t microtan_state::read_dsw() { - UINT8 result; + uint8_t result; switch(machine().phase()) { case MACHINE_PHASE_RESET: @@ -417,7 +417,7 @@ INTERRUPT_GEN_MEMBER(microtan_state::microtan_interrupt) DRIVER_INIT_MEMBER(microtan_state,microtan) { - UINT8 *dst = memregion("gfx2")->base(); + uint8_t *dst = memregion("gfx2")->base(); int i; address_space &space = m_maincpu->space(AS_PROGRAM); @@ -522,7 +522,7 @@ void microtan_state::machine_reset() output().set_led_value(1, (m_keyrows[3] & 0x80) ? 0 : 1); } -image_verify_result microtan_state::microtan_verify_snapshot(UINT8 *data, int size) +image_verify_result microtan_state::microtan_verify_snapshot(uint8_t *data, int size) { if (size == 8263) { @@ -541,7 +541,7 @@ image_verify_result microtan_state::microtan_verify_snapshot(UINT8 *data, int si return image_verify_result::FAIL; } -image_init_result microtan_state::parse_intel_hex(UINT8 *snapshot_buff, char *src) +image_init_result microtan_state::parse_intel_hex(uint8_t *snapshot_buff, char *src) { char line[128]; int /*row = 0,*/ column = 0, last_addr = 0, last_size = 0; @@ -622,7 +622,7 @@ image_init_result microtan_state::parse_intel_hex(UINT8 *snapshot_buff, char *sr return image_init_result::PASS; } -image_init_result microtan_state::parse_zillion_hex(UINT8 *snapshot_buff, char *src) +image_init_result microtan_state::parse_zillion_hex(uint8_t *snapshot_buff, char *src) { char line[128]; int parsing = 0, /*row = 0,*/ column = 0; @@ -705,7 +705,7 @@ image_init_result microtan_state::parse_zillion_hex(UINT8 *snapshot_buff, char * return image_init_result::PASS; } -void microtan_state::microtan_set_cpu_regs(const UINT8 *snapshot_buff, int base) +void microtan_state::microtan_set_cpu_regs(const uint8_t *snapshot_buff, int base) { logerror("microtan_snapshot_copy: PC:%02X%02X P:%02X A:%02X X:%02X Y:%02X SP:1%02X", snapshot_buff[base+1], snapshot_buff[base+0], snapshot_buff[base+2], snapshot_buff[base+3], @@ -718,9 +718,9 @@ void microtan_state::microtan_set_cpu_regs(const UINT8 *snapshot_buff, int base) m_maincpu->set_state_int(M6502_S, snapshot_buff[base+6]); } -void microtan_state::microtan_snapshot_copy(UINT8 *snapshot_buff, int snapshot_size) +void microtan_state::microtan_snapshot_copy(uint8_t *snapshot_buff, int snapshot_size) { - UINT8 *RAM = memregion("maincpu")->base(); + uint8_t *RAM = memregion("maincpu")->base(); address_space &space = m_maincpu->space(AS_PROGRAM); ay8910_device *ay8910 = machine().device<ay8910_device>("ay8910.1"); @@ -821,9 +821,9 @@ void microtan_state::microtan_snapshot_copy(UINT8 *snapshot_buff, int snapshot_s SNAPSHOT_LOAD_MEMBER( microtan_state, microtan ) { - UINT8 *snapshot_buff; + uint8_t *snapshot_buff; - snapshot_buff = (UINT8*)image.ptr(); + snapshot_buff = (uint8_t*)image.ptr(); if (!snapshot_buff) return image_init_result::FAIL; @@ -837,7 +837,7 @@ SNAPSHOT_LOAD_MEMBER( microtan_state, microtan ) QUICKLOAD_LOAD_MEMBER( microtan_state, microtan ) { int snapshot_size = 8263; /* magic size */ - std::vector<UINT8> snapshot_buff(snapshot_size, 0); + std::vector<uint8_t> snapshot_buff(snapshot_size, 0); std::vector<char> buff(quickload_size + 1); image_init_result rc; |