mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
This gives a dummy (skeleton) device file to start moving some cdc stuff into so that it can then be shared with neocd. From Haze (nw)
This commit is contained in:
parent
d94c125eb3
commit
a9eb88efea
6 changed files with 57 additions and 1 deletions
2
.gitattributes
vendored
2
.gitattributes
vendored
|
@ -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
|
||||
|
|
|
@ -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 \
|
||||
|
|
27
src/emu/machine/lc89510.c
Normal file
27
src/emu/machine/lc89510.c
Normal file
|
@ -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::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()
|
||||
{
|
||||
|
||||
}
|
||||
|
24
src/emu/machine/lc89510.h
Normal file
24
src/emu/machine/lc89510.h
Normal file
|
@ -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;
|
||||
|
||||
|
||||
|
|
@ -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 )
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Sega CD / Mega CD */
|
||||
|
||||
|
||||
#include "machine/lc89510.h"
|
||||
|
||||
class sega_segacd_device : public device_t
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue