summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/sbrain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/sbrain.cpp')
-rw-r--r--src/mame/drivers/sbrain.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/mame/drivers/sbrain.cpp b/src/mame/drivers/sbrain.cpp
index 9bc9709113c..41800fd1249 100644
--- a/src/mame/drivers/sbrain.cpp
+++ b/src/mame/drivers/sbrain.cpp
@@ -66,9 +66,9 @@ public:
m_bank2(*this, "bank2") {}
public:
- const UINT8 *m_p_chargen;
- UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- required_shared_ptr<UINT8> m_p_videoram;
+ const uint8_t *m_p_chargen;
+ uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+ required_shared_ptr<uint8_t> m_p_videoram;
DECLARE_DRIVER_INIT(sbrain);
DECLARE_MACHINE_RESET(sbrain);
DECLARE_READ8_MEMBER(ppi_pa_r);
@@ -83,10 +83,10 @@ public:
DECLARE_WRITE_LINE_MEMBER(fr_w);
DECLARE_WRITE_LINE_MEMBER(ft_w);
private:
- UINT8 m_porta;
- UINT8 m_portb;
- UINT8 m_portc;
- UINT8 m_port08;
+ uint8_t m_porta;
+ uint8_t m_portb;
+ uint8_t m_portc;
+ uint8_t m_port08;
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_subcpu;
required_device<beep_device> m_beep;
@@ -213,7 +213,7 @@ d7 : cpu2 /busak line
*/
READ8_MEMBER( sbrain_state::ppi_pb_r )
{
- return m_portb | 0x50 | m_vs->read() | (BIT(m_port08, 0) << 5) | ((UINT8)BIT(m_portc, 5) << 7);
+ return m_portb | 0x50 | m_vs->read() | (BIT(m_port08, 0) << 5) | ((uint8_t)BIT(m_portc, 5) << 7);
}
WRITE8_MEMBER( sbrain_state::ppi_pb_w )
@@ -254,8 +254,8 @@ INPUT_PORTS_END
DRIVER_INIT_MEMBER( sbrain_state, sbrain )
{
- UINT8 *main = memregion("maincpu")->base();
- UINT8 *sub = memregion("subcpu")->base();
+ uint8_t *main = memregion("maincpu")->base();
+ uint8_t *sub = memregion("subcpu")->base();
m_bankr0->configure_entry(0, &main[0x0000]);
m_bankr0->configure_entry(1, &sub[0x0000]);
@@ -277,16 +277,16 @@ MACHINE_RESET_MEMBER( sbrain_state, sbrain )
m_subcpu->set_input_line(INPUT_LINE_RESET, ASSERT_LINE); // hold subcpu in reset
}
-UINT32 sbrain_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
+uint32_t sbrain_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 < 24; y++)
{
for (ra = 0; ra < 10; ra++)
{
- UINT16 *p = &bitmap.pix16(sy++);
+ uint16_t *p = &bitmap.pix16(sy++);
for (x = 0; x < 80; x++)
{