Skip to content

Commit

Permalink
tms52xx: Remove legacy spchrom implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
mizapf committed Feb 27, 2025
1 parent 16817fb commit d96222a
Show file tree
Hide file tree
Showing 13 changed files with 183 additions and 330 deletions.
2 changes: 0 additions & 2 deletions scripts/src/sound.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1123,8 +1123,6 @@ if (SOUNDS["TMS5220"]~=null) then
MAME_DIR .. "src/devices/sound/tms5220.cpp",
MAME_DIR .. "src/devices/sound/tms5220.h",
MAME_DIR .. "src/devices/sound/tms5110r.hxx",
MAME_DIR .. "src/devices/machine/spchrom.cpp",
MAME_DIR .. "src/devices/machine/spchrom.h",
}
end

Expand Down
10 changes: 7 additions & 3 deletions src/devices/bus/electron/m2105.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,20 @@ void electron_m2105_device::device_add_mconfig(machine_config &config)
output_latch_device &latch(OUTPUT_LATCH(config, "cent_data_out"));
centronics.set_output_latch(latch);

SPEECHROM(config, "vsm", 0).set_reverse_bit_order(true);

tms5220_device &tms(TMS5220(config, "vsp", 640000));
tms.set_speechrom_tag("vsm");
tms.ready_cb().set(m_via[0], FUNC(via6522_device::write_ca1));
tms.ready_cb().append(m_via[0], FUNC(via6522_device::write_pb2));
tms.irq_cb().set(m_via[0], FUNC(via6522_device::write_ca2));
tms.irq_cb().append(m_via[0], FUNC(via6522_device::write_pb3));
tms.add_route(ALL_OUTPUTS, "mono", 0.5);

TMS6100(config, "vsm", 0);
tms.m0_cb().set("vsm", FUNC(tms6100_device::m0_w));
tms.m1_cb().set("vsm", FUNC(tms6100_device::m1_w));
tms.addr_cb().set("vsm", FUNC(tms6100_device::add_w));
tms.data_cb().set("vsm", FUNC(tms6100_device::data_line_r));
tms.romclk_cb().set("vsm", FUNC(tms6100_device::clk_w));

SPEAKER(config, "mono").front_center();
}

Expand Down
1 change: 0 additions & 1 deletion src/devices/bus/mpf1/ssb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include "emu.h"
#include "ssb.h"
#include "machine/spchrom.h"
#include "sound/tms5220.h"
#include "bus/generic/carts.h"
#include "bus/generic/slot.h"
Expand Down
1 change: 1 addition & 0 deletions src/devices/bus/ti99/internal/998board.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "machine/ram.h"
#include "machine/tmc0430.h"
#include "machine/tms9901.h"
#include "machine/tms6100.h"
#include "sound/sn76496.h"
#include "sound/tms5220.h"
#include "video/tms9928a.h"
Expand Down
20 changes: 7 additions & 13 deletions src/devices/bus/ti99/peb/spchsyn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@

#include "emu.h"
#include "spchsyn.h"

#include "machine/spchrom.h"
#include "speaker.h"

#define LOG_WARN (1U << 1) // Warnings
Expand Down Expand Up @@ -154,22 +152,18 @@ ROM_END

void ti_speech_synthesizer_device::device_add_mconfig(machine_config& config)
{
SPEECHROM(config, "vsm", 0).set_reverse_bit_order(true);
SPEAKER(config, "speech_out").front_center();
CD2501E(config, m_vsp, 640000L);
m_vsp->set_speechrom_tag("vsm");

m_vsp->ready_cb().set(FUNC(ti_speech_synthesizer_device::speech_ready));
m_vsp->add_route(ALL_OUTPUTS, "speech_out", 0.50);

/*
// FIXME: Make it work. Guess we need two VSM circuits @16K.
TMS6100(config, "vsm", 640_kHz_XTAL/4);
m_vsp->m0_cb().set("vsm", FUNC(tms6100_device::m0_w));
m_vsp->m1_cb().set("vsm", FUNC(tms6100_device::m1_w));
m_vsp->addr_cb().set("vsm", FUNC(tms6100_device::add_w));
m_vsp->data_cb().set("vsm", FUNC(tms6100_device::data_line_r));
m_vsp->romclk_cb().set("vsm", FUNC(tms6100_device::clk_w));
*/
TMS6100(config, "vsm", 0);
m_vsp->m0_cb().set("vsm", FUNC(tms6100_device::m0_w));
m_vsp->m1_cb().set("vsm", FUNC(tms6100_device::m1_w));
m_vsp->addr_cb().set("vsm", FUNC(tms6100_device::add_w));
m_vsp->data_cb().set("vsm", FUNC(tms6100_device::data_line_r));
m_vsp->romclk_cb().set("vsm", FUNC(tms6100_device::clk_w));
}

INPUT_PORTS_START( ti99_speech )
Expand Down
139 changes: 0 additions & 139 deletions src/devices/machine/spchrom.cpp

This file was deleted.

43 changes: 0 additions & 43 deletions src/devices/machine/spchrom.h

This file was deleted.

Loading

0 comments on commit d96222a

Please sign in to comment.