diff options
| author | 2025-08-19 15:55:09 +0200 | |
|---|---|---|
| committer | 2025-08-19 16:07:38 +0200 | |
| commit | 0fbeb6294a26e227191b962b49da95a2d01472db (patch) | |
| tree | 90e2fe496d2b7f78e69228957b77744d1b471e26 | |
| parent | 3ecb4d947dfd9aa918f7d5c6fc4fedda1cb75dcf (diff) | |
devices/bus/st: minor note shuffling
| -rw-r--r-- | src/devices/bus/st/replay.cpp | 6 | ||||
| -rw-r--r-- | src/devices/bus/st/rom.cpp | 9 | ||||
| -rw-r--r-- | src/devices/bus/st/stcart.cpp | 4 |
3 files changed, 8 insertions, 11 deletions
diff --git a/src/devices/bus/st/replay.cpp b/src/devices/bus/st/replay.cpp index 15dc3aacf97..7a09861bde8 100644 --- a/src/devices/bus/st/replay.cpp +++ b/src/devices/bus/st/replay.cpp @@ -6,9 +6,6 @@ // A 8-bit mono DAC and a 8-bit mono ADC on a cartridge, with a vague // lowpass filter. -// A peculiarity of the ST cartridge port is that it's readonly. So -// writing to the DAC is done by reading at an appropriate address. - #include "emu.h" #include "replay.h" @@ -58,7 +55,8 @@ st_replay_device::~st_replay_device() u16 st_replay_device::dac_w(offs_t data) { - m_dac->write(data); + if (!machine().side_effects_disabled()) + m_dac->write(data); return 0xffff; } diff --git a/src/devices/bus/st/rom.cpp b/src/devices/bus/st/rom.cpp index e49a94bcc10..7d7a9798b1a 100644 --- a/src/devices/bus/st/rom.cpp +++ b/src/devices/bus/st/rom.cpp @@ -1,13 +1,7 @@ // license:BSD-3-Clause // copyright-holders: Olivier Galibert -// Generic ST Rom cartridge - -// A 8-bit mono DAC and a 8-bit mono ADC on a cartridge, with a vague -// lowpass filter. - -// A peculiarity of the ST cartridge port is that it's readonly. So -// writing to the DAC is done by reading at an appropriate address. +// Generic ST ROM cartridge #include "emu.h" #include "rom.h" @@ -31,6 +25,7 @@ protected: virtual bool is_creatable() const noexcept override { return false; } virtual bool is_reset_on_load() const noexcept override { return true; } virtual const char *file_extensions() const noexcept override { return "bin,rom,stc"; } + virtual const char *image_interface() const noexcept override { return "st_cart"; } virtual const char *image_type_name() const noexcept override { return "romimage"; } virtual const char *image_brief_type_name() const noexcept override { return "rom"; } virtual std::pair<std::error_condition, std::string> call_load() override; diff --git a/src/devices/bus/st/stcart.cpp b/src/devices/bus/st/stcart.cpp index 1847f4e66cd..cdd8ef02ab8 100644 --- a/src/devices/bus/st/stcart.cpp +++ b/src/devices/bus/st/stcart.cpp @@ -1,6 +1,10 @@ // license:BSD-3-Clause // copyright-holders:Olivier Galibert +// A peculiarity of the ST cartridge port is that it's readonly. So +// writing (i.e. ROM banking or replay DAC) is done by reading +// at an appropriate address (strobe). + #include "emu.h" #include "stcart.h" |
