Skip to content

Commit cdbc92d

Browse files
committed
misc swx00 fixes
1 parent 200a140 commit cdbc92d

File tree

5 files changed

+17
-5
lines changed

5 files changed

+17
-5
lines changed

src/devices/bus/plg1x0/plg150-ap.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,16 @@ void plg150_ap_device::midi_rx(int state)
5353
void plg150_ap_device::map(address_map &map)
5454
{
5555
map(0x000000, 0x07ffff).rom().region("cpu", 0);
56+
map(0x200000, 0x207fff).ram();
5657
}
5758

5859
void plg150_ap_device::device_add_mconfig(machine_config &config)
5960
{
60-
SWX00(config, m_cpu, 8.4672_MHz_XTAL, 1);
61+
SWX00(config, m_cpu, 8.4672_MHz_XTAL*2, 1);
6162
m_cpu->set_addrmap(AS_PROGRAM, &plg150_ap_device::map);
6263
m_cpu->write_sci_tx<1>().set([this] (int state) { m_connector->do_midi_tx(state); });
64+
m_cpu->sci_set_external_clock_period(0, attotime::from_hz(500000));
65+
m_cpu->sci_set_external_clock_period(1, attotime::from_hz(500000));
6366
}
6467

6568
ROM_START( plg150_ap )

src/devices/cpu/h8/swx00.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ DEFINE_DEVICE_TYPE(SWX00, swx00_device, "swx00", "Yamaha SWX00")
77

88
swx00_device::swx00_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock, u8 mode) :
99
h8s2000_device(mconfig, SWX00, tag, owner, clock, address_map_constructor(FUNC(swx00_device::map), this)),
10+
device_mixer_interface(mconfig, *this, 2),
1011
m_intc(*this, "intc"),
1112
m_adc(*this, "adc"),
1213
m_dma(*this, "dma"),
@@ -315,6 +316,8 @@ void swx00_device::device_add_mconfig(machine_config &config)
315316

316317
SWX00_SOUND(config, m_swx00);
317318
m_swx00->set_space(DEVICE_SELF, AS_S);
319+
m_swx00->add_route(0, DEVICE_SELF, 1.0, AUTO_ALLOC_INPUT, 0);
320+
m_swx00->add_route(1, DEVICE_SELF, 1.0, AUTO_ALLOC_INPUT, 1);
318321
}
319322

320323
device_memory_interface::space_config_vector swx00_device::memory_space_config() const

src/devices/cpu/h8/swx00.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#include "h8_watchdog.h"
4040
#include "sound/swx00.h"
4141

42-
class swx00_device : public h8s2000_device {
42+
class swx00_device : public h8s2000_device, public device_mixer_interface {
4343
public:
4444
enum {
4545
AS_C = AS_PROGRAM,

src/mame/yamaha/ymmu15.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ void mu15_state::mu15(machine_config &config)
176176
m_maincpu->set_addrmap(swx00_device::AS_C, &mu15_state::c_map);
177177
m_maincpu->set_addrmap(swx00_device::AS_S, &mu15_state::s_map);
178178

179+
m_maincpu->add_route(0, "lspeaker", 1.0);
180+
m_maincpu->add_route(1, "rspeaker", 1.0);
181+
179182
// Nothing connected to sclki, yet...
180183
m_maincpu->sci_set_external_clock_period(0, attotime::from_hz(500000));
181184
m_maincpu->sci_set_external_clock_period(1, attotime::from_hz(500000));

src/mame/yamaha/ympsr340.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,9 @@ void psr340_state::psr340(machine_config &config)
223223
m_maincpu->read_pad().set(FUNC(psr340_state::pad_r));
224224
m_maincpu->write_txd().set(FUNC(psr340_state::txd_w));
225225

226+
m_maincpu->add_route(0, "lspeaker", 1.0);
227+
m_maincpu->add_route(1, "rspeaker", 1.0);
228+
226229
// mks3 is connected to sclki, sync comms on sci1
227230
// something generates 500K for sci0, probably internal to the swx00
228231
m_maincpu->sci_set_external_clock_period(0, attotime::from_hz(500000));
@@ -233,7 +236,7 @@ void psr340_state::psr340(machine_config &config)
233236
m_mks3->write_da().set(m_maincpu, FUNC(swx00_device::sci_rx_w<1>));
234237
m_mks3->write_clk().set(m_maincpu, FUNC(swx00_device::sci_clk_w<1>));
235238

236-
KS0066(config, m_lcdc, 270'000); // 91K resistor
239+
KS0066(config, m_lcdc, 270000); // 91K resistor
237240
m_lcdc->set_default_bios_tag("f05");
238241
m_lcdc->set_lcd_size(2, 40);
239242

@@ -260,8 +263,8 @@ ROM_START( psr340 )
260263
ROM_REGION16_BE(0x200000, "wave", 0)
261264
ROM_LOAD("xv89810.bin", 0x000000, 0x200000, CRC(10e68363) SHA1(5edee814bf07c49088da44474fdd5c817e7c5af0))
262265

263-
ROM_REGION(0x61809, "screen", 0)
264-
ROM_LOAD("psr340-lcd.svg", 0, 0x61809, CRC(f9d11ca6) SHA1(da036d713c73d6b452a3e2d2b2234d473422d5fb))
266+
ROM_REGION(399369, "screen", 0)
267+
ROM_LOAD("psr340-lcd.svg", 0, 399369, CRC(f9d11ca6) SHA1(da036d713c73d6b452a3e2d2b2234d473422d5fb))
265268
ROM_END
266269

267270
} // anonymous namespace

0 commit comments

Comments
 (0)