diff options
author | 2016-10-22 13:13:17 +0200 | |
---|---|---|
committer | 2016-10-22 13:13:17 +0200 | |
commit | ddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch) | |
tree | a70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/devices/video/i82730.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/devices/video/i82730.cpp')
-rw-r--r-- | src/devices/video/i82730.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/devices/video/i82730.cpp b/src/devices/video/i82730.cpp index 8cd78863df3..bad69058f31 100644 --- a/src/devices/video/i82730.cpp +++ b/src/devices/video/i82730.cpp @@ -51,7 +51,7 @@ const char *i82730_device::m_command_names[] = // i82730_device - constructor //------------------------------------------------- -i82730_device::i82730_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : +i82730_device::i82730_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, I82730, "I82730", tag, owner, clock, "i82730", __FILE__), device_video_interface(mconfig, *this), m_sint_handler(*this), @@ -119,14 +119,14 @@ void i82730_device::device_reset() // MEMORY ACCESS //************************************************************************** -UINT8 i82730_device::read_byte(offs_t address) +uint8_t i82730_device::read_byte(offs_t address) { return m_program->read_byte(address); } -UINT16 i82730_device::read_word(offs_t address) +uint16_t i82730_device::read_word(offs_t address) { - UINT16 data; + uint16_t data; if (sysbus_16bit() && WORD_ALIGNED(address)) { @@ -141,12 +141,12 @@ UINT16 i82730_device::read_word(offs_t address) return data; } -void i82730_device::write_byte(offs_t address, UINT8 data) +void i82730_device::write_byte(offs_t address, uint8_t data) { m_program->write_byte(address, data); } -void i82730_device::write_word(offs_t address, UINT16 data) +void i82730_device::write_word(offs_t address, uint16_t data) { if (sysbus_16bit() && WORD_ALIGNED(address)) { @@ -166,7 +166,7 @@ void i82730_device::write_word(offs_t address, UINT16 data) void i82730_device::update_interrupts() { - UINT16 code = m_status & ~m_intmask & ~(VDIP | DIP); + uint16_t code = m_status & ~m_intmask & ~(VDIP | DIP); write_word(m_cbp + 20, code); if (code) @@ -175,24 +175,24 @@ void i82730_device::update_interrupts() void i82730_device::mode_set() { - UINT32 mptr = (read_word(m_cbp + 32) << 16) | read_word(m_cbp + 30); - UINT16 tmp; + uint32_t mptr = (read_word(m_cbp + 32) << 16) | read_word(m_cbp + 30); + uint16_t tmp; tmp = read_word(mptr); m_dma_burst_space = tmp & 0x7f; m_dma_burst_length = (tmp >> 8) & 0x7f; tmp = read_word(mptr + 2); - UINT8 hsyncstp = tmp & 0xff; - UINT8 line_length = (tmp >> 8) & 0xff; + uint8_t hsyncstp = tmp & 0xff; + uint8_t line_length = (tmp >> 8) & 0xff; tmp = read_word(mptr + 4); - UINT8 hfldstp = tmp & 0xff; + uint8_t hfldstp = tmp & 0xff; m_hfldstrt = (tmp >> 8) & 0xff; tmp = read_word(mptr + 6); - UINT8 hbrdstp = tmp & 0xff; - UINT8 hbrdstrt = (tmp >> 8) & 0xff; + uint8_t hbrdstp = tmp & 0xff; + uint8_t hbrdstrt = (tmp >> 8) & 0xff; tmp = read_word(mptr + 8); m_margin = tmp & 0x1f; @@ -204,7 +204,7 @@ void i82730_device::mode_set() m_field_attribute_mask = tmp & 0x7fff; tmp = read_word(mptr + 26); - UINT16 frame_length = tmp & 0x7ff; + uint16_t frame_length = tmp & 0x7ff; tmp = read_word(mptr + 28); m_vsyncstp = tmp & 0x7ff; @@ -244,8 +244,8 @@ void i82730_device::mode_set() void i82730_device::execute_command() { - UINT8 command = read_byte(m_cbp + 1); - UINT16 tmp; + uint8_t command = read_byte(m_cbp + 1); + uint16_t tmp; if (VERBOSE_COMMANDS && command < ARRAY_LENGTH(m_command_names)) logerror("%s('%s'): executing command: %s [cbp = %08x]\n", shortname(), basetag(), m_command_names[command], m_cbp); @@ -344,7 +344,7 @@ void i82730_device::load_row() while (!finished) { - UINT16 data = read_word(m_sptr); + uint16_t data = read_word(m_sptr); m_sptr += 2; if (BIT(data, 15)) @@ -420,7 +420,7 @@ TIMER_CALLBACK_MEMBER( i82730_device::row_update ) } else if (y >= m_vfldstrt && y < m_vfldstp) { - UINT8 lc = (y - m_vfldstrt) % (m_lpr + 1); + uint8_t lc = (y - m_vfldstrt) % (m_lpr + 1); // call driver m_update_row_cb(m_bitmap, m_row[m_row_index].data, lc, y - m_vsyncstp, m_row[m_row_index].count); @@ -438,7 +438,7 @@ TIMER_CALLBACK_MEMBER( i82730_device::row_update ) } else if (y >= m_vfldstp + m_margin + 1 && y < m_vfldstp + m_margin + 1 + m_lpr + 1) { - UINT8 lc = (y - (m_vfldstp + m_margin + 1)) % (m_lpr + 1); + uint8_t lc = (y - (m_vfldstp + m_margin + 1)) % (m_lpr + 1); m_sptr = (read_word(m_cbp + 36) << 16) | read_word(m_cbp + 34); load_row(); @@ -482,7 +482,7 @@ WRITE_LINE_MEMBER( i82730_device::ca_w ) m_ibp = (read_word(0xfffffffe) << 16) | read_word(0xfffffffc); // get system configuration byte - UINT8 scb = read_byte(m_ibp + 6); + uint8_t scb = read_byte(m_ibp + 6); // clear busy write_word(m_ibp, read_word(m_ibp) & 0xff00); @@ -520,7 +520,7 @@ WRITE_LINE_MEMBER( i82730_device::irst_w ) m_sint_handler(0); } -UINT32 i82730_device::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) +uint32_t i82730_device::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) { copybitmap(bitmap, m_bitmap, 0, 0, m_hfldstrt * 16, 0, cliprect); return 0; |