1
/***************************************************************************
5
12/05/2009 Skeleton driver.
7
****************************************************************************/
10
#include "cpu/m68000/m68000.h"
11
#include "machine/terminal.h"
14
class tricep_state : public driver_device
17
tricep_state(const machine_config &mconfig, device_type type, const char *tag)
18
: driver_device(mconfig, type, tag) { }
25
static READ16_HANDLER(tricep_terminal_r)
30
static WRITE16_HANDLER(tricep_terminal_w)
32
device_t *devconf = space->machine().device(TERMINAL_TAG);
33
terminal_write(devconf,0,data >> 8);
36
static ADDRESS_MAP_START(tricep_mem, AS_PROGRAM, 16)
37
ADDRESS_MAP_UNMAP_HIGH
38
AM_RANGE(0x00000000, 0x0007ffff) AM_RAM AM_BASE_MEMBER(tricep_state, m_ram)
39
AM_RANGE(0x00fd0000, 0x00fd1fff) AM_ROM AM_REGION("user1",0)
40
AM_RANGE(0x00ff0028, 0x00ff0029) AM_READWRITE(tricep_terminal_r,tricep_terminal_w)
44
static INPUT_PORTS_START( tricep )
48
static MACHINE_RESET(tricep)
50
tricep_state *state = machine.driver_data<tricep_state>();
51
UINT8* user1 = machine.region("user1")->base();
53
memcpy((UINT8*)state->m_ram,user1,0x2000);
55
machine.device("maincpu")->reset();
58
static WRITE8_DEVICE_HANDLER( tricep_kbd_put )
62
static GENERIC_TERMINAL_INTERFACE( tricep_terminal_intf )
64
DEVCB_HANDLER(tricep_kbd_put)
67
static MACHINE_CONFIG_START( tricep, tricep_state )
68
/* basic machine hardware */
69
MCFG_CPU_ADD("maincpu",M68000, XTAL_8MHz)
70
MCFG_CPU_PROGRAM_MAP(tricep_mem)
72
MCFG_MACHINE_RESET(tricep)
75
MCFG_FRAGMENT_ADD( generic_terminal )
76
MCFG_GENERIC_TERMINAL_ADD(TERMINAL_TAG,tricep_terminal_intf)
81
ROM_REGION( 0x2000, "user1", ROMREGION_ERASEFF )
82
ROM_LOAD16_BYTE( "tri2.4_odd.u37", 0x0000, 0x1000, CRC(31eb2dcf) SHA1(2d9df9262ee1096d0398505e10d209201ac49a5d))
83
ROM_LOAD16_BYTE( "tri2.4_even.u36", 0x0001, 0x1000, CRC(4414dcdc) SHA1(00a3d293617dc691748ae85b6ccdd6723daefc0a))
88
/* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */
89
COMP( 1985, tricep, 0, 0, tricep, tricep, 0, "Morrow Designs", "Tricep", GAME_NOT_WORKING | GAME_NO_SOUND)