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/machine/74153.c | |
parent | 5367018ea15c35c82b5f19d0d67eda4553687f40 (diff) |
Removed template usage for legacy devices, to make my future work easier (nw)
Diffstat (limited to 'src/emu/machine/74153.c')
-rw-r--r-- | src/emu/machine/74153.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/emu/machine/74153.c b/src/emu/machine/74153.c index cbb44d251ff..1a7f5d27954 100644 --- a/src/emu/machine/74153.c +++ b/src/emu/machine/74153.c @@ -176,13 +176,21 @@ static DEVICE_RESET( ttl74153 ) state->last_output[1] = -1; } +DEVICE_GET_INFO(ttl74153) +{ + switch (state) + { + + case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(ttl74153_state); break; + + case DEVINFO_INT_INLINE_CONFIG_BYTES: info->i = sizeof(ttl74153_config); break; -static const char DEVTEMPLATE_SOURCE[] = __FILE__; + case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(ttl74153); break; -#define DEVTEMPLATE_ID(p,s) p##ttl74153##s -#define DEVTEMPLATE_FEATURES DT_HAS_START | DT_HAS_RESET | DT_HAS_INLINE_CONFIG -#define DEVTEMPLATE_NAME "74153" -#define DEVTEMPLATE_FAMILY "TTL" -#include "devtempl.h" + case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(ttl74153); break; + + case DEVINFO_STR_NAME: strcpy(info->s, "74153"); break; + } +} DEFINE_LEGACY_DEVICE(TTL74153, ttl74153); |