From 7b1aa92c4d179d922b22074c74dd11e30d9d4946 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Mon, 23 Nov 2009 11:19:15 +0000 Subject: INS 8060 SC/MP II support (using clock divider 2), main model renamed to INS 8050 SC/MP --- src/emu/cpu/scmp/scmp.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'src/emu/cpu/scmp/scmp.c') diff --git a/src/emu/cpu/scmp/scmp.c b/src/emu/cpu/scmp/scmp.c index 529a4a28ad2..f93a70c9021 100644 --- a/src/emu/cpu/scmp/scmp.c +++ b/src/emu/cpu/scmp/scmp.c @@ -642,7 +642,7 @@ CPU_GET_INFO( scmp ) case CPUINFO_PTR_STATE_TABLE: info->state_table = &cpustate->state; break; /* --- the following bits of info are returned as NULL-terminated strings --- */ - case DEVINFO_STR_NAME: strcpy(info->s, "SC/MP"); break; + case DEVINFO_STR_NAME: strcpy(info->s, "INS 8050 SC/MP"); break; case DEVINFO_STR_FAMILY: strcpy(info->s, "National Semiconductor SC/MP"); break; case DEVINFO_STR_VERSION: strcpy(info->s, "1.0"); break; case DEVINFO_STR_SOURCE_FILE: strcpy(info->s, __FILE__); break; @@ -661,3 +661,20 @@ CPU_GET_INFO( scmp ) break; } } + +/************************************************************************** + * CPU-specific set_info + **************************************************************************/ +CPU_GET_INFO( ins8060 ) +{ + switch (state) + { + /* --- the following bits of info are returned as pointers to data or functions --- */ + case CPUINFO_INT_CLOCK_DIVIDER: info->i = 2; break; + + /* --- the following bits of info are returned as NULL-terminated strings --- */ + case DEVINFO_STR_NAME: strcpy(info->s, "INS 8060 SC/MP II"); break; + + default: CPU_GET_INFO_CALL(scmp); break; + } +} -- cgit v1.2.3-70-g09d2