summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/plan80.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/plan80.cpp')
-rw-r--r--src/mame/drivers/plan80.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/drivers/plan80.cpp b/src/mame/drivers/plan80.cpp
index 8ab84821f91..c7f48a1e59b 100644
--- a/src/mame/drivers/plan80.cpp
+++ b/src/mame/drivers/plan80.cpp
@@ -44,12 +44,12 @@ public:
required_device<cpu_device> m_maincpu;
DECLARE_READ8_MEMBER(plan80_04_r);
DECLARE_WRITE8_MEMBER(plan80_09_w);
- required_shared_ptr<UINT8> m_p_videoram;
- const UINT8* m_p_chargen;
- UINT8 m_kbd_row;
+ required_shared_ptr<uint8_t> m_p_videoram;
+ const uint8_t* m_p_chargen;
+ uint8_t m_kbd_row;
virtual void machine_reset() override;
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);
DECLARE_DRIVER_INIT(plan80);
protected:
@@ -58,7 +58,7 @@ protected:
READ8_MEMBER( plan80_state::plan80_04_r )
{
- UINT8 data = 0xff;
+ uint8_t data = 0xff;
if (m_kbd_row == 0xfe)
data = ioport("LINE0")->read();
@@ -170,7 +170,7 @@ void plan80_state::machine_reset()
DRIVER_INIT_MEMBER(plan80_state,plan80)
{
- UINT8 *RAM = memregion("maincpu")->base();
+ uint8_t *RAM = memregion("maincpu")->base();
membank("boot")->configure_entries(0, 2, &RAM[0x0000], 0xf800);
}
@@ -179,16 +179,16 @@ void plan80_state::video_start()
m_p_chargen = memregion("chargen")->base();
}
-UINT32 plan80_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
+uint32_t plan80_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
- UINT8 y,ra,chr,gfx;
- UINT16 sy=0,ma=0,x;
+ uint8_t y,ra,chr,gfx;
+ uint16_t sy=0,ma=0,x;
for (y = 0; y < 32; y++)
{
for (ra = 0; ra < 8; ra++)
{
- UINT16 *p = &bitmap.pix16(sy++);
+ uint16_t *p = &bitmap.pix16(sy++);
for (x = ma; x < ma+48; x++)
{