~ubuntu-branches/ubuntu/raring/mame/raring-proposed

« back to all changes in this revision

Viewing changes to mess/src/mess/drivers/tricep.c

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Jordi Mallach, Emmanuel Kasper
  • Date: 2011-12-19 22:56:27 UTC
  • mfrom: (0.1.2)
  • Revision ID: package-import@ubuntu.com-20111219225627-ub5oga1oys4ogqzm
Tags: 0.144-1
[ Jordi Mallach ]
* Fix syntax errors in DEP5 copyright file (lintian).
* Use a versioned copyright Format specification field.
* Update Vcs-* URLs.
* Move transitional packages to the new metapackages section, and make
  them priority extra.
* Remove references to GNU/Linux and MESS sources from copyright.
* Add build variables for s390x.
* Use .xz tarballs as it cuts 4MB for the upstream sources.
* Add nplayers.ini as a patch. Update copyright file to add CC-BY-SA-3.0.

[ Emmanuel Kasper ]
* New upstream release. Closes: #651538.
* Add Free Desktop compliant png icons of various sizes taken from
  the hydroxygen iconset
* Mess is now built from a new source package, to avoid possible source
  incompatibilities between mame and the mess overlay.
* Mame-tools are not built from the mame source package anymore, but
  from the mess source package

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
 
3
 
        Morrow Tricep
4
 
 
5
 
        12/05/2009 Skeleton driver.
6
 
 
7
 
****************************************************************************/
8
 
 
9
 
#include "emu.h"
10
 
#include "cpu/m68000/m68000.h"
11
 
#include "machine/terminal.h"
12
 
 
13
 
 
14
 
class tricep_state : public driver_device
15
 
{
16
 
public:
17
 
        tricep_state(const machine_config &mconfig, device_type type, const char *tag)
18
 
                : driver_device(mconfig, type, tag) { }
19
 
 
20
 
        UINT16* m_ram;
21
 
};
22
 
 
23
 
 
24
 
 
25
 
static READ16_HANDLER(tricep_terminal_r)
26
 
{
27
 
        return 0xffff;
28
 
}
29
 
 
30
 
static WRITE16_HANDLER(tricep_terminal_w)
31
 
{
32
 
        device_t *devconf = space->machine().device(TERMINAL_TAG);
33
 
        terminal_write(devconf,0,data >> 8);
34
 
}
35
 
 
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)
41
 
ADDRESS_MAP_END
42
 
 
43
 
/* Input ports */
44
 
static INPUT_PORTS_START( tricep )
45
 
INPUT_PORTS_END
46
 
 
47
 
 
48
 
static MACHINE_RESET(tricep)
49
 
{
50
 
        tricep_state *state = machine.driver_data<tricep_state>();
51
 
        UINT8* user1 = machine.region("user1")->base();
52
 
 
53
 
        memcpy((UINT8*)state->m_ram,user1,0x2000);
54
 
 
55
 
        machine.device("maincpu")->reset();
56
 
}
57
 
 
58
 
static WRITE8_DEVICE_HANDLER( tricep_kbd_put )
59
 
{
60
 
}
61
 
 
62
 
static GENERIC_TERMINAL_INTERFACE( tricep_terminal_intf )
63
 
{
64
 
        DEVCB_HANDLER(tricep_kbd_put)
65
 
};
66
 
 
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)
71
 
 
72
 
    MCFG_MACHINE_RESET(tricep)
73
 
 
74
 
    /* video hardware */
75
 
    MCFG_FRAGMENT_ADD( generic_terminal )
76
 
        MCFG_GENERIC_TERMINAL_ADD(TERMINAL_TAG,tricep_terminal_intf)
77
 
MACHINE_CONFIG_END
78
 
 
79
 
/* ROM definition */
80
 
ROM_START( tricep )
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))
84
 
ROM_END
85
 
 
86
 
/* Driver */
87
 
 
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)
90