mirror of
https://github.com/holub/mame
synced 2025-06-28 07:04:35 +03:00
bbc_voicebox: Callback to CB1 line is inverted.
This commit is contained in:
parent
32e360743a
commit
366a4cc490
@ -41,8 +41,7 @@ void bbc_voicebox_device::device_add_mconfig(machine_config &config)
|
|||||||
{
|
{
|
||||||
SPEAKER(config, "mono").front_center();
|
SPEAKER(config, "mono").front_center();
|
||||||
SP0256(config, m_nsp, 3120000); // TODO: unknown crystal
|
SP0256(config, m_nsp, 3120000); // TODO: unknown crystal
|
||||||
m_nsp->data_request_callback().set(FUNC(bbc_voicebox_device::cb1_w));
|
m_nsp->data_request_callback().set(DEVICE_SELF_OWNER, FUNC(bbc_userport_slot_device::cb1_w)).invert();
|
||||||
m_nsp->standby_callback().set(FUNC(bbc_voicebox_device::cb2_w));
|
|
||||||
m_nsp->add_route(ALL_OUTPUTS, "mono", 1.0);
|
m_nsp->add_route(ALL_OUTPUTS, "mono", 1.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -79,13 +78,3 @@ void bbc_voicebox_device::pb_w(uint8_t data)
|
|||||||
{
|
{
|
||||||
m_nsp->ald_w(data & 0x3f);
|
m_nsp->ald_w(data & 0x3f);
|
||||||
}
|
}
|
||||||
|
|
||||||
WRITE_LINE_MEMBER(bbc_voicebox_device::cb1_w)
|
|
||||||
{
|
|
||||||
m_slot->cb1_w(state);
|
|
||||||
}
|
|
||||||
|
|
||||||
WRITE_LINE_MEMBER(bbc_voicebox_device::cb2_w)
|
|
||||||
{
|
|
||||||
m_slot->cb2_w(state);
|
|
||||||
}
|
|
||||||
|
@ -27,9 +27,6 @@ public:
|
|||||||
// construction/destruction
|
// construction/destruction
|
||||||
bbc_voicebox_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
|
bbc_voicebox_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
|
||||||
|
|
||||||
DECLARE_WRITE_LINE_MEMBER(cb1_w);
|
|
||||||
DECLARE_WRITE_LINE_MEMBER(cb2_w);
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// device-level overrides
|
// device-level overrides
|
||||||
virtual void device_start() override;
|
virtual void device_start() override;
|
||||||
|
Loading…
Reference in New Issue
Block a user