summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/binbug.cpp
diff options
context:
space:
mode:
authorGravatarGravatar Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
committerGravatarGravatar Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
commitddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch)
treea70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/mame/drivers/binbug.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/binbug.cpp')
-rw-r--r--src/mame/drivers/binbug.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/mame/drivers/binbug.cpp b/src/mame/drivers/binbug.cpp
index 85062aeea0d..7db5c0e76c6 100644
--- a/src/mame/drivers/binbug.cpp
+++ b/src/mame/drivers/binbug.cpp
@@ -74,14 +74,14 @@ public:
DECLARE_WRITE8_MEMBER(binbug_ctrl_w);
DECLARE_READ8_MEMBER(binbug_serial_r);
DECLARE_WRITE_LINE_MEMBER(binbug_serial_w);
- const UINT8 *m_p_chargen;
- UINT8 m_framecnt;
+ const uint8_t *m_p_chargen;
+ uint8_t m_framecnt;
virtual void video_start() override;
- UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+ uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
optional_device<rs232_port_device> m_rs232;
required_device<cassette_image_device> m_cass;
- required_shared_ptr<UINT8> m_p_videoram;
- required_shared_ptr<UINT8> m_p_attribram;
+ required_shared_ptr<uint8_t> m_p_videoram;
+ required_shared_ptr<uint8_t> m_p_attribram;
required_device<cpu_device> m_maincpu;
DECLARE_QUICKLOAD_LOAD_MEMBER( binbug );
};
@@ -123,11 +123,11 @@ void binbug_state::video_start()
m_p_chargen = memregion("chargen")->base();
}
-UINT32 binbug_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
+uint32_t binbug_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
// attributes bit 0 = flash, bit 1 = lores. Also bit 7 of the character = reverse-video (text only).
- UINT8 y,ra,chr,gfx,attr,inv,gfxbit;
- UINT16 sy=0,ma=0,x;
+ uint8_t y,ra,chr,gfx,attr,inv,gfxbit;
+ uint16_t sy=0,ma=0,x;
bool flash;
m_framecnt++;
@@ -135,7 +135,7 @@ UINT32 binbug_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap,
{
for (ra = 0; ra < 16; ra++)
{
- UINT16 *p = &bitmap.pix16(sy++);
+ uint16_t *p = &bitmap.pix16(sy++);
for (x = ma; x < ma + 64; x++)
{
@@ -224,7 +224,7 @@ QUICKLOAD_LOAD_MEMBER( binbug_state, binbug )
int quick_addr = 0x440;
int exec_addr;
int quick_length;
- std::vector<UINT8> quick_data;
+ std::vector<uint8_t> quick_data;
int read_;
image_init_result result = image_init_result::FAIL;
@@ -423,9 +423,9 @@ public:
DECLARE_WRITE8_MEMBER(kbd_put);
TIMER_DEVICE_CALLBACK_MEMBER(time_tick);
TIMER_DEVICE_CALLBACK_MEMBER(uart_tick);
- UINT8 m_pio_b;
- UINT8 m_term_data;
- UINT8 m_protection[0x100];
+ uint8_t m_pio_b;
+ uint8_t m_term_data;
+ uint8_t m_protection[0x100];
virtual void machine_reset() override;
required_device<cpu_device> m_maincpu;
required_device<z80ctc_device> m_ctc;
@@ -480,7 +480,7 @@ WRITE8_MEMBER( dg680_state::kbd_put )
READ8_MEMBER( dg680_state::porta_r )
{
- UINT8 data = m_term_data;
+ uint8_t data = m_term_data;
m_term_data = 0;
return data;
}
@@ -499,13 +499,13 @@ WRITE8_MEMBER( dg680_state::portb_w )
READ8_MEMBER( dg680_state::port08_r )
{
- UINT8 breg = m_maincpu->state_int(Z80_B);
+ uint8_t breg = m_maincpu->state_int(Z80_B);
return m_protection[breg];
}
WRITE8_MEMBER( dg680_state::port08_w )
{
- UINT8 breg = m_maincpu->state_int(Z80_B);
+ uint8_t breg = m_maincpu->state_int(Z80_B);
m_protection[breg] = data;
}