Previous 199869 Revisions Next

r17957 Monday 17th September, 2012 at 03:48:56 UTC by Tafoid
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)
[src/emu]emu.mak
[src/emu/machine]lc89510.c* lc89510.h*
[src/mame/machine]megacd.c megacd.h

trunk/src/mame/machine/megacd.c
r17956r17957
4646   MCFG_CPU_ADD("segacd_68k", M68000, SEGACD_CLOCK ) /* 12.5 MHz */
4747   MCFG_CPU_PROGRAM_MAP(segacd_map)
4848
49   MCFG_DEVICE_ADD("cdc", LC89510, 0) // cd controller
50
4951   MCFG_TIMER_ADD("sw_timer", NULL) //stopwatch timer
5052
5153   MCFG_DEFAULT_LAYOUT( layout_megacd )
trunk/src/mame/machine/megacd.h
r17956r17957
11/* Sega CD / Mega CD */
22
3#include "machine/lc89510.h"
34
4
55class sega_segacd_device : public device_t
66{
77public:
trunk/src/emu/emu.mak
r17956r17957
199199   $(EMUMACHINE)/k056230.o      \
200200   $(EMUMACHINE)/latch8.o      \
201201   $(EMUMACHINE)/laserdsc.o   \
202   $(EMUMACHINE)/lc89510.o      \
202203   $(EMUMACHINE)/ldstub.o      \
203204   $(EMUMACHINE)/ldpr8210.o   \
204205   $(EMUMACHINE)/ldv1000.o      \
trunk/src/emu/machine/lc89510.c
r0r17957
1/* LC89510 CD Controller
2 based off old NeoCD emulator code, adapted to SegaCD, needs reworking to work with NeoCD again
3
4*/
5
6
7#include "emu.h"
8#include "lc89510.h"
9
10const device_type LC89510 = &device_creator<lc89510_device>;
11
12lc89510_device::lc89510_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
13   : device_t(mconfig, LC89510, "lc89510_device", tag, owner, clock)
14{
15}
16
17
18void lc89510_device::device_start()
19{
20
21}
22
23void lc89510_device::device_reset()
24{
25
26}
27
trunk/src/emu/machine/lc89510.h
r0r17957
1
2
3
4class lc89510_device : public device_t
5{
6public:
7   lc89510_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
8
9
10
11protected:
12   virtual void device_start();
13   virtual void device_reset();
14
15private:
16
17
18};
19
20
21extern const device_type LC89510;
22
23
24

Previous 199869 Revisions Next


© 1997-2024 The MAME Team