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

« back to all changes in this revision

Viewing changes to mess/src/mame/drivers/adp.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
 
ADP (Merkur?) games from '90 running on similar hardware.
4
 
(68k + HD63484 + YM2149)
5
 
 
6
 
Skeleton driver by TS -  analog at op.pl
7
 
 
8
 
TODO:
9
 
(almost everything)
10
 
 - add sound and i/o
11
 
 - protection in Fashion Gambler (NVRam based?)
12
 
 
13
 
Supported games :
14
 
- Quick Jack      ("COPYRIGHT BY ADP LUEBBECKE GERMANY 1993")
15
 
- Skat TV           ("COPYRIGHT BY ADP LUEBBECKE GERMANY 1994")
16
 
- Skat TV v. TS3  ("COPYRIGHT BY ADP LUEBBECKE GERMANY 1995")
17
 
- Fashion Gambler ("COPYRIGHT BY ADP LUEBBECKE GERMANY 1997")
18
 
- Backgammon        ("COPYRIGHT BY ADP LUEBBECKE GERMANY 1994")
19
 
- Funny Land de Luxe ("Copyright 1992-99 by Stella International Germany")
20
 
- Fun Station Spielekoffer 9 Spiele ("COPYRIGHT BY ADP LUEBBECKE GERMANY 2000")
21
 
 
22
 
 
23
 
Skat TV (Version TS3)
24
 
Three board stack.
25
 
 
26
 
CPU Board:
27
 
----------
28
 
 ____________________________________________________________
29
 
 |           ______________  ______________     ___________ |
30
 
 | 74HC245N  | t1 i       |  |KM681000ALP7|     |+        | |
31
 
 | 74HC573   |____________|  |____________|     |  3V Bat | |
32
 
 |                                              |         | |
33
 
 |           ______________  ______________     |        -| |
34
 
 |           | t1 ii      |  |KM681000ALP7|     |_________| |
35
 
 |     |||   |____________|  |____________| |||             |
36
 
 |     |||   ___________                    |||  M62X42B    |
37
 
 | X   |||   |         |                    |||             |
38
 
 |     |||   |68EC000 8|  74HC32   74HC245  |||  MAX691CPE  |
39
 
 |     |||   |         |  74AC138  74HC573  |||    74HC32   |
40
 
 |           |         |                                    |
41
 
 | 74HC573   |_________|  74HC08   74HC10  74HC32  74HC21   |
42
 
 |__________________________________________________________|
43
 
 
44
 
Parts:
45
 
 
46
 
 68EC000FN8         - Motorola 68k CPU
47
 
 KM681000ALP7       - 128K X 8 Bit Low Power CMOS Static RAM
48
 
 OKIM62X42B         - Real-time Clock ic With Built-in Crystal
49
 
 MAX691CPE          - P Reset ic With Watchdog And Battery Switchover
50
 
 X                    - 8MHz xtal
51
 
 3V Bat             - Lithium 3V power module
52
 
 
53
 
Video Board:
54
 
------------
55
 
 ____________________________________________________________
56
 
 |           ______________  ______________                 |
57
 
 |           | t2 i       |  |KM681000ALP7|     74HC573     |
58
 
 |           |____________|  |____________|                *|
59
 
 |                                              74HC573    *|
60
 
 |           ______________  ______________                *|
61
 
 |           | t2 ii      |  |KM681000ALP7|               P3|
62
 
 |       ||| |____________|  |____________|   |||          *|
63
 
 |       ||| ___________                      |||          *|
64
 
 |       ||| |         |                      |||          *|
65
 
 |       ||| | HD63484 |  74HC04   74HC00     |||         P6|
66
 
 |       ||| |         |  74HC74   74HC08     |||  74HC245  |
67
 
 |           |         |                                    |
68
 
 | 74HC573   |_________|  74HC166  74HC166 74HC166 74HC166  |
69
 
 |__________________________________________________________|
70
 
 
71
 
Parts:
72
 
 
73
 
 HD63484CP8         - Advanced CRT Controller
74
 
 KM681000ALP7       - 128K X 8 Bit Low Power CMOS Static RAM
75
 
 
76
 
Connectors:
77
 
 
78
 
 Two connectors to link with CPU Board
79
 
 Two connectors to link with Sound and I/O Board
80
 
 P3  - Monitor
81
 
 P6  - Lightpen
82
 
 
83
 
Sound  and I/O board:
84
 
---------------------
85
 
 _________________________________________________________________________________
86
 
 |                        TS271CN    74HC02                        ****  ****    |
87
 
 |*                      ________________                          P1    P2     *|
88
 
 |*         74HC574      | YM2149F      |                                       *|
89
 
 |*                  ||| |______________|   74HC393  74HC4015 |||               *|
90
 
 |P3        74HC245  |||                                      |||              P6|
91
 
 |*                  ||| ________________          X          ||| TL7705ACP     *|
92
 
 |*                  ||| |SCN68681C1N40 |                     |||               *|
93
 
 |*                  ||| |______________|   74HC32   74AC138  |||               *|
94
 
 |P7                 |||                                      |||              P8|
95
 
 |*                        TC428CPA                                             *|
96
 
 |*                                                                             *|
97
 
 |*    P11  P12    P13    P14       P15   P16   P17      P18   P19   P20  P21   *|
98
 
 |P9   **** *****  *****  ****  OO  ****  ****  *******  ****  ****  ***  *** P10|
99
 
 |_______________________________________________________________________________|
100
 
 
101
 
Parts:
102
 
 
103
 
 YM2149F         - Yamaha PSG
104
 
 SCN68681C1N40   - Dual Asynchronous Receiver/transmitter (DUART);
105
 
 TS271CN         - Programmable Low Power CMOS Single Op-amp
106
 
 TL7705ACP       - Supply Voltage Supervisor
107
 
 TC428CPA        - Dual CMOS High-speed Driver
108
 
 OO              - LEDs (red)
109
 
 X               - 3.6864MHz xtal
110
 
 
111
 
Connectors:
112
 
 
113
 
 Two connectors to link with Video Board
114
 
 P1  - Tueroeffn
115
 
 P2  - PSG In/Out
116
 
 P3  - Lautsprecher
117
 
 P6  - Service - Tast.
118
 
 P7  - Maschine (barely readable)
119
 
 P8  - Muenzeinheit
120
 
 P9  - Atzepter
121
 
 P10 - Reset Fadenfoul
122
 
 P11 - Netzteil
123
 
 P12 - Serienplan
124
 
 P13 - Serienplan 2
125
 
 P14 - Muenzeinheit 2
126
 
 P15 - I2C Bus
127
 
 P16 - Kodierg.
128
 
 P17 - TTL Ein-Aueg.
129
 
 P18 - Out
130
 
 P19 - In
131
 
 P20 - Serielle-S.
132
 
 P21 - Tuerschalter
133
 
 
134
 
There's also (external) JAMMA adapter - 4th board filled with resistors and diodes.
135
 
 
136
 
 
137
 
 
138
 
Funny Land de Luxe
139
 
------------------
140
 
 
141
 
Video board has additional chips:
142
 
  - Altera EPM7032 (PLD)
143
 
  - SG-615PH (32.0000M oscillator)
144
 
  - Bt481 (RAMDAC)
145
 
 
146
 
*/
147
 
 
148
 
#include "emu.h"
149
 
#include "cpu/m68000/m68000.h"
150
 
#include "sound/ay8910.h"
151
 
#include "video/hd63484.h"
152
 
#include "machine/microtch.h"
153
 
#include "machine/68681.h"
154
 
 
155
 
class adp_state : public driver_device
156
 
{
157
 
public:
158
 
        adp_state(const machine_config &mconfig, device_type type, const char *tag)
159
 
                : driver_device(mconfig, type, tag) { }
160
 
 
161
 
        /* misc */
162
 
        UINT8 m_mux_data;
163
 
        UINT8 m_register_active;
164
 
        struct { int r,g,b,offs,offs_internal; } m_pal;
165
 
 
166
 
        /* devices */
167
 
        device_t *m_maincpu;
168
 
        device_t *m_duart;
169
 
        device_t *m_hd63484;
170
 
};
171
 
 
172
 
 
173
 
/***************************************************************************
174
 
 
175
 
    68681 DUART <-> Microtouch touch screen controller communication
176
 
 
177
 
***************************************************************************/
178
 
 
179
 
static void duart_irq_handler( device_t *device, UINT8 vector )
180
 
{
181
 
        adp_state *state = device->machine().driver_data<adp_state>();
182
 
        device_set_input_line_and_vector(state->m_maincpu, 4, HOLD_LINE, vector);
183
 
};
184
 
 
185
 
static void duart_tx( device_t *device, int channel, UINT8 data )
186
 
{
187
 
        if (channel == 0)
188
 
        {
189
 
                microtouch_rx(1, &data);
190
 
        }
191
 
};
192
 
 
193
 
static void microtouch_tx( running_machine &machine, UINT8 data )
194
 
{
195
 
        adp_state *state = machine.driver_data<adp_state>();
196
 
        duart68681_rx_data(state->m_duart, 0, data);
197
 
}
198
 
 
199
 
static UINT8 duart_input( device_t *device )
200
 
{
201
 
        return input_port_read(device->machine(), "DSW1");
202
 
}
203
 
 
204
 
static MACHINE_START( skattv )
205
 
{
206
 
        adp_state *state = machine.driver_data<adp_state>();
207
 
        microtouch_init(machine, microtouch_tx, 0);
208
 
 
209
 
        state->m_maincpu = machine.device("maincpu");
210
 
        state->m_duart = machine.device("duart68681");
211
 
        state->m_hd63484 = machine.device("hd63484");
212
 
 
213
 
        state->save_item(NAME(state->m_mux_data));
214
 
        state->save_item(NAME(state->m_register_active));
215
 
 
216
 
        /*
217
 
        ACRTC memory:
218
 
 
219
 
        00000-3ffff = RAM
220
 
        40000-7ffff = ROM
221
 
        80000-bffff = unused
222
 
        c0000-fffff = unused
223
 
    */
224
 
 
225
 
        // hack to handle acrt rom
226
 
        {
227
 
                UINT16 *rom = (UINT16*)machine.region("gfx1")->base();
228
 
                int i;
229
 
 
230
 
                device_t *hd63484 = machine.device("hd63484");
231
 
 
232
 
                for(i = 0; i < 0x40000/2; ++i)
233
 
                {
234
 
                        hd63484_ram_w(hd63484, i + 0x00000/2, rom[i], 0xffff);
235
 
                        hd63484_ram_w(hd63484, i + 0x40000/2, rom[i], 0xffff);
236
 
                        hd63484_ram_w(hd63484, i + 0x80000/2, rom[i], 0xffff);
237
 
                        hd63484_ram_w(hd63484, i + 0xc0000/2, rom[i], 0xffff);
238
 
                }
239
 
        }
240
 
}
241
 
 
242
 
static MACHINE_RESET( skattv )
243
 
{
244
 
        adp_state *state = machine.driver_data<adp_state>();
245
 
 
246
 
        state->m_mux_data = 0;
247
 
        state->m_register_active = 0;
248
 
}
249
 
 
250
 
static const duart68681_config skattv_duart68681_config =
251
 
{
252
 
        duart_irq_handler,
253
 
        duart_tx,
254
 
        duart_input,
255
 
        NULL
256
 
};
257
 
 
258
 
static PALETTE_INIT( adp )
259
 
{
260
 
    int i;
261
 
 
262
 
    for (i = 0; i < machine.total_colors(); i++)
263
 
    {
264
 
        int bit0, bit1, bit2, r, g, b;
265
 
 
266
 
 
267
 
        // red component
268
 
        bit0 = (i >> 0) & 0x01;
269
 
        bit1 = (i >> 3) & 0x01;
270
 
        bit2 = (i >> 0) & 0x01;
271
 
        r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2;
272
 
        // green component
273
 
        bit0 = (i >> 1) & 0x01;
274
 
        bit1 = (i >> 3) & 0x01;
275
 
        bit2 = (i >> 1) & 0x01;
276
 
        g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2;
277
 
        // blue component
278
 
        bit0 = (i >> 2) & 0x01;
279
 
        bit1 = (i >> 3) & 0x01;
280
 
        bit2 = (i >> 2) & 0x01;
281
 
        b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2;
282
 
 
283
 
        palette_set_color(machine, i, MAKE_RGB(r,g,b));
284
 
    }
285
 
}
286
 
 
287
 
static VIDEO_START(adp)
288
 
{
289
 
 
290
 
}
291
 
 
292
 
static SCREEN_UPDATE( adp )
293
 
{
294
 
        adp_state *state = screen->machine().driver_data<adp_state>();
295
 
        int x, y, b, src;
296
 
 
297
 
        b = ((hd63484_regs_r(state->m_hd63484, 0xcc/2, 0xffff) & 0x000f) << 16) + hd63484_regs_r(state->m_hd63484, 0xce/2, 0xffff);
298
 
#if 1
299
 
        if (screen->machine().input().code_pressed(KEYCODE_M)) b = 0;
300
 
        if (screen->machine().input().code_pressed(KEYCODE_Q)) b += 0x2000 * 1;
301
 
        if (screen->machine().input().code_pressed(KEYCODE_W)) b += 0x2000 * 2;
302
 
        if (screen->machine().input().code_pressed(KEYCODE_E)) b += 0x2000 * 3;
303
 
        if (screen->machine().input().code_pressed(KEYCODE_R)) b += 0x2000 * 4;
304
 
        if (screen->machine().input().code_pressed(KEYCODE_T)) b += 0x2000 * 5;
305
 
        if (screen->machine().input().code_pressed(KEYCODE_Y)) b += 0x2000 * 6;
306
 
        if (screen->machine().input().code_pressed(KEYCODE_U)) b += 0x2000 * 7;
307
 
        if (screen->machine().input().code_pressed(KEYCODE_I)) b += 0x2000 * 8;
308
 
        if (screen->machine().input().code_pressed(KEYCODE_A)) b += 0x2000 * 9;
309
 
        if (screen->machine().input().code_pressed(KEYCODE_S)) b += 0x2000 * 10;
310
 
        if (screen->machine().input().code_pressed(KEYCODE_D)) b += 0x2000 * 11;
311
 
        if (screen->machine().input().code_pressed(KEYCODE_F)) b += 0x2000 * 12;
312
 
        if (screen->machine().input().code_pressed(KEYCODE_G)) b += 0x2000 * 13;
313
 
        if (screen->machine().input().code_pressed(KEYCODE_H)) b += 0x2000 * 14;
314
 
        if (screen->machine().input().code_pressed(KEYCODE_J)) b += 0x2000 * 15;
315
 
        if (screen->machine().input().code_pressed(KEYCODE_K)) b += 0x2000 * 16;
316
 
        if (screen->machine().input().code_pressed(KEYCODE_Z)) b += 0x2000 * 17;
317
 
        if (screen->machine().input().code_pressed(KEYCODE_X)) b += 0x2000 * 18;
318
 
        if (screen->machine().input().code_pressed(KEYCODE_C)) b += 0x2000 * 19;
319
 
        if (screen->machine().input().code_pressed(KEYCODE_V)) b += 0x2000 * 20;
320
 
        if (screen->machine().input().code_pressed(KEYCODE_B)) b += 0x2000 * 21;
321
 
        if (screen->machine().input().code_pressed(KEYCODE_N)) b += 0x2000 * 22;
322
 
#endif
323
 
        for (y = 0;y < 280;y++)
324
 
        {
325
 
                for (x = 0 ; x < (hd63484_regs_r(state->m_hd63484, 0xca/2, 0xffff) & 0x0fff) * 4 ; x += 4)
326
 
                {
327
 
                        b &= (HD63484_RAM_SIZE - 1);
328
 
                        src = hd63484_ram_r(state->m_hd63484, b, 0xffff);
329
 
                        *BITMAP_ADDR16(bitmap, y, x    ) = ((src & 0x000f) >>  0) << 0;
330
 
                        *BITMAP_ADDR16(bitmap, y, x + 1) = ((src & 0x00f0) >>  4) << 0;
331
 
                        *BITMAP_ADDR16(bitmap, y, x + 2) = ((src & 0x0f00) >>  8) << 0;
332
 
                        *BITMAP_ADDR16(bitmap, y, x + 3) = ((src & 0xf000) >> 12) << 0;
333
 
                        b++;
334
 
                }
335
 
        }
336
 
if (!screen->machine().input().code_pressed(KEYCODE_O)) // debug: toggle window
337
 
        if ((hd63484_regs_r(state->m_hd63484, 0x06/2, 0xffff) & 0x0300) == 0x0300)
338
 
        {
339
 
                int sy = (hd63484_regs_r(state->m_hd63484, 0x94/2, 0xffff) & 0x0fff) - (hd63484_regs_r(state->m_hd63484, 0x88/2, 0xffff) >> 8);
340
 
                int h = hd63484_regs_r(state->m_hd63484, 0x96/2, 0xffff) & 0x0fff;
341
 
                int sx = ((hd63484_regs_r(state->m_hd63484, 0x92/2, 0xffff) >> 8) - (hd63484_regs_r(state->m_hd63484, 0x84/2, 0xffff) >> 8)) * 2 * 2;
342
 
                int w = (hd63484_regs_r(state->m_hd63484, 0x92/2, 0xffff) & 0xff) * 2;
343
 
                if (sx < 0) sx = 0;     // not sure about this (shangha2 title screen)
344
 
 
345
 
                b = (((hd63484_regs_r(state->m_hd63484, 0xdc/2, 0xffff) & 0x000f) << 16) + hd63484_regs_r(state->m_hd63484, 0xde/2, 0xffff));
346
 
 
347
 
                for (y = sy ; y <= sy + h && y < 280 ; y++)
348
 
                {
349
 
                        for (x = 0 ; x < (hd63484_regs_r(state->m_hd63484, 0xca/2, 0xffff) & 0x0fff) * 4 ; x += 4)
350
 
                        {
351
 
                                b &= (HD63484_RAM_SIZE - 1);
352
 
                                src = hd63484_ram_r(state->m_hd63484, b, 0xffff);
353
 
 
354
 
                                if (x <= w && x + sx >= 0 && x + sx < (hd63484_regs_r(state->m_hd63484, 0xca/2, 0xffff) & 0x0fff) * 4)
355
 
                                {
356
 
                                        *BITMAP_ADDR16(bitmap, y, x + sx    ) = ((src & 0x000f) >>  0) << 0;
357
 
                                        *BITMAP_ADDR16(bitmap, y, x + sx + 1) = ((src & 0x00f0) >>  4) << 0;
358
 
                                        *BITMAP_ADDR16(bitmap, y, x + sx + 2) = ((src & 0x0f00) >>  8) << 0;
359
 
                                        *BITMAP_ADDR16(bitmap, y, x + sx + 3) = ((src & 0xf000) >> 12) << 0;
360
 
                                }
361
 
                                b++;
362
 
                        }
363
 
                }
364
 
        }
365
 
 
366
 
        return 0;
367
 
}
368
 
 
369
 
static READ16_HANDLER( test_r )
370
 
{
371
 
        adp_state *state = space->machine().driver_data<adp_state>();
372
 
        int value = 0xffff;
373
 
 
374
 
        switch (state->m_mux_data)
375
 
        {
376
 
                case 0x00: value = input_port_read(space->machine(), "x0"); break;
377
 
                case 0x01: value = input_port_read(space->machine(), "x1"); break;
378
 
                case 0x02: value = input_port_read(space->machine(), "x2"); break;
379
 
                case 0x03: value = input_port_read(space->machine(), "1P_UP"); break;
380
 
                case 0x04: value = input_port_read(space->machine(), "1P_B1"); break;
381
 
                case 0x05: value = input_port_read(space->machine(), "x5"); break;
382
 
                case 0x06: value = input_port_read(space->machine(), "1P_RIGHT"); break;
383
 
                case 0x07: value = input_port_read(space->machine(), "1P_DOWN"); break;
384
 
                case 0x08: value = input_port_read(space->machine(), "1P_LEFT"); break;
385
 
                case 0x09: value = input_port_read(space->machine(), "x9"); break;
386
 
                case 0x0a: value = input_port_read(space->machine(), "x10"); break;
387
 
                case 0x0b: value = input_port_read(space->machine(), "x11"); break;
388
 
                case 0x0c: value = input_port_read(space->machine(), "x12"); break;
389
 
                case 0x0d: value = input_port_read(space->machine(), "x13"); break;
390
 
                case 0x0e: value = input_port_read(space->machine(), "1P_START"); break;
391
 
                case 0x0f: value = input_port_read(space->machine(), "1P_COIN"); break;
392
 
        }
393
 
 
394
 
        state->m_mux_data++;
395
 
        state->m_mux_data &= 0xf;
396
 
/*
397
 
    switch (space->machine().rand() & 3)
398
 
    {
399
 
        case 0:
400
 
            return 0;
401
 
        case 1:
402
 
            return 0xffff;
403
 
        default:
404
 
            return space->machine().rand() & 0xffff;
405
 
    }
406
 
*/
407
 
        return value | (space->machine().rand() & 0x0000);
408
 
}
409
 
 
410
 
/*???*/
411
 
static WRITE16_HANDLER(wh2_w)
412
 
{
413
 
        adp_state *state = space->machine().driver_data<adp_state>();
414
 
        state->m_register_active = data;
415
 
}
416
 
 
417
 
static READ8_DEVICE_HANDLER(t2_r)
418
 
{
419
 
        UINT8 res;
420
 
        int h,w;
421
 
        res = 0;
422
 
        h = device->machine().primary_screen->height();
423
 
        w = device->machine().primary_screen->width();
424
 
 
425
 
//  popmessage("%d %d",h,w);
426
 
 
427
 
        if (device->machine().primary_screen->hpos() > h)
428
 
                res|= 0x20; //hblank
429
 
 
430
 
        if (device->machine().primary_screen->vpos() > w)
431
 
                res|= 0x40; //vblank
432
 
 
433
 
        return res;
434
 
}
435
 
 
436
 
static ADDRESS_MAP_START( skattv_mem, AS_PROGRAM, 16 )
437
 
        AM_RANGE(0x000000, 0x0fffff) AM_ROM
438
 
        AM_RANGE(0x800080, 0x800081) AM_DEVREADWRITE("hd63484", hd63484_status_r, hd63484_address_w)
439
 
        AM_RANGE(0x800082, 0x800083) AM_DEVREADWRITE("hd63484", hd63484_data_r, hd63484_data_w)
440
 
        AM_RANGE(0x800100, 0x800101) AM_READWRITE(test_r,wh2_w) //related to input
441
 
        AM_RANGE(0x800140, 0x800143) AM_DEVREADWRITE8("aysnd", ay8910_r, ay8910_address_data_w, 0x00ff) //18b too
442
 
        AM_RANGE(0x800180, 0x80019f) AM_DEVREADWRITE8("duart68681", duart68681_r, duart68681_w, 0xff )
443
 
//  AM_RANGE(0xffd246, 0xffd247) AM_READ(handler3_r)
444
 
//  AM_RANGE(0xffd248, 0xffd249) AM_READ(handler3_r)
445
 
        AM_RANGE(0xffc000, 0xffffff) AM_RAM
446
 
ADDRESS_MAP_END
447
 
 
448
 
static ADDRESS_MAP_START( quickjac_mem, AS_PROGRAM, 16 )
449
 
        AM_RANGE(0x000000, 0x0fffff) AM_ROM
450
 
        AM_RANGE(0x400000, 0x40001f) AM_DEVREADWRITE8("duart68681", duart68681_r, duart68681_w, 0xff )
451
 
        AM_RANGE(0x800080, 0x800081) AM_DEVREADWRITE("hd63484", hd63484_status_r, hd63484_address_w) // bad
452
 
        AM_RANGE(0x800082, 0x800083) AM_DEVREADWRITE("hd63484", hd63484_data_r, hd63484_data_w) // bad
453
 
        AM_RANGE(0x800100, 0x8001ff) AM_READ(test_r) //18b too
454
 
        AM_RANGE(0xffc000, 0xffffff) AM_RAM
455
 
ADDRESS_MAP_END
456
 
 
457
 
static ADDRESS_MAP_START( backgamn_mem, AS_PROGRAM, 16 )
458
 
        AM_RANGE(0x000000, 0x01ffff) AM_ROM
459
 
        AM_RANGE(0x100000, 0x10003f) AM_RAM
460
 
        AM_RANGE(0x200000, 0x20003f) AM_RAM
461
 
        AM_RANGE(0x400000, 0x40001f) AM_DEVREADWRITE8("duart68681", duart68681_r, duart68681_w, 0xff )
462
 
        AM_RANGE(0x500000, 0x503fff) AM_RAM //work RAM
463
 
        AM_RANGE(0x600006, 0x600007) AM_NOP //(r) is discarded (watchdog?)
464
 
ADDRESS_MAP_END
465
 
 
466
 
static WRITE8_HANDLER( ramdac_io_w )
467
 
{
468
 
        adp_state *state = space->machine().driver_data<adp_state>();
469
 
        switch(offset)
470
 
        {
471
 
                case 0:
472
 
                        state->m_pal.offs = data;
473
 
                        state->m_pal.offs_internal = 0;
474
 
                        break;
475
 
                case 2:
476
 
                        //mask pen reg
477
 
                        break;
478
 
                case 1:
479
 
                        switch(state->m_pal.offs_internal)
480
 
                        {
481
 
                                case 0:
482
 
                                        state->m_pal.r = ((data & 0x3f) << 2) | ((data & 0x30) >> 4);
483
 
                                        state->m_pal.offs_internal++;
484
 
                                        break;
485
 
                                case 1:
486
 
                                        state->m_pal.g = ((data & 0x3f) << 2) | ((data & 0x30) >> 4);
487
 
                                        state->m_pal.offs_internal++;
488
 
                                        break;
489
 
                                case 2:
490
 
                                        state->m_pal.b = ((data & 0x3f) << 2) | ((data & 0x30) >> 4);
491
 
                                        palette_set_color(space->machine(), state->m_pal.offs, MAKE_RGB(state->m_pal.r, state->m_pal.g, state->m_pal.b));
492
 
                                        state->m_pal.offs_internal = 0;
493
 
                                        state->m_pal.offs++;
494
 
                                        state->m_pal.offs&=0xff;
495
 
                                        break;
496
 
                        }
497
 
 
498
 
                        break;
499
 
        }
500
 
}
501
 
 
502
 
static ADDRESS_MAP_START( funland_mem, AS_PROGRAM, 16 )
503
 
        AM_RANGE(0x000000, 0x0fffff) AM_ROM
504
 
        AM_RANGE(0x800080, 0x800081) AM_DEVREADWRITE("hd63484", hd63484_status_r, hd63484_address_w)
505
 
        AM_RANGE(0x800082, 0x800083) AM_DEVREADWRITE("hd63484", hd63484_data_r, hd63484_data_w)
506
 
        AM_RANGE(0x800088, 0x80008d) AM_WRITE8(ramdac_io_w, 0x00ff)
507
 
        AM_RANGE(0x800100, 0x800101) AM_RAM //???
508
 
        AM_RANGE(0x800140, 0x800143) AM_DEVREADWRITE8("aysnd", ay8910_r, ay8910_address_data_w, 0x00ff) //18b too
509
 
        AM_RANGE(0x800180, 0x80019f) AM_DEVREADWRITE8("duart68681", duart68681_r, duart68681_w, 0xff )
510
 
        AM_RANGE(0xfc0000, 0xffffff) AM_RAM
511
 
ADDRESS_MAP_END
512
 
 
513
 
static ADDRESS_MAP_START( fstation_mem, AS_PROGRAM, 16 )
514
 
        AM_RANGE(0x000000, 0x0fffff) AM_ROM
515
 
        //400000-40001f?
516
 
        AM_RANGE(0x800080, 0x800081) AM_DEVREADWRITE("hd63484", hd63484_status_r, hd63484_address_w)
517
 
        AM_RANGE(0x800082, 0x800083) AM_DEVREADWRITE("hd63484", hd63484_data_r, hd63484_data_w)
518
 
        AM_RANGE(0x800100, 0x800101) AM_RAM //???
519
 
        AM_RANGE(0x800140, 0x800143) AM_DEVREADWRITE8("aysnd", ay8910_r, ay8910_address_data_w, 0x00ff) //18b too
520
 
        AM_RANGE(0x800180, 0x80019f) AM_DEVREADWRITE8("duart68681", duart68681_r, duart68681_w, 0xff )
521
 
        AM_RANGE(0xfc0000, 0xffffff) AM_RAM
522
 
ADDRESS_MAP_END
523
 
 
524
 
 
525
 
#if 0
526
 
static INPUT_PORTS_START( adp )
527
 
 
528
 
INPUT_PORTS_END
529
 
#endif
530
 
 
531
 
static INPUT_PORTS_START( skattv )
532
 
        PORT_INCLUDE(microtouch)
533
 
 
534
 
        PORT_START("DSW1")
535
 
        PORT_BIT( 0x0001, IP_ACTIVE_HIGH,  IPT_COIN5    )
536
 
        PORT_BIT( 0x0002, IP_ACTIVE_LOW,  IPT_COIN6    )
537
 
        PORT_BIT( 0x0004, IP_ACTIVE_LOW,  IPT_BILL1    )
538
 
        PORT_BIT( 0x0008, IP_ACTIVE_LOW,  IPT_UNKNOWN  )
539
 
        PORT_SERVICE( 0x10, IP_ACTIVE_LOW )
540
 
        PORT_BIT( 0x0020, IP_ACTIVE_LOW,  IPT_UNKNOWN  )
541
 
        PORT_BIT( 0x0040, IP_ACTIVE_LOW,  IPT_UNKNOWN  )
542
 
        PORT_BIT( 0x0080, IP_ACTIVE_LOW,  IPT_UNKNOWN  )
543
 
 
544
 
        PORT_START("x0") //vblank status?
545
 
        PORT_DIPNAME( 0x0004,0x0004, "SW0" )
546
 
        PORT_DIPSETTING(     0x0004, DEF_STR( Off ) )
547
 
        PORT_DIPSETTING(     0x0000, DEF_STR( On ) )
548
 
        PORT_BIT( 0xfffb, IP_ACTIVE_LOW,  IPT_UNUSED  )
549
 
 
550
 
        PORT_START("x1")
551
 
        PORT_DIPNAME( 0x0004,0x0004, "SW1" ) //another up button
552
 
        PORT_DIPSETTING(     0x0004, DEF_STR( Off ) )
553
 
        PORT_DIPSETTING(     0x0000, DEF_STR( On ) )
554
 
        PORT_BIT( 0xfffb, IP_ACTIVE_LOW,  IPT_UNUSED  )
555
 
 
556
 
        PORT_START("x2")
557
 
        PORT_DIPNAME( 0x0004,0x0004, "SW2" )
558
 
        PORT_DIPSETTING(     0x0004, DEF_STR( Off ) )
559
 
        PORT_DIPSETTING(     0x0000, DEF_STR( On ) )
560
 
        PORT_BIT( 0xfffb, IP_ACTIVE_LOW,  IPT_UNUSED  )
561
 
        PORT_START("1P_UP")
562
 
        PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_UP )
563
 
        PORT_BIT( 0xfffb, IP_ACTIVE_LOW,  IPT_UNUSED  )
564
 
        PORT_START("1P_B1")
565
 
        PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BUTTON1 )
566
 
        PORT_BIT( 0xfffb, IP_ACTIVE_LOW,  IPT_UNUSED  )
567
 
        PORT_START("x5")
568
 
        PORT_DIPNAME( 0x0004,0x0004, "SW5" )
569
 
        PORT_DIPSETTING(     0x0004, DEF_STR( Off ) )
570
 
        PORT_DIPSETTING(     0x0000, DEF_STR( On ) )
571
 
        PORT_BIT( 0xfffb, IP_ACTIVE_LOW,  IPT_UNUSED  )
572
 
        PORT_START("1P_RIGHT")
573
 
        PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT )
574
 
        PORT_BIT( 0xfffb, IP_ACTIVE_LOW,  IPT_UNUSED  )
575
 
        PORT_START("1P_DOWN")
576
 
        PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN )
577
 
        PORT_BIT( 0xfffb, IP_ACTIVE_LOW, IPT_UNUSED  )
578
 
        PORT_START("1P_LEFT")
579
 
        PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT )
580
 
        PORT_BIT( 0xfffb, IP_ACTIVE_LOW,  IPT_UNUSED  )
581
 
        PORT_START("x9")
582
 
        PORT_DIPNAME( 0x0004,0x0004, "SW9" )
583
 
        PORT_DIPSETTING(     0x0004, DEF_STR( Off ) )
584
 
        PORT_DIPSETTING(     0x0000, DEF_STR( On ) )
585
 
        PORT_BIT( 0xfffb, IP_ACTIVE_LOW,  IPT_UNUSED  )
586
 
        PORT_START("x10") //button 2
587
 
        PORT_DIPNAME( 0x0004,0x0004, "SW10" )
588
 
        PORT_DIPSETTING(     0x0004, DEF_STR( Off ) )
589
 
        PORT_DIPSETTING(     0x0000, DEF_STR( On ) )
590
 
        PORT_BIT( 0xfffb, IP_ACTIVE_LOW,  IPT_UNUSED  )
591
 
        PORT_START("x11")
592
 
        PORT_DIPNAME( 0x0004,0x0004, "SW11" )
593
 
        PORT_DIPSETTING(     0x0004, DEF_STR( Off ) )
594
 
        PORT_DIPSETTING(     0x0000, DEF_STR( On ) )
595
 
        PORT_BIT( 0xfffb, IP_ACTIVE_LOW,  IPT_UNUSED  )
596
 
        PORT_START("x12") //button 3
597
 
        PORT_DIPNAME( 0x0004,0x0004, "SW12" )
598
 
        PORT_DIPSETTING(     0x0004, DEF_STR( Off ) )
599
 
        PORT_DIPSETTING(     0x0000, DEF_STR( On ) )
600
 
        PORT_BIT( 0xfffb, IP_ACTIVE_LOW,  IPT_UNUSED  )
601
 
        PORT_START("x13")
602
 
        PORT_DIPNAME( 0x0004,0x0004, "SW13" )
603
 
        PORT_DIPSETTING(     0x0004, DEF_STR( Off ) )
604
 
        PORT_DIPSETTING(     0x0000, DEF_STR( On ) )
605
 
        PORT_BIT( 0xfffb, IP_ACTIVE_LOW,  IPT_UNUSED  )
606
 
        PORT_START("1P_START")
607
 
        PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_START1 )
608
 
        PORT_BIT( 0xfffb, IP_ACTIVE_LOW,  IPT_UNUSED  )
609
 
        PORT_START("1P_COIN")
610
 
        PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_COIN1 )
611
 
        PORT_BIT( 0xfffb, IP_ACTIVE_LOW,  IPT_UNUSED  )
612
 
INPUT_PORTS_END
613
 
 
614
 
/*
615
 
static INTERRUPT_GEN( adp_int )
616
 
{
617
 
    device_set_input_line(device, 1, HOLD_LINE); // ??? All irqs have the same vector, and the mask used is 0 or 7
618
 
}
619
 
*/
620
 
static const ay8910_interface ay8910_config =
621
 
{
622
 
        AY8910_LEGACY_OUTPUT,
623
 
        AY8910_DEFAULT_LOADS,
624
 
        DEVCB_HANDLER(t2_r),
625
 
        DEVCB_NULL,
626
 
        DEVCB_NULL,
627
 
        DEVCB_NULL
628
 
};
629
 
 
630
 
static const hd63484_interface adp_hd63484_intf = { 0 };
631
 
static const hd63484_interface skattva_hd63484_intf = { 1 };    // skattva hd63484 hack. to be removed once the video controller emulation is complete!
632
 
 
633
 
static MACHINE_CONFIG_START( quickjac, adp_state )
634
 
 
635
 
        MCFG_CPU_ADD("maincpu", M68000, 8000000)
636
 
        MCFG_CPU_PROGRAM_MAP(quickjac_mem)
637
 
//  MCFG_CPU_VBLANK_INT("screen", adp_int)
638
 
 
639
 
        MCFG_MACHINE_START(skattv)
640
 
        MCFG_MACHINE_RESET(skattv)
641
 
 
642
 
        MCFG_DUART68681_ADD( "duart68681", XTAL_8_664MHz / 2, skattv_duart68681_config )
643
 
 
644
 
        MCFG_SCREEN_ADD("screen", RASTER)
645
 
        MCFG_SCREEN_REFRESH_RATE(60)
646
 
        MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500))
647
 
        MCFG_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
648
 
        MCFG_SCREEN_SIZE(384, 280)
649
 
        MCFG_SCREEN_VISIBLE_AREA(0, 384-1, 0, 280-1)
650
 
        MCFG_SCREEN_UPDATE(adp)
651
 
 
652
 
        MCFG_PALETTE_LENGTH(0x10)
653
 
 
654
 
        MCFG_PALETTE_INIT(adp)
655
 
        MCFG_VIDEO_START(adp)
656
 
 
657
 
        MCFG_HD63484_ADD("hd63484", adp_hd63484_intf)
658
 
 
659
 
        MCFG_SPEAKER_STANDARD_MONO("mono")
660
 
        MCFG_SOUND_ADD("aysnd", AY8910, 3686400/2)
661
 
        MCFG_SOUND_CONFIG(ay8910_config)
662
 
        MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.10)
663
 
 
664
 
MACHINE_CONFIG_END
665
 
 
666
 
static MACHINE_CONFIG_START( skattv, adp_state )
667
 
 
668
 
        MCFG_CPU_ADD("maincpu", M68000, 8000000)
669
 
        MCFG_CPU_PROGRAM_MAP(skattv_mem)
670
 
//  MCFG_CPU_VBLANK_INT("screen", adp_int)
671
 
 
672
 
        MCFG_MACHINE_START(skattv)
673
 
        MCFG_MACHINE_RESET(skattv)
674
 
 
675
 
        MCFG_DUART68681_ADD( "duart68681", XTAL_8_664MHz / 2, skattv_duart68681_config )
676
 
 
677
 
        MCFG_SCREEN_ADD("screen", RASTER)
678
 
        MCFG_SCREEN_REFRESH_RATE(60)
679
 
        MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500))
680
 
        MCFG_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
681
 
        MCFG_SCREEN_SIZE(384, 280)
682
 
        MCFG_SCREEN_VISIBLE_AREA(0, 384-1, 0, 280-1)
683
 
        MCFG_SCREEN_UPDATE(adp)
684
 
 
685
 
        MCFG_PALETTE_LENGTH(0x10)
686
 
 
687
 
        MCFG_PALETTE_INIT(adp)
688
 
        MCFG_VIDEO_START(adp)
689
 
 
690
 
        MCFG_HD63484_ADD("hd63484", adp_hd63484_intf)
691
 
 
692
 
        MCFG_SPEAKER_STANDARD_MONO("mono")
693
 
        MCFG_SOUND_ADD("aysnd", AY8910, 3686400/2)
694
 
        MCFG_SOUND_CONFIG(ay8910_config)
695
 
        MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.10)
696
 
 
697
 
MACHINE_CONFIG_END
698
 
 
699
 
static MACHINE_CONFIG_DERIVED( skattva, skattv )
700
 
 
701
 
        MCFG_DEVICE_REMOVE("hd63484")
702
 
        MCFG_HD63484_ADD("hd63484", skattva_hd63484_intf)
703
 
MACHINE_CONFIG_END
704
 
 
705
 
static MACHINE_CONFIG_START( backgamn, adp_state )
706
 
 
707
 
        MCFG_CPU_ADD("maincpu", M68000, 8000000)
708
 
        MCFG_CPU_PROGRAM_MAP(backgamn_mem)
709
 
 
710
 
        MCFG_DUART68681_ADD( "duart68681", XTAL_8_664MHz / 2, skattv_duart68681_config )
711
 
 
712
 
        MCFG_MACHINE_START(skattv)
713
 
        MCFG_MACHINE_RESET(skattv)
714
 
 
715
 
        MCFG_SCREEN_ADD("screen", RASTER)
716
 
        MCFG_SCREEN_REFRESH_RATE(60)
717
 
        MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500))
718
 
        MCFG_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
719
 
        MCFG_SCREEN_SIZE(640, 480)
720
 
        MCFG_SCREEN_VISIBLE_AREA(0, 640-1, 0, 480-1)
721
 
        MCFG_SCREEN_UPDATE(adp)
722
 
 
723
 
        MCFG_PALETTE_LENGTH(0x10)
724
 
 
725
 
//  MCFG_PALETTE_INIT(adp)
726
 
        MCFG_VIDEO_START(adp)
727
 
 
728
 
        MCFG_HD63484_ADD("hd63484", adp_hd63484_intf)
729
 
 
730
 
        MCFG_SPEAKER_STANDARD_MONO("mono")
731
 
        MCFG_SOUND_ADD("aysnd", AY8910, 3686400/2)
732
 
        MCFG_SOUND_CONFIG(ay8910_config)
733
 
        MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.10)
734
 
 
735
 
MACHINE_CONFIG_END
736
 
 
737
 
static MACHINE_CONFIG_DERIVED( funland, skattv )
738
 
        MCFG_CPU_MODIFY("maincpu")
739
 
        MCFG_CPU_PROGRAM_MAP(funland_mem)
740
 
 
741
 
        MCFG_PALETTE_LENGTH(0x100)
742
 
        MCFG_PALETTE_INIT(all_black)
743
 
MACHINE_CONFIG_END
744
 
 
745
 
static MACHINE_CONFIG_DERIVED( fstation, skattv )
746
 
        MCFG_CPU_MODIFY("maincpu")
747
 
        MCFG_CPU_PROGRAM_MAP(fstation_mem)
748
 
MACHINE_CONFIG_END
749
 
 
750
 
 
751
 
ROM_START( quickjac )
752
 
        ROM_REGION( 0x100000, "maincpu", 0 )
753
 
        ROM_LOAD16_BYTE( "quick_jack_index_a.1.u2.bin", 0x00000, 0x10000, CRC(c2fba6fe) SHA1(f79e5913f9ded1e370cc54dd55860263b9c51d61) )
754
 
        ROM_LOAD16_BYTE( "quick_jack_index_a.2.u6.bin", 0x00001, 0x10000, CRC(210cb89b) SHA1(8eac60d40b60e845f9c02fee6c447f125ba5d1ab) )
755
 
 
756
 
        ROM_REGION( 0x40000, "gfx1", 0 )
757
 
        ROM_LOAD16_BYTE( "quick_jack_video_inde_a.1.u2.bin", 0x00001, 0x20000, CRC(73c27fc6) SHA1(12429bc0009b7754e08d2b6a5e1cd8251ab66e2d) )
758
 
        ROM_LOAD16_BYTE( "quick_jack_video_inde_a.2.u6.bin", 0x00000, 0x20000, CRC(61d55be2) SHA1(bc17dc91fd1ef0f862eb0d7dbbbfa354a8403eb8) )
759
 
ROM_END
760
 
 
761
 
ROM_START( skattv )
762
 
        ROM_REGION( 0x100000, "maincpu", 0 )
763
 
        ROM_LOAD16_BYTE( "f2_i.bin", 0x00000, 0x20000, CRC(3cb8b431) SHA1(e7930876b6cd4cba837c3da05d6948ef9167daea) )
764
 
        ROM_LOAD16_BYTE( "f2_ii.bin", 0x00001, 0x20000, CRC(0db1d2d5) SHA1(a29b0299352e0b2b713caf02aa7978f2a4b34e37) )
765
 
 
766
 
        ROM_REGION( 0x40000, "gfx1", 0 )
767
 
        ROM_LOAD16_BYTE( "f1_i.bin", 0x00001, 0x20000, CRC(4869a889) SHA1(ad9f3fcdfd3630f9ad5b93a9d2738de9fc3514d3) )
768
 
        ROM_LOAD16_BYTE( "f1_ii.bin", 0x00000, 0x20000, CRC(17681537) SHA1(133685854b2080aaa3d0cced0287bc454d1f3bfc) )
769
 
ROM_END
770
 
 
771
 
ROM_START( skattva )
772
 
        ROM_REGION( 0x100000, "maincpu", 0 )
773
 
        ROM_LOAD16_BYTE( "skat_tv_version_ts3.1.u2.bin", 0x00000, 0x20000, CRC(68f82fe8) SHA1(d5f9cb600531cdd748616d8c042b6a151ebe205a) )
774
 
        ROM_LOAD16_BYTE( "skat_tv_version_ts3.2.u6.bin", 0x00001, 0x20000, CRC(4f927832) SHA1(bbe013005fd00dd42d12939eab5c80ec44a54b71) )
775
 
 
776
 
        ROM_REGION( 0x40000, "gfx1", 0 )
777
 
        ROM_LOAD16_BYTE( "skat_tv_videoprom_t2.1.u2.bin", 0x00001, 0x20000, CRC(de6f275b) SHA1(0c396fa4d1975c8ccc4967d330b368c0697d2124) )
778
 
        ROM_LOAD16_BYTE( "skat_tv_videoprom_t2.2.u5.bin", 0x00000, 0x20000, CRC(af3e60f9) SHA1(c88976ea42cf29a092fdee18377b32ffe91e9f33) )
779
 
ROM_END
780
 
 
781
 
ROM_START( backgamn )
782
 
        ROM_REGION( 0x100000, "maincpu", 0 )
783
 
        ROM_LOAD16_BYTE( "b_f2_i.bin", 0x00000, 0x10000, CRC(9e42937c) SHA1(85d462a560b85b03ee9d341e18815b7c396118ac) )
784
 
        ROM_LOAD16_BYTE( "b_f2_ii.bin", 0x00001, 0x10000, CRC(8e0ee50c) SHA1(2a05c337db1131b873646aa4109593636ebaa356) )
785
 
 
786
 
        ROM_REGION( 0x40000, "gfx1", 0 )
787
 
        ROM_LOAD16_BYTE( "b_f1_i.bin", 0x00001, 0x20000, NO_DUMP )
788
 
        ROM_LOAD16_BYTE( "b_f1_ii.bin", 0x00000, 0x20000, NO_DUMP )
789
 
ROM_END
790
 
 
791
 
ROM_START( fashiong )
792
 
        ROM_REGION( 0x100000, "maincpu", 0 )
793
 
        ROM_LOAD16_BYTE( "fashion_gambler_s6_i.bin", 0x00000, 0x80000, CRC(827a164d) SHA1(dc16380226cabdefbfd893cb50cbfca9e134be40) )
794
 
        ROM_LOAD16_BYTE( "fashion_gambler_s6_ii.bin", 0x00001, 0x80000, CRC(5a2466d1) SHA1(c113a2295beed2011c70887a1f2fcdec00b055cb) )
795
 
 
796
 
        ROM_REGION( 0x100000, "gfx1", 0 )
797
 
        ROM_LOAD16_BYTE( "fashion_gambler_video_s2_i.bin", 0x00001, 0x80000, CRC(d1ee9133) SHA1(e5fdfa303a3317f8f5fbdc03438ee97415afff4b) )
798
 
        ROM_LOAD16_BYTE( "fashion_gambler_video_s2_ii.bin", 0x00000, 0x80000, CRC(07b1e722) SHA1(594cbe9edfea6b04a4e49d1c1594f1c3afeadef5) )
799
 
 
800
 
        ROM_REGION( 0x4000, "user1", 0 )
801
 
        //nvram - 16 bit
802
 
        ROM_LOAD16_BYTE( "m48z08post.bin", 0x0000, 0x2000, CRC(2d317a04) SHA1(c690c0d4b2259231d642ab5a30fcf389ba987b70) )
803
 
        ROM_LOAD16_BYTE( "m48z08posz.bin", 0x0001, 0x2000, CRC(7c5a4b78) SHA1(262d0d7f5b24e356ab54eb2450bbaa90e3fb5464) )
804
 
ROM_END
805
 
 
806
 
ROM_START( fashiong2 )
807
 
        ROM_REGION( 0x100000, "maincpu", 0 )
808
 
        ROM_LOAD16_BYTE( "fashion_gambler_f3_i.u2", 0x00000, 0x80000, CRC(2939279a) SHA1(75798ea41dd713d294ea341cbcdb73a76d9f63f4) )
809
 
        ROM_LOAD16_BYTE( "fashion_gambler_f3_ii.u6.bin", 0x00001, 0x80000, CRC(7d48e9ab) SHA1(603e946b95c53ee75c9ca10751316e723242424f) )
810
 
 
811
 
        ROM_REGION( 0x100000, "gfx1", 0 )
812
 
        ROM_LOAD16_BYTE( "fashion_gambler_video_f2_i.u2", 0x00001, 0x80000, CRC(54ea6f10) SHA1(a1284ec34e4e78acba08dc00d5ba47c3457531f8) )
813
 
        ROM_LOAD16_BYTE( "fashion_gambler_video_f2_ii.u5", 0x00000, 0x80000, CRC(c292a278) SHA1(9f66531ae9f202d364f47c7ed3551483fc9d27b0) )
814
 
 
815
 
        ROM_REGION( 0x4000, "user1", 0 )
816
 
        //nvram - 16 bit - taken from parent
817
 
        ROM_LOAD16_BYTE( "m48z08post.bin", 0x0000, 0x2000, CRC(2d317a04) SHA1(c690c0d4b2259231d642ab5a30fcf389ba987b70) )
818
 
        ROM_LOAD16_BYTE( "m48z08posz.bin", 0x0001, 0x2000, CRC(7c5a4b78) SHA1(262d0d7f5b24e356ab54eb2450bbaa90e3fb5464) )
819
 
ROM_END
820
 
 
821
 
ROM_START( funlddlx )
822
 
        ROM_REGION( 0x100000, "maincpu", 0 )
823
 
        ROM_LOAD16_BYTE( "fldl_f6_1.bin", 0x00001, 0x80000, CRC(85c74040) SHA1(24a7d3e6acbaf73ef9817379bef64c38a9ff7896) )
824
 
        ROM_LOAD16_BYTE( "fldl_f6_2.bin", 0x00000, 0x80000, CRC(93bf1a4b) SHA1(5b4353feba1e0d4402cd26f4855e3803e6be43b9) )
825
 
 
826
 
        ROM_REGION( 0x100000, "gfx1", 0 )
827
 
        ROM_LOAD16_BYTE( "flv_f1_i.bin", 0x00001, 0x80000, CRC(286fccdc) SHA1(dd23deda625e486a7cfe1f3268731d10053a96e9) )
828
 
        ROM_LOAD16_BYTE( "flv_f1_ii.bin", 0x00000, 0x80000, CRC(2aa904e6) SHA1(864530b136dd488d619cc95f48e7dce8d93d88e0) )
829
 
ROM_END
830
 
 
831
 
ROM_START( fstation )
832
 
        ROM_REGION( 0x100000, "maincpu", 0 )
833
 
        ROM_LOAD16_BYTE( "spielekoffer_9_sp_fun_station_f1.i", 0x00000, 0x80000, CRC(4572efbd) SHA1(e0a91d32ab4096767cafb743523d038f5e0d3238) )
834
 
        ROM_LOAD16_BYTE( "spielekoffer_9_sp_fun_station_f1.ii", 0x00001, 0x80000, CRC(a972184d) SHA1(1849e71e696039f07b7b67c4172c7999e81664c3) )
835
 
 
836
 
        ROM_REGION( 0x100000, "gfx1", 0 )
837
 
        ROM_LOAD16_BYTE( "spielekoffer_video_9_sp_f1.i", 0x00001, 0x80000, CRC(b6eb971e) SHA1(14e3272c66a82db0f77123974eea28f308209b1b) )
838
 
        ROM_LOAD16_BYTE( "spielekoffer_video_9_sp_f1.ii", 0x00000, 0x80000, CRC(64138dcb) SHA1(1b629915cba32f8f6164ae5075c175b522b4a323) )
839
 
ROM_END
840
 
 
841
 
 
842
 
GAME( 1990, backgamn,        0, backgamn,    skattv,    0, ROT0,  "ADP",     "Backgammon", GAME_NOT_WORKING )
843
 
GAME( 1993, quickjac,        0, quickjac,    skattv,    0, ROT0,  "ADP",     "Quick Jack", GAME_NOT_WORKING )
844
 
GAME( 1994, skattv,          0, skattv,      skattv,    0, ROT0,  "ADP",     "Skat TV", GAME_NOT_WORKING )
845
 
GAME( 1995, skattva,    skattv, skattva,     skattv,    0, ROT0,  "ADP",     "Skat TV (version TS3)", GAME_NOT_WORKING )
846
 
GAME( 1997, fashiong,        0, skattv,      skattv,    0, ROT0,  "ADP",     "Fashion Gambler", GAME_NOT_WORKING )
847
 
GAME( 1997, fashiong2,fashiong, skattv,      skattv,    0, ROT0,  "ADP",     "Fashion Gambler (Set 2)", GAME_NOT_WORKING )
848
 
GAME( 1999, funlddlx,        0, funland,     skattv,    0, ROT0,  "Stella",  "Funny Land de Luxe", GAME_NOT_WORKING )
849
 
GAME( 2000, fstation,        0, fstation,    skattv,    0, ROT0,  "ADP",     "Fun Station Spielekoffer 9 Spiele", GAME_NOT_WORKING )