~ubuntu-branches/debian/sid/mame/sid

« back to all changes in this revision

Viewing changes to src/mame/drivers/globalfr.c

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Emmanuel Kasper, Jordi Mallach
  • Date: 2012-06-05 20:02:23 UTC
  • mfrom: (0.3.1) (0.1.4)
  • Revision ID: package-import@ubuntu.com-20120605200223-gnlpogjrg6oqe9md
Tags: 0.146-1
[ Emmanuel Kasper ]
* New upstream release
* Drop patch to fix man pages section and patches to link with flac 
  and jpeg system lib: all this has been pushed upstream by Cesare Falco
* Add DM-Upload-Allowed: yes field.

[ Jordi Mallach ]
* Create a "gnu" TARGETOS stanza that defines NO_AFFINITY_NP.
* Stop setting TARGETOS to "unix" in d/rules. It should be autodetected,
  and set to the appropriate value.
* mame_manpage_section.patch: Change mame's manpage section to 6 (games),
  in the TH declaration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
  Motherboard contains very few major components
8
8
 
9
9
  Missing sound roms? (or is sound data in the program roms?)
10
 
 
11
10
*******************************************************************************/
12
11
 
13
 
#define ADDRESS_MAP_MODERN
14
12
 
15
13
#include "emu.h"
16
14
#include "cpu/m37710/m37710.h"
 
15
#include "machine/roc10937.h"
 
16
#include "globalfr.lh"
17
17
 
18
18
/******************************************************************************/
19
19
 
26
26
    { }
27
27
 
28
28
        required_device<cpu_device> m_maincpu;
 
29
 
 
30
// serial vfd
 
31
        bool vfd_old_clock;
 
32
 
29
33
};
30
34
 
31
35
/******************************************************************************/
32
36
 
 
37
static WRITE16_HANDLER(vfd_w)
 
38
{
 
39
        globalfr_state *state = space->machine().driver_data<globalfr_state>();
 
40
 
 
41
        bool clock = (data & 0x40) != 0;
 
42
        int datline = (data & 0x80);
 
43
 
 
44
        //Unlike MPU4, this uses positive transitions on both lines, so this may be a similar, but not identical component
 
45
        // if the clock line changes
 
46
        if ( clock != state->vfd_old_clock )
 
47
        {
 
48
                if ( clock )//clock on rising edge
 
49
                {
 
50
                        ROC10937_shift_data(0, datline?1:0);
 
51
                }
 
52
        }
 
53
        ROC10937_draw_16seg(0);
 
54
        state->vfd_old_clock = clock;
 
55
}
 
56
 
33
57
static ADDRESS_MAP_START( globalfr_map, AS_PROGRAM, 16, globalfr_state )
34
58
    AM_RANGE(0x002000, 0x002fff) AM_RAM
35
59
        AM_RANGE(0x008000, 0x07ffff) AM_ROM AM_REGION("maincpu", 0x8000)
36
60
    AM_RANGE(0x0a0000, 0x0a01ff) AM_RAM
 
61
        AM_RANGE(0x7e0040, 0x7e0041) AM_WRITE_LEGACY(vfd_w)
37
62
ADDRESS_MAP_END
38
63
 
39
64
static INPUT_PORTS_START( globalfr )
40
65
INPUT_PORTS_END
41
66
 
 
67
 
 
68
static MACHINE_START( globalfr )
 
69
{
 
70
        //We assume this is a 16 seg display, but could be 14.
 
71
        ROC10937_init(0, MSC1937,1);
 
72
}
 
73
 
42
74
/******************************************************************************/
43
75
 
44
76
static MACHINE_CONFIG_START( globalfr, globalfr_state )
45
77
        /* basic machine hardware */
 
78
        MCFG_MACHINE_START(globalfr     )
46
79
        MCFG_CPU_ADD("maincpu", M37710, 4000000)
47
80
        MCFG_CPU_PROGRAM_MAP(globalfr_map)
 
81
        MCFG_DEFAULT_LAYOUT(layout_globalfr)
48
82
MACHINE_CONFIG_END
49
83
 
50
84
/******************************************************************************/
53
87
ROM_START( gl_dow )
54
88
        ROM_REGION( 0x80000, "maincpu", 0 )
55
89
        ROM_LOAD( "deal1-4n.p1", 0x0000, 0x080000, CRC(2bcc595b) SHA1(d22e1d25784f536ec12a534eee12bcc1abad4a5e) )
 
90
ROM_END
56
91
 
57
 
        ROM_REGION( 0x80000, "altrevs", 0 )
 
92
ROM_START( gl_dowp )
 
93
        ROM_REGION( 0x80000, "maincpu", 0 )
58
94
        ROM_LOAD( "deal1-4p.p1", 0x0000, 0x080000, CRC(1a962488) SHA1(f933e3e53b892b146664e0462d8f18263b026f7a) )
59
95
ROM_END
60
96
 
61
97
ROM_START( gl_dowcl )
62
98
        ROM_REGION( 0x80000, "maincpu", 0 )
63
99
        ROM_LOAD( "deal1-6n.p1", 0x0000, 0x080000, CRC(0844fa2c) SHA1(76ac663b260bfba1c1dcf446ce611628c7276e89) )
 
100
ROM_END
64
101
 
65
 
        ROM_REGION( 0x80000, "altrevs", 0 )
 
102
ROM_START( gl_dowclp )
 
103
        ROM_REGION( 0x80000, "maincpu", 0 )
66
104
        ROM_LOAD( "deal1-6p.p1", 0x0000, 0x080000, CRC(04b285de) SHA1(77df44354d18a981ab0c09cfcb6f5799db5662f0) )
67
105
ROM_END
68
106
 
69
107
ROM_START( gl_wywh )
70
108
        ROM_REGION( 0x80000, "maincpu", 0 )
71
109
        ROM_LOAD( "wish2-9n.p1", 0x0000, 0x020000, CRC(4b248e64) SHA1(24f27d7742b89893ac5ac5e73b11bcc417a304be) )
 
110
ROM_END
72
111
 
73
 
        ROM_REGION( 0x80000, "altrevs", 0 )
 
112
ROM_START( gl_wywhp )
 
113
        ROM_REGION( 0x80000, "maincpu", 0 )
74
114
        ROM_LOAD( "wish2-9p.p1", 0x0000, 0x020000, CRC(092d66ce) SHA1(50bb47aca15ced3de9c07c46970ff361d2c84ffd) )
 
115
ROM_END
 
116
 
 
117
ROM_START( gl_wywh24 )
 
118
        ROM_REGION( 0x80000, "maincpu", 0 )
75
119
        ROM_LOAD( "wsds2-4n.p1", 0x0000, 0x020000, CRC(b83681ef) SHA1(e609e83213ec992a88645f3e025699db1f59d57a) )
 
120
ROM_END
 
121
 
 
122
ROM_START( gl_wywh24p )
 
123
        ROM_REGION( 0x80000, "maincpu", 0 )
76
124
        ROM_LOAD( "wsds2-4p.p1", 0x0000, 0x020000, CRC(018346f4) SHA1(c0a47753c4c06c089888ff0759b4d4ae35dab7ba) )
77
125
ROM_END
78
126
 
79
127
ROM_START( gl_coc )
80
128
        ROM_REGION( 0x80000, "maincpu", 0 )
 
129
        ROM_LOAD( "clbv3-0.ste", 0x0000, 0x020000, CRC(5551ed2e) SHA1(56e3421c223f90fea1d48e4b8ef962b2c0cbc01e) )
 
130
ROM_END
 
131
 
 
132
ROM_START( gl_cocp )
 
133
        ROM_REGION( 0x80000, "maincpu", 0 )
 
134
        ROM_LOAD( "clbv3-0.pro", 0x0000, 0x020000, CRC(beadf377) SHA1(b18ee3d214ea7048c6bc8154613e0a693f080a12) )
 
135
ROM_END
 
136
 
 
137
ROM_START( gl_coc29 )
 
138
        ROM_REGION( 0x80000, "maincpu", 0 )
81
139
        ROM_LOAD( "clbd2-9n.p1", 0x0000, 0x020000, CRC(f2c5387d) SHA1(72210686ea29ca8d5f9514c30ede342fdc146a38) )
 
140
ROM_END
82
141
 
83
 
        ROM_REGION( 0x80000, "altrevs", 0 )
 
142
ROM_START( gl_coc29p )
 
143
        ROM_REGION( 0x80000, "maincpu", 0 )
84
144
        ROM_LOAD( "clbd2-9p.p1", 0x0000, 0x020000, CRC(4a1509a3) SHA1(f0cb393a29ae6852b669caf0ca153a0bb316a5a1) )
85
 
        ROM_LOAD( "clbv3-0.pro", 0x0000, 0x020000, CRC(beadf377) SHA1(b18ee3d214ea7048c6bc8154613e0a693f080a12) )
86
 
        ROM_LOAD( "clbv3-0.ste", 0x0000, 0x020000, CRC(5551ed2e) SHA1(56e3421c223f90fea1d48e4b8ef962b2c0cbc01e) )
87
145
ROM_END
88
146
 
89
147
ROM_START( gl_uyr )
90
148
        ROM_REGION( 0x80000, "maincpu", 0 )
91
149
        ROM_LOAD( "rigm2-8n.p1", 0x0000, 0x080000, CRC(6226a3e7) SHA1(84feafc1c630e466142fcd5ef32af09b6d15b5d8) )
 
150
ROM_END
92
151
 
93
 
        ROM_REGION( 0x80000, "altrevs", 0 )
 
152
ROM_START( gl_uyrp )
 
153
        ROM_REGION( 0x80000, "maincpu", 0 )
94
154
        ROM_LOAD( "rigm2-8p.p1", 0x0000, 0x080000, CRC(3bb758c6) SHA1(df570f8263102920113345febb31a602d8302de5) )
95
155
ROM_END
96
156
 
102
162
ROM_START( gl_hbhcl )
103
163
        ROM_REGION( 0x80000, "maincpu", 0 )
104
164
        ROM_LOAD( "mhot1-9n.p1", 0x0000, 0x080000, CRC(769ed4b8) SHA1(b725d1d2942521e145580ae3103ddecdd557b447) )
105
 
 
106
 
        ROM_REGION( 0x80000, "altrevs", 0 )
 
165
ROM_END
 
166
 
 
167
ROM_START( gl_hbhclp )
 
168
        ROM_REGION( 0x80000, "maincpu", 0 )
 
169
        ROM_LOAD( "mhot1-9p.p1", 0x0000, 0x080000, CRC(ecea7177) SHA1(831d56dfd48800b0736435d153625f3e21526e19) )
 
170
ROM_END
 
171
 
 
172
ROM_START( gl_hbhcla )
 
173
        ROM_REGION( 0x80000, "maincpu", 0 )
107
174
        ROM_LOAD( "hbrk_hot.p1", 0x0000, 0x080000, CRC(17b4e037) SHA1(394e73109d3f327544db2b8aa37513b3df1ffbf2) )
108
 
        ROM_LOAD( "mhot1-9p.p1", 0x0000, 0x080000, CRC(ecea7177) SHA1(831d56dfd48800b0736435d153625f3e21526e19) )
109
175
ROM_END
110
176
 
111
177
 
112
178
 
113
179
/******************************************************************************/
114
180
 
115
 
GAME( 199?, gl_dow,  0,        globalfr, globalfr, 0, ROT0, "Global", "Deals On Wheels (Global) (Stealth)", GAME_IS_SKELETON_MECHANICAL)
116
 
GAME( 199?, gl_dowcl,0,        globalfr, globalfr, 0, ROT0, "Global", "Deals On Wheels Club (Global) (Stealth)", GAME_IS_SKELETON_MECHANICAL)
117
 
GAME( 199?, gl_wywh, 0,        globalfr, globalfr, 0, ROT0, "Global", "Wish You Were Here Club (Global) (Stealth)", GAME_IS_SKELETON_MECHANICAL)
118
 
GAME( 199?, gl_coc,  0,        globalfr, globalfr, 0, ROT0, "Global", "Carry On Clubbin' (Global) (Stealth)", GAME_IS_SKELETON_MECHANICAL)
119
 
GAME( 199?, gl_uyr,  0,        globalfr, globalfr, 0, ROT0, "Global", "Up Yer Riggin Club (Global) (Stealth)", GAME_IS_SKELETON_MECHANICAL)
120
 
GAME( 199?, gl_hbh,  0,        globalfr, globalfr, 0, ROT0, "Global", "Heartbreak Hotel (Global) (Stealth)", GAME_IS_SKELETON_MECHANICAL)
121
 
GAME( 199?, gl_hbhcl,0,        globalfr, globalfr, 0, ROT0, "Global", "Heartbreak Hotel Club (Global) (Stealth)", GAME_IS_SKELETON_MECHANICAL)
122
 
 
 
181
GAME( 199?, gl_dow,  0,        globalfr, globalfr, 0, ROT0, "Global", "Deals On Wheels (Global) (v1.4) (Stealth)", GAME_IS_SKELETON_MECHANICAL)
 
182
GAME( 199?, gl_dowp, gl_dow,   globalfr, globalfr, 0, ROT0, "Global", "Deals On Wheels (Global) (v1.4 Protocol) (Stealth)", GAME_IS_SKELETON_MECHANICAL)
 
183
 
 
184
GAME( 199?, gl_dowcl,0,        globalfr, globalfr, 0, ROT0, "Global", "Deals On Wheels Club (Global) (v1.6) (Stealth)", GAME_IS_SKELETON_MECHANICAL)
 
185
GAME( 199?, gl_dowclp,gl_dowcl,globalfr, globalfr, 0, ROT0, "Global", "Deals On Wheels Club (Global) (v1.6 Protocol) (Stealth)", GAME_IS_SKELETON_MECHANICAL)
 
186
 
 
187
GAME( 199?, gl_wywh,  0,        globalfr, globalfr, 0, ROT0, "Global", "Wish You Were Here Club (Global) (v2.9) (Stealth)", GAME_IS_SKELETON_MECHANICAL)
 
188
GAME( 199?, gl_wywhp,  gl_wywh, globalfr, globalfr, 0, ROT0, "Global", "Wish You Were Here Club (Global) (v2.9 Protocol) (Stealth)", GAME_IS_SKELETON_MECHANICAL)
 
189
GAME( 199?, gl_wywh24, gl_wywh, globalfr, globalfr, 0, ROT0, "Global", "Wish You Were Here Club (Global) (v2.4) (Stealth)", GAME_IS_SKELETON_MECHANICAL)
 
190
GAME( 199?, gl_wywh24p,gl_wywh, globalfr, globalfr, 0, ROT0, "Global", "Wish You Were Here Club (Global) (v2.4 Protocol) (Stealth)", GAME_IS_SKELETON_MECHANICAL)
 
191
 
 
192
GAME( 199?, gl_coc,   0,        globalfr, globalfr, 0, ROT0, "Global", "Carry On Clubbin' (Global) (v3.0) (Stealth)", GAME_IS_SKELETON_MECHANICAL)
 
193
GAME( 199?, gl_cocp,  gl_coc,   globalfr, globalfr, 0, ROT0, "Global", "Carry On Clubbin' (Global) (v3.0 Protocol) (Stealth)", GAME_IS_SKELETON_MECHANICAL)
 
194
GAME( 199?, gl_coc29, gl_coc,   globalfr, globalfr, 0, ROT0, "Global", "Carry On Clubbin' (Global) (v2.9) (Stealth)", GAME_IS_SKELETON_MECHANICAL)
 
195
GAME( 199?, gl_coc29p,gl_coc,   globalfr, globalfr, 0, ROT0, "Global", "Carry On Clubbin' (Global) (v2.9 Protocol) (Stealth)", GAME_IS_SKELETON_MECHANICAL)
 
196
 
 
197
GAME( 199?, gl_uyr,  0,        globalfr, globalfr, 0, ROT0, "Global", "Up Yer Riggin Club (Global) (v2.8) (Stealth)", GAME_IS_SKELETON_MECHANICAL)
 
198
GAME( 199?, gl_uyrp, gl_uyr,   globalfr, globalfr, 0, ROT0, "Global", "Up Yer Riggin Club (Global) (v2.8 Protocol) (Stealth)", GAME_IS_SKELETON_MECHANICAL)
 
199
 
 
200
GAME( 199?, gl_hbh,  0,        globalfr, globalfr, 0, ROT0, "Global", "Heartbreak Hotel (Global) (v1.0) (Stealth)", GAME_IS_SKELETON_MECHANICAL)
 
201
GAME( 199?, gl_hbhcl,0,        globalfr, globalfr, 0, ROT0, "Global", "Heartbreak Hotel Club (Global) (v1.9) (Stealth)", GAME_IS_SKELETON_MECHANICAL)
 
202
GAME( 199?, gl_hbhclp,gl_hbhcl, globalfr, globalfr, 0, ROT0, "Global", "Heartbreak Hotel Club (Global) (v1.9 Protocol) (Stealth)", GAME_IS_SKELETON_MECHANICAL)
 
203
GAME( 199?, gl_hbhcla,gl_hbhcl, globalfr, globalfr, 0, ROT0, "Global", "Heartbreak Hotel Club (Global) (Set 2) (Stealth)", GAME_IS_SKELETON_MECHANICAL)