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/drivers/kinst.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/drivers/kinst.cpp')
-rw-r--r-- | src/mame/drivers/kinst.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/mame/drivers/kinst.cpp b/src/mame/drivers/kinst.cpp index c158bf95c05..0688dc743fe 100644 --- a/src/mame/drivers/kinst.cpp +++ b/src/mame/drivers/kinst.cpp @@ -158,12 +158,12 @@ public: { } - required_shared_ptr<UINT32> m_rambase; - required_shared_ptr<UINT32> m_rambase2; - required_shared_ptr<UINT32> m_control; - required_shared_ptr<UINT32> m_rombase; - UINT32 *m_video_base; - const UINT8 *m_control_map; + required_shared_ptr<uint32_t> m_rambase; + required_shared_ptr<uint32_t> m_rambase2; + required_shared_ptr<uint32_t> m_control; + required_shared_ptr<uint32_t> m_rombase; + uint32_t *m_video_base; + const uint8_t *m_control_map; DECLARE_READ32_MEMBER(kinst_control_r); DECLARE_WRITE32_MEMBER(kinst_control_w); DECLARE_READ32_MEMBER(kinst_ide_r); @@ -174,7 +174,7 @@ public: DECLARE_DRIVER_INIT(kinst2); virtual void machine_start() override; virtual void machine_reset() override; - UINT32 screen_update_kinst(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); + uint32_t screen_update_kinst(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(irq0_start); required_device<mips3_device> m_maincpu; required_device<ata_interface_device> m_ata; @@ -219,7 +219,7 @@ void kinst_state::machine_start() void kinst_state::machine_reset() { ide_hdd_device *hdd = m_ata->subdevice<ata_slot_device>("0")->subdevice<ide_hdd_device>("hdd"); - UINT16 *identify_device = hdd->identify_device_buffer(); + uint16_t *identify_device = hdd->identify_device_buffer(); if (strncmp(machine().system().name, "kinst2", 6) != 0) { @@ -252,21 +252,21 @@ void kinst_state::machine_reset() * *************************************/ -UINT32 kinst_state::screen_update_kinst(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) +uint32_t kinst_state::screen_update_kinst(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { int y; /* loop over rows and copy to the destination */ for (y = cliprect.min_y; y <= cliprect.max_y; y++) { - UINT32 *src = &m_video_base[640/4 * y]; - UINT16 *dest = &bitmap.pix16(y, cliprect.min_x); + uint32_t *src = &m_video_base[640/4 * y]; + uint16_t *dest = &bitmap.pix16(y, cliprect.min_x); int x; /* loop over columns */ for (x = cliprect.min_x; x < cliprect.max_x; x += 2) { - UINT32 data = *src++; + uint32_t data = *src++; /* store two pixels */ *dest++ = (data >> 0) & 0x7fff; @@ -343,7 +343,7 @@ WRITE32_MEMBER(kinst_state::kinst_ide_extra_w) READ32_MEMBER(kinst_state::kinst_control_r) { - UINT32 result; + uint32_t result; static const char *const portnames[] = { "P1", "P2", "VOLUME", "UNUSED", "DSW" }; /* apply shuffling */ @@ -378,7 +378,7 @@ READ32_MEMBER(kinst_state::kinst_control_r) WRITE32_MEMBER(kinst_state::kinst_control_w) { - UINT32 olddata; + uint32_t olddata; /* apply shuffling */ offset = m_control_map[offset / 2]; @@ -897,7 +897,7 @@ ROM_END DRIVER_INIT_MEMBER(kinst_state,kinst) { - static const UINT8 kinst_control_map[8] = { 0,1,2,3,4,5,6,7 }; + static const uint8_t kinst_control_map[8] = { 0,1,2,3,4,5,6,7 }; /* set up the control register mapping */ m_control_map = kinst_control_map; @@ -906,7 +906,7 @@ DRIVER_INIT_MEMBER(kinst_state,kinst) DRIVER_INIT_MEMBER(kinst_state,kinst2) { - static const UINT8 kinst2_control_map[8] = { 2,4,1,0,3,5,6,7 }; + static const uint8_t kinst2_control_map[8] = { 2,4,1,0,3,5,6,7 }; // read: $80 on ki2 = $90 on ki // read: $88 on ki2 = $a0 on ki |