diff options
Diffstat (limited to 'src/devices/cpu/i8089/i8089.cpp')
-rw-r--r-- | src/devices/cpu/i8089/i8089.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/devices/cpu/i8089/i8089.cpp b/src/devices/cpu/i8089/i8089.cpp index b817e5d109d..2b20984c061 100644 --- a/src/devices/cpu/i8089/i8089.cpp +++ b/src/devices/cpu/i8089/i8089.cpp @@ -32,7 +32,7 @@ const device_type I8089 = &device_creator<i8089_device>; // i8089_device - constructor //------------------------------------------------- -i8089_device::i8089_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : +i8089_device::i8089_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : cpu_device(mconfig, I8089, "I8089", tag, owner, clock, "i8089", __FILE__), m_icount(0), m_ch1(*this, "1"), @@ -148,7 +148,7 @@ const address_space_config *i8089_device::memory_space_config(address_spacenum s // disasm_disassemble - disassembler //------------------------------------------------- -offs_t i8089_device::disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options) +offs_t i8089_device::disasm_disassemble(char *buffer, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options) { extern CPU_DISASSEMBLE(i8089); return CPU_DISASSEMBLE_NAME(i8089)(this, buffer, pc, oprom, opram, options); @@ -243,8 +243,8 @@ void i8089_device::initialize() m_sysbus = m_mem->read_byte(0xffff6); // get system configuration block address - UINT16 scb_offset = read_word(0, 0xffff8); - UINT16 scb_segment = read_word(0, 0xffffa); + uint16_t scb_offset = read_word(0, 0xffff8); + uint16_t scb_segment = read_word(0, 0xffffa); m_scb = ((scb_segment << 4) + scb_offset) & 0x0fffff; // get system operation command @@ -252,8 +252,8 @@ void i8089_device::initialize() m_master = !m_sel; // get control block address - UINT16 cb_offset = read_word(0, m_scb + 2); - UINT16 cb_segment = read_word(0, m_scb + 4); + uint16_t cb_offset = read_word(0, m_scb + 2); + uint16_t cb_segment = read_word(0, m_scb + 4); offs_t cb_address = ((cb_segment << 4) + cb_offset) & 0x0fffff; // initialize channels @@ -261,7 +261,7 @@ void i8089_device::initialize() m_ch2->set_reg(i8089_channel::CP, cb_address + 8); // clear busy - UINT16 ccw = read_word(0, cb_address); + uint16_t ccw = read_word(0, cb_address); write_word(0, cb_address, ccw & 0x00ff); // done @@ -280,14 +280,14 @@ void i8089_device::initialize() } } -UINT8 i8089_device::read_byte(bool space, offs_t address) +uint8_t i8089_device::read_byte(bool space, offs_t address) { return (space ? m_io : m_mem)->read_byte(address); } -UINT16 i8089_device::read_word(bool space, offs_t address) +uint16_t i8089_device::read_word(bool space, offs_t address) { - UINT16 data; + uint16_t data; address_space *aspace = (space ? m_io : m_mem); if (sysbus_width() && WORD_ALIGNED(address)) @@ -303,12 +303,12 @@ UINT16 i8089_device::read_word(bool space, offs_t address) return data; } -void i8089_device::write_byte(bool space, offs_t address, UINT8 data) +void i8089_device::write_byte(bool space, offs_t address, uint8_t data) { (space ? m_io : m_mem)->write_byte(address, data); } -void i8089_device::write_word(bool space, offs_t address, UINT16 data) +void i8089_device::write_word(bool space, offs_t address, uint16_t data) { address_space *aspace = (space ? m_io : m_mem); |