summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/733_asr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/733_asr.cpp')
-rw-r--r--src/mame/video/733_asr.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mame/video/733_asr.cpp b/src/mame/video/733_asr.cpp
index 80995c2f415..59bfa3bc76f 100644
--- a/src/mame/video/733_asr.cpp
+++ b/src/mame/video/733_asr.cpp
@@ -315,7 +315,7 @@ READ8_MEMBER( asr733_device::cru_r )
{
int reply = 0;
- switch (offset >> 3)
+ switch (offset)
{
case 0:
/* receive buffer */
@@ -328,7 +328,7 @@ READ8_MEMBER( asr733_device::cru_r )
break;
}
- return BIT(reply, offset & 7);
+ return reply;
}
/*
@@ -777,15 +777,15 @@ ioport_constructor asr733_device::device_input_ports() const
//-------------------------------------------------
-void asr733_device::device_add_mconfig(machine_config &config)
-{
+MACHINE_CONFIG_START(asr733_device::device_add_mconfig)
PALETTE(config, "palette", palette_device::MONOCHROME_INVERTED);
- SCREEN(config, m_screen, SCREEN_TYPE_RASTER);
- m_screen->set_refresh_hz(60);
- m_screen->set_vblank_time(ATTOSECONDS_IN_USEC(2500)); /* not accurate */
- m_screen->set_screen_update(FUNC(asr733_device::screen_update));
- m_screen->set_size(640, 480);
- m_screen->set_visarea(0, 640-1, 0, 480-1);
- m_screen->set_palette("palette");
-}
+ MCFG_SCREEN_ADD("screen", RASTER)
+ MCFG_SCREEN_REFRESH_RATE(60)
+ MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
+ MCFG_SCREEN_UPDATE_DEVICE(DEVICE_SELF, asr733_device, screen_update)
+
+ MCFG_SCREEN_SIZE(640, 480)
+ MCFG_SCREEN_VISIBLE_AREA(0, 640-1, 0, 480-1)
+ MCFG_SCREEN_PALETTE("palette")
+MACHINE_CONFIG_END