mirror of
https://github.com/holub/mame
synced 2025-10-08 17:37:56 +03:00
Moved internal SCUDSP program/data maps into CPU core (nw)
This commit is contained in:
parent
9dcdae1f48
commit
860bae6ac1
@ -1009,13 +1009,21 @@ void scudsp_cpu_device::execute_set_input(int irqline, int state)
|
||||
}
|
||||
}
|
||||
|
||||
static ADDRESS_MAP_START( program_map, AS_PROGRAM, 32, scudsp_cpu_device )
|
||||
AM_RANGE(0x00, 0xff) AM_RAM
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( data_map, AS_DATA, 32, scudsp_cpu_device )
|
||||
AM_RANGE(0x00, 0xff) AM_RAM
|
||||
ADDRESS_MAP_END
|
||||
|
||||
scudsp_cpu_device::scudsp_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
|
||||
: cpu_device(mconfig, SCUDSP, tag, owner, clock)
|
||||
, m_out_irq_cb(*this)
|
||||
, m_in_dma_cb(*this)
|
||||
, m_out_dma_cb(*this)
|
||||
, m_program_config("program", ENDIANNESS_BIG, 32, 8, -2)
|
||||
, m_data_config("data", ENDIANNESS_BIG, 32, 8, -2)
|
||||
, m_program_config("program", ENDIANNESS_BIG, 32, 8, -2, ADDRESS_MAP_NAME(program_map))
|
||||
, m_data_config("data", ENDIANNESS_BIG, 32, 8, -2, ADDRESS_MAP_NAME(data_map))
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -162,14 +162,6 @@ void sega_scu_device::static_set_hostcpu(device_t &device, const char *cputag)
|
||||
// configuration addiitons
|
||||
//-------------------------------------------------
|
||||
|
||||
static ADDRESS_MAP_START( scudsp_mem, AS_PROGRAM, 32, sega_scu_device )
|
||||
AM_RANGE(0x00, 0xff) AM_RAM
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( scudsp_data, AS_DATA, 32, sega_scu_device )
|
||||
AM_RANGE(0x00, 0xff) AM_RAM
|
||||
ADDRESS_MAP_END
|
||||
|
||||
READ16_MEMBER(sega_scu_device::scudsp_dma_r)
|
||||
{
|
||||
//address_space &program = m_maincpu->space(AS_PROGRAM);
|
||||
@ -193,8 +185,6 @@ WRITE16_MEMBER(sega_scu_device::scudsp_dma_w)
|
||||
|
||||
MACHINE_CONFIG_MEMBER(sega_scu_device::device_add_mconfig)
|
||||
MCFG_CPU_ADD("scudsp", SCUDSP, XTAL_57_2727MHz/4) // 14 MHz
|
||||
MCFG_CPU_PROGRAM_MAP(scudsp_mem)
|
||||
MCFG_CPU_DATA_MAP(scudsp_data)
|
||||
MCFG_SCUDSP_OUT_IRQ_CB(DEVWRITELINE(DEVICE_SELF, sega_scu_device, scudsp_end_w))
|
||||
MCFG_SCUDSP_IN_DMA_CB(READ16(sega_scu_device, scudsp_dma_r))
|
||||
MCFG_SCUDSP_OUT_DMA_CB(WRITE16(sega_scu_device, scudsp_dma_w))
|
||||
|
Loading…
Reference in New Issue
Block a user