mirror of
https://github.com/holub/mame
synced 2025-07-05 18:08:04 +03:00
ti74 skeleton driver, i will flesh it out later
This commit is contained in:
parent
9fc6a758ac
commit
5320f39673
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -8368,6 +8368,7 @@ src/mess/drivers/terak.c svneol=native#text/plain
|
|||||||
src/mess/drivers/test_t400.c svneol=native#text/plain
|
src/mess/drivers/test_t400.c svneol=native#text/plain
|
||||||
src/mess/drivers/thomson.c svneol=native#text/plain
|
src/mess/drivers/thomson.c svneol=native#text/plain
|
||||||
src/mess/drivers/ti630.c svneol=native#text/plain
|
src/mess/drivers/ti630.c svneol=native#text/plain
|
||||||
|
src/mess/drivers/ti74.c svneol=native#text/xml
|
||||||
src/mess/drivers/ti85.c svneol=native#text/plain
|
src/mess/drivers/ti85.c svneol=native#text/plain
|
||||||
src/mess/drivers/ti89.c svneol=native#text/plain
|
src/mess/drivers/ti89.c svneol=native#text/plain
|
||||||
src/mess/drivers/ti990_10.c svneol=native#text/plain
|
src/mess/drivers/ti990_10.c svneol=native#text/plain
|
||||||
@ -8764,6 +8765,7 @@ src/mess/layout/sym1.lay svneol=native#text/xml
|
|||||||
src/mess/layout/tavernie.lay svneol=native#text/xml
|
src/mess/layout/tavernie.lay svneol=native#text/xml
|
||||||
src/mess/layout/tec1.lay svneol=native#text/xml
|
src/mess/layout/tec1.lay svneol=native#text/xml
|
||||||
src/mess/layout/tecnbras.lay svneol=native#text/plain
|
src/mess/layout/tecnbras.lay svneol=native#text/plain
|
||||||
|
src/mess/layout/ti74.lay svneol=native#text/xml
|
||||||
src/mess/layout/tk80.lay svneol=native#text/xml
|
src/mess/layout/tk80.lay svneol=native#text/xml
|
||||||
src/mess/layout/tm990189.lay svneol=native#text/xml
|
src/mess/layout/tm990189.lay svneol=native#text/xml
|
||||||
src/mess/layout/tm990189v.lay svneol=native#text/xml
|
src/mess/layout/tm990189v.lay svneol=native#text/xml
|
||||||
|
@ -498,7 +498,7 @@ MACHINE_CONFIG_END
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
|
|
||||||
Game drivers
|
ROM Definitions
|
||||||
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
136
src/mess/drivers/ti74.c
Normal file
136
src/mess/drivers/ti74.c
Normal file
@ -0,0 +1,136 @@
|
|||||||
|
// license:BSD-3-Clause
|
||||||
|
// copyright-holders:hap
|
||||||
|
/***************************************************************************
|
||||||
|
|
||||||
|
TI-74
|
||||||
|
|
||||||
|
|
||||||
|
TODO:
|
||||||
|
- x
|
||||||
|
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
#include "emu.h"
|
||||||
|
#include "cpu/tms7000/tms7000.h"
|
||||||
|
#include "video/hd44780.h"
|
||||||
|
|
||||||
|
#include "ti74.lh"
|
||||||
|
|
||||||
|
|
||||||
|
class ti74_state : public driver_device
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ti74_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||||
|
: driver_device(mconfig, type, tag),
|
||||||
|
m_maincpu(*this, "maincpu")
|
||||||
|
{ }
|
||||||
|
|
||||||
|
required_device<tms70c46_device> m_maincpu;
|
||||||
|
|
||||||
|
virtual void machine_reset();
|
||||||
|
virtual void machine_start();
|
||||||
|
DECLARE_PALETTE_INIT(ti74);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/***************************************************************************
|
||||||
|
|
||||||
|
Video
|
||||||
|
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
PALETTE_INIT_MEMBER(ti74_state, ti74)
|
||||||
|
{
|
||||||
|
palette.set_pen_color(0, rgb_t(138, 146, 148));
|
||||||
|
palette.set_pen_color(1, rgb_t(92, 83, 88));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/***************************************************************************
|
||||||
|
|
||||||
|
I/O, Memory Maps
|
||||||
|
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
static ADDRESS_MAP_START( main_map, AS_PROGRAM, 8, ti74_state )
|
||||||
|
ADDRESS_MAP_UNMAP_HIGH
|
||||||
|
ADDRESS_MAP_END
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/***************************************************************************
|
||||||
|
|
||||||
|
Inputs
|
||||||
|
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
static INPUT_PORTS_START( ti74 )
|
||||||
|
PORT_START("IN0")
|
||||||
|
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED )
|
||||||
|
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED )
|
||||||
|
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED )
|
||||||
|
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED )
|
||||||
|
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED )
|
||||||
|
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED )
|
||||||
|
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED )
|
||||||
|
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED )
|
||||||
|
INPUT_PORTS_END
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/***************************************************************************
|
||||||
|
|
||||||
|
Machine Config
|
||||||
|
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
void ti74_state::machine_reset()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void ti74_state::machine_start()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
static MACHINE_CONFIG_START( ti74, ti74_state )
|
||||||
|
|
||||||
|
/* basic machine hardware */
|
||||||
|
MCFG_CPU_ADD("maincpu", TMS70C46, 2500000)
|
||||||
|
MCFG_CPU_PROGRAM_MAP(main_map)
|
||||||
|
|
||||||
|
/* video hardware */
|
||||||
|
MCFG_SCREEN_ADD("screen", LCD)
|
||||||
|
MCFG_SCREEN_REFRESH_RATE(60) // arbitrary
|
||||||
|
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500))
|
||||||
|
MCFG_SCREEN_SIZE(6*16, 9*2)
|
||||||
|
MCFG_SCREEN_VISIBLE_AREA(0, 6*16-1, 0, 9*2-1)
|
||||||
|
MCFG_DEFAULT_LAYOUT(layout_ti74)
|
||||||
|
MCFG_SCREEN_UPDATE_DEVICE("hd44780", hd44780_device, screen_update)
|
||||||
|
MCFG_SCREEN_PALETTE("palette")
|
||||||
|
|
||||||
|
MCFG_PALETTE_ADD("palette", 2)
|
||||||
|
MCFG_PALETTE_INIT_OWNER(ti74_state, ti74)
|
||||||
|
|
||||||
|
MCFG_HD44780_ADD("hd44780")
|
||||||
|
MCFG_HD44780_LCD_SIZE(2, 16)
|
||||||
|
MACHINE_CONFIG_END
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/***************************************************************************
|
||||||
|
|
||||||
|
ROM Definitions
|
||||||
|
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
ROM_START( ti74 )
|
||||||
|
ROM_REGION( 0x10000, "maincpu", 0 )
|
||||||
|
ROM_LOAD( "tms70c46.bin", 0xf000, 0x1000, CRC(55a2f7c0) SHA1(530e3de42f2e304c8f4805ad389f38a459ec4e33) ) // internal cpu rom
|
||||||
|
|
||||||
|
ROM_REGION( 0x8000, "system", 0 )
|
||||||
|
ROM_LOAD( "ti74.bin", 0x0000, 0x8000, CRC(019aaa2f) SHA1(04a1e694a49d50602e45a7834846de4d9f7d587d) ) // system rom, banked
|
||||||
|
ROM_END
|
||||||
|
|
||||||
|
|
||||||
|
COMP( 1986, ti74, 0, 0, ti74, ti74, driver_device, 0, "Texas Instruments", "TI-74", GAME_IS_SKELETON )
|
8
src/mess/layout/ti74.lay
Normal file
8
src/mess/layout/ti74.lay
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<mamelayout version="2">
|
||||||
|
<view name="Internal Layout">
|
||||||
|
<screen index="0">
|
||||||
|
<bounds left="0" top="0" right="~scr0width~" bottom="~scr0height~" />
|
||||||
|
</screen>
|
||||||
|
</view>
|
||||||
|
</mamelayout>
|
@ -1049,6 +1049,7 @@ avigo_it // 1997 Avigo (Italian)
|
|||||||
|
|
||||||
// Texas Instruments Calculators
|
// Texas Instruments Calculators
|
||||||
ti73 // 1990 TI-73
|
ti73 // 1990 TI-73
|
||||||
|
ti74 // 1986 TI-74
|
||||||
ti81 // 1990 TI-81 (Z80 2 MHz)
|
ti81 // 1990 TI-81 (Z80 2 MHz)
|
||||||
ti81v2 // 1990 TI-81 (Z80 2 MHz)
|
ti81v2 // 1990 TI-81 (Z80 2 MHz)
|
||||||
ti85 // 1992 TI-85 (Z80 6 MHz)
|
ti85 // 1992 TI-85 (Z80 6 MHz)
|
||||||
@ -1066,6 +1067,10 @@ v200 // 2002 Voyage 200 PLT
|
|||||||
ti89t // 2004 TI-89 Titanium
|
ti89t // 2004 TI-89 Titanium
|
||||||
evmbug
|
evmbug
|
||||||
|
|
||||||
|
// Exelvision (founded by former TI employees)
|
||||||
|
exl100
|
||||||
|
exeltel
|
||||||
|
|
||||||
// NEC
|
// NEC
|
||||||
pc6001
|
pc6001
|
||||||
pc6001a
|
pc6001a
|
||||||
@ -1849,10 +1854,6 @@ poly8813
|
|||||||
// Bondwell
|
// Bondwell
|
||||||
bw2
|
bw2
|
||||||
|
|
||||||
// Exeltel
|
|
||||||
exl100
|
|
||||||
exeltel
|
|
||||||
|
|
||||||
// Comx World Operations Ltd
|
// Comx World Operations Ltd
|
||||||
comx35p
|
comx35p
|
||||||
comx35n
|
comx35n
|
||||||
|
@ -683,7 +683,6 @@ DRVLIBS += \
|
|||||||
$(MESSOBJ)/entex.a \
|
$(MESSOBJ)/entex.a \
|
||||||
$(MESSOBJ)/epoch.a \
|
$(MESSOBJ)/epoch.a \
|
||||||
$(MESSOBJ)/epson.a \
|
$(MESSOBJ)/epson.a \
|
||||||
$(MESSOBJ)/exeltel.a \
|
|
||||||
$(MESSOBJ)/exidy.a \
|
$(MESSOBJ)/exidy.a \
|
||||||
$(MESSOBJ)/fairch.a \
|
$(MESSOBJ)/fairch.a \
|
||||||
$(MESSOBJ)/fidelity.a \
|
$(MESSOBJ)/fidelity.a \
|
||||||
@ -1273,9 +1272,6 @@ $(MESSOBJ)/epson.a: \
|
|||||||
$(MESS_DRIVERS)/qx10.o \
|
$(MESS_DRIVERS)/qx10.o \
|
||||||
$(MESS_MACHINE)/qx10kbd.o \
|
$(MESS_MACHINE)/qx10kbd.o \
|
||||||
|
|
||||||
$(MESSOBJ)/exeltel.a: \
|
|
||||||
$(MESS_DRIVERS)/exelv.o \
|
|
||||||
|
|
||||||
$(MESSOBJ)/exidy.a: \
|
$(MESSOBJ)/exidy.a: \
|
||||||
$(MESS_MACHINE)/sorcerer.o \
|
$(MESS_MACHINE)/sorcerer.o \
|
||||||
$(MESS_DRIVERS)/sorcerer.o \
|
$(MESS_DRIVERS)/sorcerer.o \
|
||||||
@ -1885,6 +1881,7 @@ $(MESSOBJ)/thomson.a: \
|
|||||||
$(MESS_MACHINE)/thomflop.o \
|
$(MESS_MACHINE)/thomflop.o \
|
||||||
|
|
||||||
$(MESSOBJ)/ti.a: \
|
$(MESSOBJ)/ti.a: \
|
||||||
|
$(MESS_DRIVERS)/ti74.o \
|
||||||
$(MESS_DRIVERS)/ti85.o \
|
$(MESS_DRIVERS)/ti85.o \
|
||||||
$(MESS_VIDEO)/ti85.o \
|
$(MESS_VIDEO)/ti85.o \
|
||||||
$(MESS_MACHINE)/ti85.o \
|
$(MESS_MACHINE)/ti85.o \
|
||||||
@ -1914,8 +1911,9 @@ $(MESSOBJ)/ti.a: \
|
|||||||
$(MESS_DRIVERS)/ti99_2.o \
|
$(MESS_DRIVERS)/ti99_2.o \
|
||||||
$(MESS_VIDEO)/avigo.o \
|
$(MESS_VIDEO)/avigo.o \
|
||||||
$(MESS_DRIVERS)/avigo.o \
|
$(MESS_DRIVERS)/avigo.o \
|
||||||
$(MESS_DRIVERS)/evmbug.o \
|
|
||||||
$(MESS_DRIVERS)/cc40.o \
|
$(MESS_DRIVERS)/cc40.o \
|
||||||
|
$(MESS_DRIVERS)/evmbug.o \
|
||||||
|
$(MESS_DRIVERS)/exelv.o \
|
||||||
|
|
||||||
$(MESSOBJ)/tiger.a: \
|
$(MESSOBJ)/tiger.a: \
|
||||||
$(MESS_DRIVERS)/gamecom.o \
|
$(MESS_DRIVERS)/gamecom.o \
|
||||||
@ -2338,6 +2336,7 @@ $(MESS_DRIVERS)/sym1.o: $(MESS_LAYOUT)/sym1.lh
|
|||||||
$(MESS_DRIVERS)/tavernie.o: $(MESS_LAYOUT)/tavernie.lh
|
$(MESS_DRIVERS)/tavernie.o: $(MESS_LAYOUT)/tavernie.lh
|
||||||
$(MESS_DRIVERS)/tec1.o: $(MESS_LAYOUT)/tec1.lh
|
$(MESS_DRIVERS)/tec1.o: $(MESS_LAYOUT)/tec1.lh
|
||||||
$(MESS_DRIVERS)/tecnbras.o: $(MESS_LAYOUT)/tecnbras.lh
|
$(MESS_DRIVERS)/tecnbras.o: $(MESS_LAYOUT)/tecnbras.lh
|
||||||
|
$(MESS_DRIVERS)/ti74.o: $(MESS_LAYOUT)/ti74.lh
|
||||||
$(MESS_DRIVERS)/tk80.o: $(MESS_LAYOUT)/tk80.lh
|
$(MESS_DRIVERS)/tk80.o: $(MESS_LAYOUT)/tk80.lh
|
||||||
$(MESS_DRIVERS)/tm990189.o: $(MESS_LAYOUT)/tm990189.lh \
|
$(MESS_DRIVERS)/tm990189.o: $(MESS_LAYOUT)/tm990189.lh \
|
||||||
$(MESS_LAYOUT)/tm990189v.lh
|
$(MESS_LAYOUT)/tm990189v.lh
|
||||||
|
Loading…
Reference in New Issue
Block a user