From 414f1ddd41916a651a0e93e0ad42ce44ea6f1f32 Mon Sep 17 00:00:00 2001 From: AJR Date: Tue, 21 Aug 2018 23:39:58 -0400 Subject: [PATCH] Misc. minor corrections (nw) --- src/mame/drivers/tim100.cpp | 8 ++++---- src/mame/drivers/trs80dt1.cpp | 8 ++++---- src/mame/drivers/z29.cpp | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/mame/drivers/tim100.cpp b/src/mame/drivers/tim100.cpp index 24a0c65f504..de2e6397b74 100644 --- a/src/mame/drivers/tim100.cpp +++ b/src/mame/drivers/tim100.cpp @@ -51,7 +51,7 @@ private: required_shared_ptr m_p_videoram; required_device m_maincpu; required_device m_palette; - required_device m_crtc; + required_device m_crtc; }; void tim100_state::tim100_mem(address_map &map) @@ -64,7 +64,7 @@ void tim100_state::tim100_mem(address_map &map) map(0x8000, 0x8000).rw("uart_u18", FUNC(i8251_device::data_r), FUNC(i8251_device::data_w)); map(0x8001, 0x8001).rw("uart_u18", FUNC(i8251_device::status_r), FUNC(i8251_device::control_w)); map(0xa000, 0xa000).nopw(); // continuously writes 00 here - map(0xc000, 0xc001).rw(m_crtc, FUNC(i8275_device::read), FUNC(i8275_device::write)); // i8276 + map(0xc000, 0xc001).rw(m_crtc, FUNC(i8276_device::read), FUNC(i8276_device::write)); // i8276 } void tim100_state::tim100_io(address_map &map) @@ -170,7 +170,7 @@ MACHINE_CONFIG_START(tim100_state::tim100) /* video hardware */ MCFG_SCREEN_ADD("screen", RASTER) - MCFG_SCREEN_UPDATE_DEVICE("crtc", i8275_device, screen_update) + MCFG_SCREEN_UPDATE_DEVICE("crtc", i8276_device, screen_update) MCFG_SCREEN_REFRESH_RATE(50) MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ MCFG_SCREEN_SIZE(600, 352) @@ -178,7 +178,7 @@ MACHINE_CONFIG_START(tim100_state::tim100) MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_tim100 ) - MCFG_DEVICE_ADD("crtc", I8275, XTAL(4'915'200)) + MCFG_DEVICE_ADD("crtc", I8276, XTAL(4'915'200)) MCFG_I8275_CHARACTER_WIDTH(12) MCFG_I8275_DRAW_CHARACTER_CALLBACK_OWNER(tim100_state, crtc_display_pixels) MCFG_I8275_DRQ_CALLBACK(WRITELINE(*this, tim100_state, drq_w)) diff --git a/src/mame/drivers/trs80dt1.cpp b/src/mame/drivers/trs80dt1.cpp index d2a1051feda..6361c125660 100644 --- a/src/mame/drivers/trs80dt1.cpp +++ b/src/mame/drivers/trs80dt1.cpp @@ -75,7 +75,7 @@ private: required_region_ptr m_p_chargen; required_device m_maincpu; required_device m_palette; - required_device m_crtc; + required_device m_crtc; required_device m_nvram; required_ioport_array<10> m_keyboard; required_device m_beep; @@ -160,7 +160,7 @@ void trs80dt1_state::io_map(address_map &map) map(0xac00, 0xafff).r(FUNC(trs80dt1_state::key_r)); map(0xb000, 0xb3ff).portr("X9"); // also reads some RS232 inputs map(0xb400, 0xb7ff).w(FUNC(trs80dt1_state::store_w)); - map(0xbc00, 0xbc01).mirror(0x3fe).rw(m_crtc, FUNC(i8275_device::read), FUNC(i8275_device::write)); // i8276 + map(0xbc00, 0xbc01).mirror(0x3fe).rw(m_crtc, FUNC(i8276_device::read), FUNC(i8276_device::write)); // i8276 } /* Input ports */ @@ -320,14 +320,14 @@ MACHINE_CONFIG_START(trs80dt1_state::trs80dt1) /* video hardware */ MCFG_SCREEN_ADD("screen", RASTER) - MCFG_SCREEN_UPDATE_DEVICE("crtc", i8275_device, screen_update) + MCFG_SCREEN_UPDATE_DEVICE("crtc", i8276_device, screen_update) MCFG_SCREEN_REFRESH_RATE(60) MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ MCFG_SCREEN_SIZE(40*12, 16*16) MCFG_SCREEN_VISIBLE_AREA(0, 40*12-1, 0, 16*16-1) MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_trs80dt1 ) - I8275(config, m_crtc, 12480000 / 8); + I8276(config, m_crtc, 12480000 / 8); m_crtc->set_character_width(8); m_crtc->set_display_callback(FUNC(trs80dt1_state::crtc_update_row), this); m_crtc->drq_wr_callback().set_inputline(m_maincpu, MCS51_INT0_LINE); // BRDY pin goes through inverter to /INT0, so we don't invert diff --git a/src/mame/drivers/z29.cpp b/src/mame/drivers/z29.cpp index 8fcfbd19daa..11dfa4c24a9 100644 --- a/src/mame/drivers/z29.cpp +++ b/src/mame/drivers/z29.cpp @@ -114,8 +114,8 @@ ROM_START(z29) ROM_REGION(0x1000, "chargen", 0) ROM_LOAD("u429.bin", 0x0000, 0x1000, CRC(5e3bc5bf) SHA1(18d73e3d74a9768bee8b063ea45891f955558ae7)) - ROM_REGION(0x800, "kbdmcu", 0) - ROM_LOAD("444-100.bin", 0x000, 0x800, NO_DUMP) + ROM_REGION(0x400, "kbdmcu", 0) + ROM_LOAD("444-100.bin", 0x000, 0x400, NO_DUMP) ROM_END