diff --git a/.gitattributes b/.gitattributes index ef862c45faa..43eec3cf5a0 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1095,6 +1095,8 @@ src/emu/machine/laserdsc.c svneol=native#text/plain src/emu/machine/laserdsc.h svneol=native#text/plain src/emu/machine/latch8.c svneol=native#text/plain src/emu/machine/latch8.h svneol=native#text/plain +src/emu/machine/lc89510.c svneol=native#text/plain +src/emu/machine/lc89510.h svneol=native#text/plain src/emu/machine/ldpr8210.c svneol=native#text/plain src/emu/machine/ldpr8210.h svneol=native#text/plain src/emu/machine/ldstub.c svneol=native#text/plain diff --git a/src/emu/emu.mak b/src/emu/emu.mak index 4e65cda9391..43d42a2e1e8 100644 --- a/src/emu/emu.mak +++ b/src/emu/emu.mak @@ -199,6 +199,7 @@ EMUMACHINEOBJS = \ $(EMUMACHINE)/k056230.o \ $(EMUMACHINE)/latch8.o \ $(EMUMACHINE)/laserdsc.o \ + $(EMUMACHINE)/lc89510.o \ $(EMUMACHINE)/ldstub.o \ $(EMUMACHINE)/ldpr8210.o \ $(EMUMACHINE)/ldv1000.o \ diff --git a/src/emu/machine/lc89510.c b/src/emu/machine/lc89510.c new file mode 100644 index 00000000000..91e7ccbb934 --- /dev/null +++ b/src/emu/machine/lc89510.c @@ -0,0 +1,27 @@ +/* LC89510 CD Controller + based off old NeoCD emulator code, adapted to SegaCD, needs reworking to work with NeoCD again + +*/ + + +#include "emu.h" +#include "lc89510.h" + +const device_type LC89510 = &device_creator; + +lc89510_device::lc89510_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) + : device_t(mconfig, LC89510, "lc89510_device", tag, owner, clock) +{ +} + + +void lc89510_device::device_start() +{ + +} + +void lc89510_device::device_reset() +{ + +} + diff --git a/src/emu/machine/lc89510.h b/src/emu/machine/lc89510.h new file mode 100644 index 00000000000..2213c166d31 --- /dev/null +++ b/src/emu/machine/lc89510.h @@ -0,0 +1,24 @@ + + + +class lc89510_device : public device_t +{ +public: + lc89510_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + + + +protected: + virtual void device_start(); + virtual void device_reset(); + +private: + + +}; + + +extern const device_type LC89510; + + + diff --git a/src/mame/machine/megacd.c b/src/mame/machine/megacd.c index 182c4b55a3c..76f53a53554 100644 --- a/src/mame/machine/megacd.c +++ b/src/mame/machine/megacd.c @@ -46,6 +46,8 @@ static MACHINE_CONFIG_FRAGMENT( segacd_fragment ) MCFG_CPU_ADD("segacd_68k", M68000, SEGACD_CLOCK ) /* 12.5 MHz */ MCFG_CPU_PROGRAM_MAP(segacd_map) + MCFG_DEVICE_ADD("cdc", LC89510, 0) // cd controller + MCFG_TIMER_ADD("sw_timer", NULL) //stopwatch timer MCFG_DEFAULT_LAYOUT( layout_megacd ) diff --git a/src/mame/machine/megacd.h b/src/mame/machine/megacd.h index ec72a98a16d..7e65c1d9dc1 100644 --- a/src/mame/machine/megacd.h +++ b/src/mame/machine/megacd.h @@ -1,6 +1,6 @@ /* Sega CD / Mega CD */ - +#include "machine/lc89510.h" class sega_segacd_device : public device_t {