diff options
author | 2012-08-30 07:34:38 +0000 | |
---|---|---|
committer | 2012-08-30 07:34:38 +0000 | |
commit | 34f2444d32be90c9d4bedc9892dcf9b727c8fa90 (patch) | |
tree | 6e9c30c810d8957125d41f2203ff111a48f6cbec /src/emu/sound/mos6560.c | |
parent | 5367018ea15c35c82b5f19d0d67eda4553687f40 (diff) |
Removed template usage for legacy devices, to make my future work easier (nw)
Diffstat (limited to 'src/emu/sound/mos6560.c')
-rw-r--r-- | src/emu/sound/mos6560.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/emu/sound/mos6560.c b/src/emu/sound/mos6560.c index cd47b58b8f3..073ef0e6e59 100644 --- a/src/emu/sound/mos6560.c +++ b/src/emu/sound/mos6560.c @@ -944,13 +944,18 @@ static DEVICE_RESET( mos6560 ) Device definition -------------------------------------------------*/ -static const char DEVTEMPLATE_SOURCE[] = __FILE__; +DEVICE_GET_INFO(mos6560) +{ + switch (state) + { + case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(mos6560_state); break; + + case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(mos6560); break; -#define DEVTEMPLATE_ID(p,s) p##mos6560##s -#define DEVTEMPLATE_FEATURES DT_HAS_START | DT_HAS_RESET -#define DEVTEMPLATE_NAME "MOS 6560 / 6561 VIC" -#define DEVTEMPLATE_FAMILY "MOS Video Interface Chip" -#include "devtempl.h" + case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(mos6560); break; + case DEVINFO_STR_NAME: strcpy(info->s, "MOS 6560 / 6561 VIC"); break; + } +} DEFINE_LEGACY_SOUND_DEVICE(MOS656X, mos6560); |