315-5195 mapper has same clock as CPU (nw)

This commit is contained in:
AJR 2018-03-04 09:39:37 -05:00
parent 52a1c188e5
commit f484b49573
4 changed files with 13 additions and 7 deletions

View File

@ -1164,7 +1164,9 @@ MACHINE_CONFIG_START(segaorun_state::outrun_base)
MCFG_I8255_IN_PORTC_CB(READ8(segaorun_state, unknown_portc_r))
MCFG_I8255_OUT_PORTC_CB(WRITE8(segaorun_state, video_control_w))
MCFG_SEGA_315_5195_MAPPER_ADD("mapper", "maincpu", segaorun_state, memory_mapper)
MCFG_DEVICE_ADD("mapper", SEGA_315_5195_MEM_MAPPER, MASTER_CLOCK/4)
MCFG_SEGA_315_5195_CPU("maincpu")
MCFG_SEGA_315_5195_MAPPER_HANDLER(segaorun_state, memory_mapper)
MCFG_SEGA_315_5195_PBF_CALLBACK(INPUTLINE("soundcpu", INPUT_LINE_NMI))
// video hardware

View File

@ -881,7 +881,7 @@ S11 S13 S15 S17 |EPR12194 - - - EPR12195 - -
// CONSTANTS
//**************************************************************************
#define MASTER_CLOCK_10MHz XTAL(10'000'000)
#define MASTER_CLOCK_10MHz XTAL(20'000'000) / 2
#define MASTER_CLOCK_8MHz XTAL(8'000'000)
#define MASTER_CLOCK_25MHz XTAL(25'174'800)
@ -3710,7 +3710,9 @@ MACHINE_CONFIG_START(segas16b_state::system16b)
MCFG_NVRAM_ADD_0FILL("nvram")
MCFG_SEGA_315_5195_MAPPER_ADD("mapper", "maincpu", segas16b_state, memory_mapper)
MCFG_DEVICE_ADD("mapper", SEGA_315_5195_MEM_MAPPER, MASTER_CLOCK_10MHz)
MCFG_SEGA_315_5195_CPU("maincpu")
MCFG_SEGA_315_5195_MAPPER_HANDLER(segas16b_state, memory_mapper)
MCFG_SEGA_315_5195_PBF_CALLBACK(INPUTLINE("soundcpu", 0))
// video hardware

View File

@ -1307,7 +1307,9 @@ MACHINE_CONFIG_START(segas18_state::system18)
MCFG_NVRAM_ADD_0FILL("nvram")
MCFG_SEGA_315_5195_MAPPER_ADD("mapper", "maincpu", segas18_state, memory_mapper)
MCFG_DEVICE_ADD("mapper", SEGA_315_5195_MEM_MAPPER, 10000000)
MCFG_SEGA_315_5195_CPU("maincpu")
MCFG_SEGA_315_5195_MAPPER_HANDLER(segas18_state, memory_mapper)
MCFG_SEGA_315_5195_PBF_CALLBACK(INPUTLINE("soundcpu", INPUT_LINE_NMI))
MCFG_DEVICE_ADD("io", SEGA_315_5296, 16000000)

View File

@ -21,9 +21,9 @@
// INTERFACE CONFIGURATION MACROS
//**************************************************************************
#define MCFG_SEGA_315_5195_MAPPER_ADD(_tag, _cputag, _class, _mapper) \
MCFG_DEVICE_ADD(_tag, SEGA_315_5195_MEM_MAPPER, 0) \
downcast<sega_315_5195_mapper_device &>(*device).set_cputag("^" _cputag); \
#define MCFG_SEGA_315_5195_CPU(_cputag) \
downcast<sega_315_5195_mapper_device &>(*device).set_cputag("^" _cputag);
#define MCFG_SEGA_315_5195_MAPPER_HANDLER(_class, _mapper) \
downcast<sega_315_5195_mapper_device &>(*device).set_mapper(sega_315_5195_mapper_device::mapper_delegate(&_class::_mapper, #_class "::" #_mapper, nullptr, (_class *)nullptr));
#define MCFG_SEGA_315_5195_PBF_CALLBACK(_devcb) \
devcb = &downcast<sega_315_5195_mapper_device &>(*device).set_pbf_callback(DEVCB_##_devcb);