1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
|
/******************************************************************************
- NORAUT POKER -
------------------
Driver by Roberto Fresca & Angelo Salese.
Games running on this hardware:
* Noraut Poker, 1988, Noraut Ltd.
* Poker, 198?, Unknown.
*******************************************************************************
Hardware Notes:
---------------
1x Z80
3x PPI 8255
2x 6116 SRAM
1x 3.6 Vcc Battery.
1x 18.432 MHz. Xtal.
1x 555 + unknown yellow resonator, near the edge connector.
1x 555 + resnet, near the battery.
2x 3pins jumpers (between the Z80 and ROM)
JP1 (ABC); JP2 (DEF)
PCB silksceened: AB+DE=512 BC+DE=256
(CUT BC) EF=64/128
1x 10 DIP switches bank.
PCB silksceened: SMART-BOARD 131191 ISS.E (Made in USA)
*******************************************************************************
Noraut Edge Connector (pinouts)
--------------------------------
Component PN Solder Side
--------------------------------
GND 01 GND
5v DC 02 5v DC
03
12v DC 04 12v DC
05
06
07
0v 08 Readout Switch
0v 09 Low level hopper
0v 10 50p in
0v 11 pound in
0v 12 Bet switch
0v 13 Deal switch
0v 14 Hold 1 switch
0v 15 Half Gamble switch
0v 16 Change Card switch
Refil 17 Coin count/sense from hopper
Low Switch 18 High swicth
Hold 3 Switch 19 Hold 2 switch
Hold 5 Switch 20 Hold 4 switch
10p coin 21 Deflect
22 50p in meter
23 Hopper Motor Drive (low volt switch line NOT 24v)
24
25 spk+
26 Panel lamps clock
Monitor sync 27 Hold 1 lamp
Bet lamp 28 Deal lamp
Change lamp 29 Hold 4 lamp
Hold 5 lamp 30 Panel lights reset
High lamp 31 Half Gamble lamp
Hold 2 lamp 32 Low lamp
10p Meter out 33 Meter refil
Video Green 34 Hold 3 lamp
Video Blue 35 10p in Meter
Video Red 36 Spark Detect (Not on all boards)
*******************************************************************************
*** Game Notes ***
Nothing, yet...
*******************************************************************************
--------------------
*** Memory Map ***
--------------------
0x0000 - 0x1FFF ; ROM space.
0x6000 - 0x63FF ; NVRAM.
0x60 - 0x63 ; PPI 8255 0 - DIP Switches.
0xA0 - 0xA3 ; PPI 8255 1 - Regular Inputs.
0xC0 - 0xC3 ; PPI 8255 2 - Video RAM.
*******************************************************************************
DRIVER UPDATES:
[2009-01-27]
- Initial release.
- Defined ROM, RAM.
- Added 2x PPI 8255 for regular I/O.
- Added complete inputs and hooked DIP switches.
- Added video RAM support.
- Added NVRAM.
- Added lamps support.
- Added coin counters.
- Identified the sound writes.
- Added hardware description.
- Added pinout scheme.
- Added technical notes.
[2009-01-28]
- Merged GTI Poker (gtipoker.c) with this driver.
- Added new memory map and machine driver for gtipoker.
- Hooked 2x PPI 8255 to gtipoker.
- Hooked the video RAM access ports to gtipoker.
- Changed norautpn description from Noraut Poker (No Payout),
to Noraut Poker (bootleg), since the game has payout system.
- Some clean-ups.
TODO:
- Analize the extra 8255 at 0xc0-0xc3 (full bidirectional port w/hshk)
- Video RAM (through 3rd PPI?).
- Find if wide chars are hardcoded or tied to a bit.
- Proper colors (missing PROM?)
- Lamps layout.
- Discrete sound.
*******************************************************************************/
#define MASTER_CLOCK XTAL_18_432MHz
#include "driver.h"
#include "cpu/z80/z80.h"
#include "machine/8255ppi.h"
#include "sound/dac.h"
static UINT16 *np_vram;
static UINT16 np_addr;
/*************************
* Video Hardware *
*************************/
static VIDEO_START( norautp )
{
np_vram = auto_malloc(0x1000);
}
static VIDEO_UPDATE( norautp )
{
int x, y, count;
count = 0;
bitmap_fill(bitmap, cliprect, screen->machine->pens[0]); //black pen
for(y = 0; y < 8; y++)
{
/*Double width*/
if(y == 2 || (y >= 4 && y < 6))
{
for(x = 0; x < 16; x++)
{
int tile = np_vram[count] & 0x3f;
int colour = (np_vram[count] & 0xc0) >> 6;
drawgfx(bitmap,screen->machine->gfx[1], tile, colour, 0, 0, x * 32, y * 32, cliprect, TRANSPARENCY_NONE, 0);
count+=2;
}
}
else
{
for(x = 0; x < 32; x++)
{
int tile = np_vram[count] & 0x3f;
int colour = (np_vram[count] & 0xc0) >> 6;
drawgfx(bitmap,screen->machine->gfx[0], tile, colour, 0, 0, x * 16, y * 32, cliprect, TRANSPARENCY_NONE, 0);
count++;
}
}
}
return 0;
}
static PALETTE_INIT( norautp )
{
/* 1st gfx bank */
palette_set_color(machine, 0, MAKE_RGB(0x00, 0x00, 0xff)); /* blue */
palette_set_color(machine, 1, MAKE_RGB(0x7f, 0xff, 0x7f)); /* white? */
palette_set_color(machine, 2, MAKE_RGB(0x00, 0x00, 0xff)); /* blue */
palette_set_color(machine, 3, MAKE_RGB(0xff, 0xff, 0xff)); /* white */
palette_set_color(machine, 4, MAKE_RGB(0xff, 0xff, 0xff)); /* white */
palette_set_color(machine, 5, MAKE_RGB(0xff, 0x00, 0x00)); /* red */
palette_set_color(machine, 6, MAKE_RGB(0xff, 0xff, 0xff)); /* white */
palette_set_color(machine, 7, MAKE_RGB(0x00, 0x00, 0x00)); /* black */
}
/*************************
* R/W Handlers *
*************************/
static WRITE8_DEVICE_HANDLER( lamps_w )
{
/* LAMPS:
7654 3210
---- ---x Change Card / (Save?)
---- --x- Hi/Lo
---- -x-- Hold 1
---- x--- Hold 2
---x ---- Hold 3
--x- ---- Hold 4
-x-- ---- Hold 5
x--- ---- Start (poker)
*/
output_set_lamp_value(0, (data >> 0) & 1); /* Change */
output_set_lamp_value(1, (data >> 1) & 1); /* Hi/Lo */
output_set_lamp_value(2, (data >> 2) & 1); /* Hold 1 */
output_set_lamp_value(3, (data >> 3) & 1); /* Hold 2 */
output_set_lamp_value(4, (data >> 4) & 1); /* Hold 3 */
output_set_lamp_value(5, (data >> 5) & 1); /* Hold 4 */
output_set_lamp_value(6, (data >> 6) & 1); /* Hold 5 */
output_set_lamp_value(7, (data >> 7) & 1); /* Start */
}
static WRITE8_DEVICE_HANDLER( ccounter_w )
{
coin_counter_w(0, data & 0x20); /* Coin1 */
coin_counter_w(1, data & 0x10); /* Coin2 */
coin_counter_w(2, data & 0x08); /* Payout */
}
static WRITE8_DEVICE_HANDLER( sndlamp_w )
{
output_set_lamp_value(8, (data >> 0) & 1); /* Start? */
output_set_lamp_value(9, (data >> 1) & 1); /* Bet */
/* the 4 MSB are for discrete (or DAC) sound */
dac_data_w(0, (data & 0xf0)); /* Sound DAC? */
}
/*game waits for bit 7 (0x80) to be set.*/
static READ8_HANDLER( test_r )
{
return 0xff;
}
static WRITE8_HANDLER( vram_data_w )
{
np_vram[np_addr] = data & 0xff;
}
static WRITE8_HANDLER( vram_addr_w )
{
np_addr = data;
}
/*************************
* Memory Map Information *
*************************/
static ADDRESS_MAP_START( norautp_map, ADDRESS_SPACE_PROGRAM, 8 )
AM_RANGE(0x0000, 0x1fff) AM_ROM
AM_RANGE(0x6000, 0x63ff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size)
ADDRESS_MAP_END
static ADDRESS_MAP_START( norautp_portmap, ADDRESS_SPACE_IO, 8 )
ADDRESS_MAP_GLOBAL_MASK(0xff)
AM_RANGE(0x60, 0x63) AM_DEVREADWRITE(PPI8255, "ppi8255_0", ppi8255_r, ppi8255_w)
AM_RANGE(0xa0, 0xa3) AM_DEVREADWRITE(PPI8255, "ppi8255_1", ppi8255_r, ppi8255_w)
AM_RANGE(0xc0, 0xc0) AM_WRITE(vram_data_w)
AM_RANGE(0xc1, 0xc1) AM_WRITE(vram_addr_w)
AM_RANGE(0xc2, 0xc2) AM_READ(test_r)
// AM_RANGE(0xc0, 0xc3) AM_DEVREADWRITE(PPI8255, "ppi8255_2", ppi8255_r, ppi8255_w)
ADDRESS_MAP_END
/*
Video RAM R/W:
c0 --> W ; data (in case of PPI, port data)
c1 --> W ; addressing
c2 --> R ; status?
c3 --> W ; alternate 00 & 01 (in case of PPI, seting reseting bit 0 of hadshaked port)
*/
static ADDRESS_MAP_START( gtipoker_map, ADDRESS_SPACE_PROGRAM, 8 )
AM_RANGE(0x0000, 0x1fff) AM_ROM
AM_RANGE(0xd000, 0xd3ff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size)
ADDRESS_MAP_END
static ADDRESS_MAP_START( gtipoker_portmap, ADDRESS_SPACE_IO, 8 )
ADDRESS_MAP_GLOBAL_MASK(0xff)
AM_RANGE(0x7c, 0x7f) AM_DEVREADWRITE(PPI8255, "ppi8255_0", ppi8255_r, ppi8255_w)
AM_RANGE(0xbc, 0xbf) AM_DEVREADWRITE(PPI8255, "ppi8255_1", ppi8255_r, ppi8255_w)
AM_RANGE(0xdc, 0xdc) AM_WRITE(vram_data_w)
AM_RANGE(0xdd, 0xdd) AM_WRITE(vram_addr_w)
AM_RANGE(0xde, 0xde) AM_READ(test_r)
// AM_RANGE(0xdc, 0xdf) AM_DEVREADWRITE(PPI8255, "ppi8255_2", ppi8255_r, ppi8255_w)
AM_RANGE(0xef, 0xef) AM_READ(test_r)
ADDRESS_MAP_END
/*************************
* Input Ports *
*************************/
static INPUT_PORTS_START( norautp )
PORT_START("IN0")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Start / Deal") PORT_CODE(KEYCODE_1) /* Deal */
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Bet / Take") PORT_CODE(KEYCODE_2) /* Bet / Take */
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2) /* Coin A */
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(2) /* Coin B */
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON8 ) PORT_NAME("Hi") PORT_CODE(KEYCODE_A) /* Hi */
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON9 ) PORT_NAME("Lo") PORT_CODE(KEYCODE_S) /* Lo */
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON11 ) PORT_NAME("Payout") PORT_CODE(KEYCODE_W) /* Payout */
PORT_START("IN1")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON10 ) PORT_NAME("Change Card") PORT_CODE(KEYCODE_D) /* Change Card */
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON11 ) PORT_NAME("Save (Half Gamble)") PORT_CODE(KEYCODE_F) /* Half Gamble */
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Hold 1") PORT_CODE(KEYCODE_Z) /* Hold 1 */
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Hold 2") PORT_CODE(KEYCODE_X) /* Hold 2 */
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Hold 3") PORT_CODE(KEYCODE_C) /* Hold 3 */
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("Hold 4") PORT_CODE(KEYCODE_V) /* Hold 4 */
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_NAME("Hold 5") PORT_CODE(KEYCODE_B) /* Hold 5 */
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN3 ) PORT_IMPULSE(2) /* Coin C */
PORT_START("DSW1")
PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x01, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x02, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x04, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x08, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x10, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0x20, 0x20, DEF_STR( Coinage ) )
PORT_DIPSETTING( 0x20, "A=5; B=25; C=1" )
PORT_DIPSETTING( 0x00, "A=50; B=25; C=5" )
PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x40, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0x80, 0x80, "Set Value" )
PORT_DIPSETTING( 0x80, "2 Pence" )
PORT_DIPSETTING( 0x00, "10 Pence" )
INPUT_PORTS_END
static INPUT_PORTS_START( poker )
PORT_START("IN0")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Start / Deal") PORT_CODE(KEYCODE_1) /* Deal */
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Bet / Change Card") PORT_CODE(KEYCODE_2) /* Bet / Change Card */
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2) /* Coin A */
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(2) /* Coin B */
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON8 ) PORT_NAME("Hi") PORT_CODE(KEYCODE_A) /* Hi */
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON9 ) PORT_NAME("Lo") PORT_CODE(KEYCODE_S) /* Lo */
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON12 ) PORT_NAME("Payout") PORT_CODE(KEYCODE_W) /* Payout */
PORT_START("IN1")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON10 ) PORT_NAME("Stand (Take)") PORT_CODE(KEYCODE_D) /* Stand (Take) */
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON11 ) PORT_NAME("Half Gamble") PORT_CODE(KEYCODE_F) /* Half Gamble */
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Hold 1") PORT_CODE(KEYCODE_Z) /* Hold 1 */
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Hold 2") PORT_CODE(KEYCODE_X) /* Hold 2 */
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Hold 3") PORT_CODE(KEYCODE_C) /* Hold 3 */
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("Hold 4") PORT_CODE(KEYCODE_V) /* Hold 4 */
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_NAME("Hold 5") PORT_CODE(KEYCODE_B) /* Hold 5 */
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON13 ) PORT_NAME("Cancel") PORT_CODE(KEYCODE_N) /* Cancel */
PORT_START("DSW1")
PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x01, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x02, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0x04, 0x04, "Bet Max" )
PORT_DIPSETTING( 0x04, "1" )
PORT_DIPSETTING( 0x00, "5" )
PORT_DIPNAME( 0x08, 0x08, DEF_STR( Coinage ) )
PORT_DIPSETTING( 0x08, "A=1; B=5" )
PORT_DIPSETTING( 0x00, "A=50; B=5" )
PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x10, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x20, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x40, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
INPUT_PORTS_END
/*************************
* Graphics Layouts *
*************************/
static const gfx_layout charlayout =
{
16,32,
RGN_FRAC(1,1),
1,
{ 0 },
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 },
{ 0*16, 0*16, 1*16, 1*16, 2*16, 2*16, 3*16, 3*16, 4*16, 4*16, 5*16, 5*16, 6*16, 6*16, 7*16, 7*16,
8*16, 8*16, 9*16, 9*16, 10*16,10*16,11*16,11*16,12*16,12*16,13*16,13*16,14*16,14*16,15*16,15*16 },
16*16
};
static const gfx_layout charlayout32x32 =
{
32,32,
RGN_FRAC(1,1),
1,
{ 0 },
{ 0,0, 1,1, 2,2, 3,3, 4,4, 5,5, 6,6, 7,7, 8,8, 9,9, 10,10, 11,11, 12,12, 13,13, 14,14, 15,15 },
{ 0*16, 0*16, 1*16, 1*16, 2*16, 2*16, 3*16, 3*16, 4*16, 4*16, 5*16, 5*16, 6*16, 6*16, 7*16, 7*16,
8*16, 8*16, 9*16, 9*16, 10*16,10*16,11*16,11*16,12*16,12*16,13*16,13*16,14*16,14*16,15*16,15*16 },
16*16
};
/******************************
* Graphics Decode Information *
******************************/
static GFXDECODE_START( norautp )
GFXDECODE_ENTRY( "gfx", 0, charlayout, 0, 4 )
GFXDECODE_ENTRY( "gfx", 0, charlayout32x32, 0, 4 )
GFXDECODE_END
/************************************
* PPI 8255 (x3) Interface *
************************************/
static const ppi8255_interface ppi8255_intf[3] =
{
{ /* (60-63) Mode 0 - Port A set as input */
DEVCB_INPUT_PORT("DSW1"), /* Port A read */
DEVCB_NULL, /* Port B read */
DEVCB_NULL, /* Port C read */
DEVCB_NULL, /* Port A write */
DEVCB_HANDLER(lamps_w), /* Port B write */
DEVCB_HANDLER(ccounter_w) /* Port C write */
},
{ /* (a0-a3) Mode 0 - Ports A & B set as input */
DEVCB_INPUT_PORT("IN0"), /* Port A read */
DEVCB_INPUT_PORT("IN1"), /* Port B read */
DEVCB_NULL, /* Port C read */
DEVCB_NULL, /* Port A write */
DEVCB_NULL, /* Port B write */
DEVCB_HANDLER(sndlamp_w) /* Port C write */
},
{ /* (c0-c3) Group A Mode 2 (5-handshacked bidirectional port) */
DEVCB_NULL, /* Port A read */
DEVCB_NULL, /* Port B read */
DEVCB_NULL, /* Port C read */
DEVCB_NULL, /* Port A write */
DEVCB_NULL, /* Port B write */
DEVCB_NULL /* Port C write */
}
};
/*************************
* Machine Drivers *
*************************/
static MACHINE_DRIVER_START( norautp )
/* basic machine hardware */
MDRV_CPU_ADD("main", Z80, MASTER_CLOCK/6) /* guess */
MDRV_CPU_PROGRAM_MAP(norautp_map, 0)
MDRV_CPU_IO_MAP(norautp_portmap, 0)
MDRV_CPU_VBLANK_INT("main", irq0_line_hold)
MDRV_NVRAM_HANDLER(generic_0fill)
/* 3x 8255 */
MDRV_PPI8255_ADD( "ppi8255_0", ppi8255_intf[0] )
MDRV_PPI8255_ADD( "ppi8255_1", ppi8255_intf[1] )
MDRV_PPI8255_ADD( "ppi8255_2", ppi8255_intf[2] )
/* video hardware */
MDRV_SCREEN_ADD("main", RASTER)
MDRV_SCREEN_REFRESH_RATE(60)
MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
MDRV_SCREEN_SIZE(32*16, 32*16)
MDRV_SCREEN_VISIBLE_AREA(2*16, 31*16-1, 0*16, 16*16-1)
MDRV_GFXDECODE(norautp)
MDRV_PALETTE_INIT(norautp)
MDRV_PALETTE_LENGTH(8)
MDRV_VIDEO_START(norautp)
MDRV_VIDEO_UPDATE(norautp)
/* sound hardware */
MDRV_SPEAKER_STANDARD_MONO("mono")
MDRV_SOUND_ADD("dac", DAC, 0)
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
MACHINE_DRIVER_END
static MACHINE_DRIVER_START( gtipoker )
MDRV_IMPORT_FROM(norautp)
MDRV_CPU_MODIFY("main")
MDRV_CPU_PROGRAM_MAP(gtipoker_map, 0)
MDRV_CPU_IO_MAP(gtipoker_portmap, 0)
MACHINE_DRIVER_END
/*************************
* Rom Load *
*************************/
ROM_START( norautp )
ROM_REGION( 0x10000, "main", 0 )
ROM_LOAD( "jpoker.bin", 0x0000, 0x2000, CRC(e22ed34d) SHA1(108f034335b5bed183ee316a61880f7b9485b34f) )
ROM_REGION( 0x10000, "gfx", ROMREGION_DISPOSE )
ROM_LOAD( "displayrom.bin", 0x00000, 0x10000, CRC(ed3605bd) SHA1(0174e880835815558328789226234e36b673b249) )
ROM_END
/* Has (c)1983 GTI in the roms, and was called 'Poker.zip' GFX roms contain 16x16 tiles of cards */
/* Nothing else is known about this set / game */
ROM_START( gtipoker )
ROM_REGION( 0x10000, "main", 0 )
ROM_LOAD( "u12.rom", 0x0000, 0x1000, CRC(abaa257a) SHA1(f830213ae0aaad5a9a44ec77c5a186e9e02fa041) )
ROM_LOAD( "u18.rom", 0x1000, 0x1000, CRC(1b7e2877) SHA1(717fb70889804baa468203f20b1e7f73b55cc21e) )
ROM_REGION( 0x1000, "gfx",ROMREGION_DISPOSE )
ROM_LOAD( "u31.rom", 0x0000, 0x1000, CRC(2028db2c) SHA1(0f81bb71e88c60df3817f58c28715ce2ea01ad4d) )
ROM_END
/*
Poker game - manufacturer unknown
Z80 CPU
Program rom = 2764 (2nd Half blank)
Character rom = 2732
18.432 Mhz crystal
sound probably discrete with ne555 timer chip (located near amp/volume control)
*/
ROM_START( norautpn )
ROM_REGION( 0x10000, "main", 0 )
ROM_LOAD( "prog.bin", 0x0000, 0x2000, CRC(8b1cfd24) SHA1(d673baed1c1e5b54a34b7a5857b269a725737e92) )
ROM_REGION( 0x1000, "gfx", ROMREGION_DISPOSE )
ROM_LOAD( "char.bin", 0x0000, 0x1000, CRC(955eac6f) SHA1(470d8bad1a5d2a0a08dd129e6393c3c3a4ef2159) )
ROM_END
/*************************
* Game Drivers *
*************************/
/* YEAR NAME PARENT MACHINE INPUT INIT ROT COMPANY FULLNAME FLAGS */
GAME( 1988, norautp, 0, norautp, norautp, 0, ROT0, "Noraut Ltd.", "Noraut Poker", GAME_NO_SOUND | GAME_IMPERFECT_COLORS )
GAME( 1983, gtipoker, 0, gtipoker, norautp, 0, ROT0, "GTI Inc", "GTI Poker", GAME_NO_SOUND | GAME_IMPERFECT_COLORS | GAME_NOT_WORKING )
/*The following has everything uncertain, seems a bootleg/hack and doesn't have any identification strings in program rom. */
GAME( 198?, norautpn, norautp, norautp, poker, 0, ROT0, "bootleg?", "Noraut Poker (bootleg)", GAME_NO_SOUND | GAME_IMPERFECT_COLORS )
|