From 8605dd56e4ad913ed49b36df0722e7f7bc16d870 Mon Sep 17 00:00:00 2001 From: hap Date: Sun, 15 Mar 2015 00:39:00 +0100 Subject: [PATCH] added tms1990 device --- src/emu/cpu/tms0980/tms0980.c | 5 +++++ src/emu/cpu/tms0980/tms0980.h | 7 +++++++ src/mess/drivers/ticalc1x.c | 4 ++-- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/emu/cpu/tms0980/tms0980.c b/src/emu/cpu/tms0980/tms0980.c index a81bbf6a886..61f9e4a102e 100644 --- a/src/emu/cpu/tms0980/tms0980.c +++ b/src/emu/cpu/tms0980/tms0980.c @@ -163,6 +163,7 @@ const device_type TMS0980 = &device_creator; // 28-pin DIP, // - 32-term microinstructions PLA between the RAM and ROM, supporting 15 microinstructions // - 16-term output PLA and segment PLA above the RAM (rotate opla 90 degrees) const device_type TMS0970 = &device_creator; // 28-pin DIP, 11 R pins +const device_type TMS1990 = &device_creator; // 28-pin DIP, ? R pins.. // TMS0950 is same? // TMS0270 on the other hand, is a TMS0980 with earrings and a new hat. The new changes look like a quick afterthought, almost hacky @@ -264,6 +265,10 @@ tms0970_cpu_device::tms0970_cpu_device(const machine_config &mconfig, device_typ : tms1000_cpu_device(mconfig, type, name, tag, owner, clock, o_pins, r_pins, pc_bits, byte_bits, x_bits, prgwidth, program, datawidth, data, shortname, source) { } +tms1990_cpu_device::tms1990_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) + : tms0970_cpu_device(mconfig, TMS1990, "TMS1990", tag, owner, clock, 8, 11, 6, 8, 2, 10, ADDRESS_MAP_NAME(program_10bit_8), 6, ADDRESS_MAP_NAME(data_64x4), "tms1990", __FILE__) +{ } + tms0980_cpu_device::tms0980_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : tms0970_cpu_device(mconfig, TMS0980, "TMS0980", tag, owner, clock, 8, 9, 7, 9, 4, 12, ADDRESS_MAP_NAME(program_11bit_9), 8, ADDRESS_MAP_NAME(data_64x9_as4), "tms0980", __FILE__) diff --git a/src/emu/cpu/tms0980/tms0980.h b/src/emu/cpu/tms0980/tms0980.h index 2a44449ba1d..3b7348f0db9 100644 --- a/src/emu/cpu/tms0980/tms0980.h +++ b/src/emu/cpu/tms0980/tms0980.h @@ -312,6 +312,12 @@ protected: virtual void op_tdo(); }; +class tms1990_cpu_device : public tms0970_cpu_device +{ +public: + tms1990_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); +}; + class tms0980_cpu_device : public tms0970_cpu_device { @@ -394,6 +400,7 @@ extern const device_type TMS1370; extern const device_type TMS1400; extern const device_type TMS1470; extern const device_type TMS0970; +extern const device_type TMS1990; extern const device_type TMS0980; extern const device_type TMS0270; diff --git a/src/mess/drivers/ticalc1x.c b/src/mess/drivers/ticalc1x.c index c518365c6b5..7d3182f3068 100644 --- a/src/mess/drivers/ticalc1x.c +++ b/src/mess/drivers/ticalc1x.c @@ -723,7 +723,7 @@ MACHINE_CONFIG_END static MACHINE_CONFIG_DERIVED( lilprof, t9base ) /* basic machine hardware */ - MCFG_CPU_ADD("maincpu", TMS0970, 250000) // guessed + MCFG_CPU_ADD("maincpu", TMS1990, 250000) // guessed // MCFG_TMS1XXX_READ_K_CB(READ8(ticalc1x_state, lilprof_read_k)) // MCFG_TMS1XXX_WRITE_O_CB(WRITE16(ticalc1x_state, lilprof_write_o)) // MCFG_TMS1XXX_WRITE_R_CB(WRITE16(ticalc1x_state, lilprof_write_r)) @@ -852,7 +852,7 @@ COMP( 1974, tisr16, 0, 0, tisr16, tisr16, driver_device, 0, "Texas Instrum COMP( 1976, ti1270, 0, 0, ti1270, ti1270, driver_device, 0, "Texas Instruments", "TI-1270", GAME_SUPPORTS_SAVE | GAME_NO_SOUND_HW ) COMP( 1977, wizatron, 0, 0, wizatron, wizatron, driver_device, 0, "Texas Instruments", "Wiz-A-Tron", GAME_SUPPORTS_SAVE | GAME_NO_SOUND_HW ) -COMP( 1978, lilprof , 0, 0, lilprof, lilprof, driver_device, 0, "Texas Instruments", "Little Professor", GAME_SUPPORTS_SAVE | GAME_NO_SOUND_HW ) // 1978 version, original is from 1976 +COMP( 1978, lilprof , 0, 0, lilprof, lilprof, driver_device, 0, "Texas Instruments", "Little Professor", GAME_SUPPORTS_SAVE | GAME_NO_SOUND_HW | GAME_NOT_WORKING ) // 1978 version, original is from 1976 COMP( 1976, ti30, 0, 0, ti30, ti30, driver_device, 0, "Texas Instruments", "TI-30", GAME_SUPPORTS_SAVE | GAME_NO_SOUND_HW ) COMP( 1977, tiprog, 0, 0, ti30, tiprog, driver_device, 0, "Texas Instruments", "TI Programmer", GAME_SUPPORTS_SAVE | GAME_NO_SOUND_HW )