diff options
| author | 2026-04-23 14:08:31 +0200 | |
|---|---|---|
| committer | 2026-04-23 16:10:48 +0200 | |
| commit | 8a1c9636a3aced38ce371c4fcd55fe84f2e54b99 (patch) | |
| tree | 9e4117211f1e3984a15c37b266f6c370fd8e6e5e | |
| parent | 2bc3d912401c3aadb2ddf8b8005de8b1c6b73cd4 (diff) | |
sony/smc777.cpp: fix FDC type
| -rw-r--r-- | hash/smc777.xml | 2 | ||||
| -rw-r--r-- | src/mame/sony/smc777.cpp | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/hash/smc777.xml b/hash/smc777.xml index 89ddd70f6ac..623672efdcd 100644 --- a/hash/smc777.xml +++ b/hash/smc777.xml @@ -881,7 +881,7 @@ Untested [FDC] saving <year>1985</year> <publisher>ソニー・クリエイティブプロダクツ (Sony Creative Products)</publisher> <notes><![CDATA[ -[FDC] "Err (BS) on A:" +[FDC] "Err (BS) on A:" after Sony logo ]]></notes> <info name="alt_title" value="リメインズロボット"/> <info name="serial" value="SMW-G723D"/> diff --git a/src/mame/sony/smc777.cpp b/src/mame/sony/smc777.cpp index d70ba9bfa13..e1fd246ea28 100644 --- a/src/mame/sony/smc777.cpp +++ b/src/mame/sony/smc777.cpp @@ -142,7 +142,7 @@ private: required_device<cpu_device> m_maincpu; required_device<screen_device> m_screen; required_device<mc6845_device> m_crtc; - required_device<mb8876_device> m_fdc; + required_device<mb8877_device> m_fdc; required_device_array<floppy_connector, 2> m_floppy; required_device<ls259_device> m_ioctrl; required_device<beep_device> m_beeper; @@ -448,12 +448,12 @@ void smc777_state::fbuf_w(offs_t offset, uint8_t data) uint8_t smc777_state::fdc_r(offs_t offset) { - return m_fdc->read(offset) ^ 0xff; + return m_fdc->read(offset); } void smc777_state::fdc_w(offs_t offset, uint8_t data) { - m_fdc->write(offset, data ^ 0xff); + m_fdc->write(offset, data); } uint8_t smc777_state::fdc1_fast_status_r() @@ -1205,21 +1205,21 @@ void smc777_state::smc777(machine_config &config) m_crtc->out_vsync_callback().set(FUNC(smc777_state::vsync_w)); m_crtc->out_de_callback().set([this] (int state) { m_de = state << 7; }); - // TODO: MB8877A really - MB8876(config, m_fdc, MASTER_CLOCK / 32); // divider not confirmed + // Confirmed MB8877A + MB8877(config, m_fdc, MASTER_CLOCK / 32); // divider not confirmed m_fdc->intrq_wr_callback().set(FUNC(smc777_state::fdc_intrq_w)); m_fdc->drq_wr_callback().set(FUNC(smc777_state::fdc_drq_w)); - // does it really support 16 of them? FLOPPY_CONNECTOR(config, m_floppy[0], smc777_floppies, "ssdd", floppy_image_device::default_mfm_floppy_formats); - FLOPPY_CONNECTOR(config, m_floppy[1], smc777_floppies, "ssdd", floppy_image_device::default_mfm_floppy_formats); + // by default it has no 2nd floppy + FLOPPY_CONNECTOR(config, m_floppy[1], smc777_floppies, nullptr, floppy_image_device::default_mfm_floppy_formats); SOFTWARE_LIST(config, "flop_list").set_original("smc777"); QUICKLOAD(config, "quickload", "com,cpm", attotime::from_seconds(3)).set_load_callback(FUNC(smc777_state::quickload_cb)); // No clue about bundled defaults but: // - dragon expects joystick in port 1 - // - comp2:SMCPAINT expects mouse in port 2 + // - comp2:SMCPAINT/smcpaint expects mouse in port 2 MSX_GENERAL_PURPOSE_PORT(config, m_joystick_port[0], msx_general_purpose_port_devices, "joystick"); MSX_GENERAL_PURPOSE_PORT(config, m_joystick_port[1], msx_general_purpose_port_devices, "mouse"); |
