mirror of
https://github.com/holub/mame
synced 2025-10-05 08:41:31 +03:00
esq1.cpp: This is actually 2681 as well (nw)
This commit is contained in:
parent
b37f4794d8
commit
9ebe37ae55
@ -396,7 +396,7 @@ public:
|
||||
{ }
|
||||
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<mc68681_device> m_duart;
|
||||
required_device<scn2681_device> m_duart;
|
||||
required_device<esq1_filters> m_filters;
|
||||
optional_device<wd1772_device> m_fdc;
|
||||
optional_device<esqpanel2x40_device> m_panel;
|
||||
@ -502,7 +502,7 @@ static ADDRESS_MAP_START( esq1_map, AS_PROGRAM, 8, esq1_state )
|
||||
AM_RANGE(0x0000, 0x1fff) AM_RAM // OSRAM
|
||||
AM_RANGE(0x4000, 0x5fff) AM_RAM // SEQRAM
|
||||
AM_RANGE(0x6000, 0x63ff) AM_DEVREADWRITE("es5503", es5503_device, read, write)
|
||||
AM_RANGE(0x6400, 0x640f) AM_DEVREADWRITE("duart", mc68681_device, read, write)
|
||||
AM_RANGE(0x6400, 0x640f) AM_DEVREADWRITE("duart", scn2681_device, read, write)
|
||||
AM_RANGE(0x6800, 0x68ff) AM_WRITE(analog_w)
|
||||
AM_RANGE(0x7000, 0x7fff) AM_ROMBANK("osbank")
|
||||
AM_RANGE(0x8000, 0xffff) AM_ROM AM_REGION("osrom", 0x8000) // OS "high" ROM is always mapped here
|
||||
@ -513,7 +513,7 @@ static ADDRESS_MAP_START( sq80_map, AS_PROGRAM, 8, esq1_state )
|
||||
AM_RANGE(0x4000, 0x5fff) AM_RAM // SEQRAM
|
||||
// AM_RANGE(0x4000, 0x5fff) AM_READWRITE(seqdosram_r, seqdosram_w)
|
||||
AM_RANGE(0x6000, 0x63ff) AM_DEVREADWRITE("es5503", es5503_device, read, write)
|
||||
AM_RANGE(0x6400, 0x640f) AM_DEVREADWRITE("duart", mc68681_device, read, write)
|
||||
AM_RANGE(0x6400, 0x640f) AM_DEVREADWRITE("duart", scn2681_device, read, write)
|
||||
AM_RANGE(0x6800, 0x68ff) AM_WRITE(analog_w)
|
||||
AM_RANGE(0x6c00, 0x6dff) AM_WRITE(mapper_w)
|
||||
AM_RANGE(0x6e00, 0x6fff) AM_READWRITE(wd1772_r, wd1772_w)
|
||||
@ -582,7 +582,7 @@ static MACHINE_CONFIG_START( esq1 )
|
||||
MCFG_CPU_ADD("maincpu", M6809E, 4000000) // how fast is it?
|
||||
MCFG_CPU_PROGRAM_MAP(esq1_map)
|
||||
|
||||
MCFG_DEVICE_ADD("duart", MC68681, 4000000)
|
||||
MCFG_DEVICE_ADD("duart", SCN2681, 4000000)
|
||||
MCFG_MC68681_SET_EXTERNAL_CLOCKS(500000, 500000, 1000000, 1000000)
|
||||
MCFG_MC68681_IRQ_CALLBACK(INPUTLINE("maincpu", M6809_IRQ_LINE))
|
||||
MCFG_MC68681_A_TX_CALLBACK(WRITELINE(esq1_state, duart_tx_a))
|
||||
@ -590,10 +590,10 @@ static MACHINE_CONFIG_START( esq1 )
|
||||
MCFG_MC68681_OUTPORT_CALLBACK(WRITE8(esq1_state, duart_output))
|
||||
|
||||
MCFG_ESQPANEL2X40_ADD("panel")
|
||||
MCFG_ESQPANEL_TX_CALLBACK(DEVWRITELINE("duart", mc68681_device, rx_b_w))
|
||||
MCFG_ESQPANEL_TX_CALLBACK(DEVWRITELINE("duart", scn2681_device, rx_b_w))
|
||||
|
||||
MCFG_MIDI_PORT_ADD("mdin", midiin_slot, "midiin")
|
||||
MCFG_MIDI_RX_HANDLER(DEVWRITELINE("duart", mc68681_device, rx_a_w)) // route MIDI Tx send directly to 68681 channel A Rx
|
||||
MCFG_MIDI_RX_HANDLER(DEVWRITELINE("duart", scn2681_device, rx_a_w)) // route MIDI Tx send directly to 68681 channel A Rx
|
||||
|
||||
MCFG_MIDI_PORT_ADD("mdout", midiout_slot, "midiout")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user