diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2018-09-11 21:30:49 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2018-09-11 21:30:52 -0400 |
commit | e6a3bb3ad7b2f4a5fc3f2cfa01e085672c417840 (patch) | |
tree | 99b2e47665e81e62b6b95bf7a979093e7ff3fb0c | |
parent | acebba796858b40e65a00c63f5cb0291bc47a6af (diff) |
mpu4vid.cpp: Properly configure CRTC clock and screen timing parameters (nw)
-rw-r--r-- | src/mame/drivers/mpu4vid.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/mame/drivers/mpu4vid.cpp b/src/mame/drivers/mpu4vid.cpp index febc474ff65..653f95e7070 100644 --- a/src/mame/drivers/mpu4vid.cpp +++ b/src/mame/drivers/mpu4vid.cpp @@ -1278,7 +1278,7 @@ void mpu4_state::mpu4_6809_map(address_map &map) MACHINE_CONFIG_START(mpu4vid_state::mpu4_vid) - MCFG_DEVICE_ADD("maincpu", M6809, MPU4_MASTER_CLOCK/4 ) + MCFG_DEVICE_ADD("maincpu", MC6809, MPU4_MASTER_CLOCK) MCFG_DEVICE_PROGRAM_MAP(mpu4_6809_map) NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); /* confirm */ @@ -1286,16 +1286,14 @@ MACHINE_CONFIG_START(mpu4vid_state::mpu4_vid) mpu4_common(config); /* video hardware */ - MCFG_SCREEN_ADD("screen", RASTER) - MCFG_SCREEN_SIZE((63*8)+(17*8), (37*8)+17) // note this directly affects the scanline counters used below, and thus the timing of everything - MCFG_SCREEN_VISIBLE_AREA(0, (63*8)+(0)-1, 0, (37*8)+0-1) - - MCFG_SCREEN_REFRESH_RATE(50) - MCFG_SCREEN_UPDATE_DEVICE("scn2674_vid", scn2674_device, screen_update) + screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); + screen.set_raw(VIDEO_MASTER_CLOCK, (63*8)+(17*8), 0, (63*8), (37*8)+17, 0, (37*8)); + // note this directly affects the scanline counters used below, and thus the timing of everything + screen.set_screen_update("scn2674_vid", FUNC(scn2674_device::screen_update)); MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfxdecode_device::empty) - SCN2674(config, m_scn2674, 0); + SCN2674(config, m_scn2674, VIDEO_MASTER_CLOCK / 8); m_scn2674->intr_callback().set_inputline("video", M68K_IRQ_3); m_scn2674->set_character_width(8); m_scn2674->set_display_callback(FUNC(mpu4vid_state::display_pixels)); |