summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/qx10.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
commitddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch)
treea70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/mame/drivers/qx10.cpp
parent333bff8de64dfaeb98134000412796b4fdef970b (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/qx10.cpp')
-rw-r--r--src/mame/drivers/qx10.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/mame/drivers/qx10.cpp b/src/mame/drivers/qx10.cpp
index 19851555a03..775889cefe8 100644
--- a/src/mame/drivers/qx10.cpp
+++ b/src/mame/drivers/qx10.cpp
@@ -89,11 +89,11 @@ public:
required_device<upd7220_device> m_hgdc;
required_device<mc146818_device> m_rtc;
required_device<rs232_port_device> m_kbd;
- UINT8 m_vram_bank;
- //required_shared_ptr<UINT8> m_video_ram;
- std::unique_ptr<UINT16[]> m_video_ram;
+ uint8_t m_vram_bank;
+ //required_shared_ptr<uint8_t> m_video_ram;
+ std::unique_ptr<uint16_t[]> m_video_ram;
- UINT32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
+ uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
virtual void machine_start() override;
virtual void machine_reset() override;
@@ -125,7 +125,7 @@ public:
DECLARE_WRITE_LINE_MEMBER(keyboard_clk);
DECLARE_WRITE_LINE_MEMBER(keyboard_irq);
- UINT8 *m_char_rom;
+ uint8_t *m_char_rom;
/* FDD */
int m_fdcint;
@@ -136,12 +136,12 @@ public:
int m_membank;
int m_memprom;
int m_memcmos;
- UINT8 m_cmosram[0x800];
+ uint8_t m_cmosram[0x800];
- UINT8 m_color_mode;
+ uint8_t m_color_mode;
struct{
- UINT8 rx;
+ uint8_t rx;
}m_rs232c;
DECLARE_PALETTE_INIT(qx10);
@@ -157,7 +157,7 @@ UPD7220_DISPLAY_PIXELS_MEMBER( qx10_state::hgdc_display_pixels )
{
const rgb_t *palette = m_palette->palette()->entry_list_raw();
int xi,gfx[3];
- UINT8 pen;
+ uint8_t pen;
if(m_color_mode)
{
@@ -189,9 +189,9 @@ UPD7220_DRAW_TEXT_LINE_MEMBER( qx10_state::hgdc_draw_text )
int xi,yi;
int tile;
int attr;
- UINT8 color;
- UINT8 tile_data;
- UINT8 pen;
+ uint8_t color;
+ uint8_t tile_data;
+ uint8_t pen;
for( x = 0; x < pitch; x++ )
{
@@ -235,7 +235,7 @@ UPD7220_DRAW_TEXT_LINE_MEMBER( qx10_state::hgdc_draw_text )
}
}
-UINT32 qx10_state::screen_update( screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect )
+uint32_t qx10_state::screen_update( screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect )
{
bitmap.fill(m_palette->black_pen(), cliprect);
@@ -518,7 +518,7 @@ ADDRESS_MAP_END
{
if(newval && !oldval)
{
- m_keyb.rx = (UINT8)(uintptr_t)(param) & 0x7f;
+ m_keyb.rx = (uint8_t)(uintptr_t)(param) & 0x7f;
m_pic_m->ir4_w(1);
}
@@ -619,7 +619,7 @@ GFXDECODE_END
void qx10_state::video_start()
{
// allocate memory
- m_video_ram = make_unique_clear<UINT16[]>(0x30000);
+ m_video_ram = make_unique_clear<uint16_t[]>(0x30000);
// find memory regions
m_char_rom = memregion("chargen")->base();