-
Notifications
You must be signed in to change notification settings - Fork 109
/
asteroid.c
927 lines (772 loc) · 31.7 KB
/
asteroid.c
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
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
/***************************************************************************
Atari Asteroids hardware
Games supported:
* Asteroids
* Asteroids Deluxe
* Lunar Lander
Known bugs:
* sound emu isn't perfect - sometimes explosions don't register in Asteroids
* the low background thrust in Lunar Lander isn't emulated
* the ERROR message in Asteroids Deluxe self test is related to a pokey problem
****************************************************************************
Asteroids Memory Map (preliminary)
Asteroids settings:
0 = OFF 1 = ON X = Don't Care $ = Atari suggests
8 SWITCH DIP
87654321
--------
XXXXXX11 English
XXXXXX10 German
XXXXXX01 French
XXXXXX00 Spanish
XXXXX1XX 4-ship game
XXXXX0XX 3-ship game
11XXXXXX Free Play
10XXXXXX 1 Coin for 2 Plays
01XXXXXX 1 Coin for 1 Play
00XXXXXX 2 Coins for 1 Play
Asteroids Deluxe settings:
0 = OFF 1 = ON X = Don't Care $ = Atari suggests
8 SWITCH DIP (R5)
87654321
--------
XXXXXX11 English $
XXXXXX10 German
XXXXXX01 French
XXXXXX00 Spanish
XXXX11XX 2-4 ships
XXXX10XX 3-5 ships $
XXXX01XX 4-6 ships
XXXX00XX 5-7 ships
XXX1XXXX 1-play minimum $
XXX0XXXX 2-play minimum
XX1XXXXX Easier gameplay for first 30000 points +
XX0XXXXX Hard gameplay throughout the game +
11XXXXXX Bonus ship every 10,000 points $ !
10XXXXXX Bonus ship every 12,000 points !
01XXXXXX Bonus ship every 15,000 points !
00XXXXXX No bonus ships (adds one ship at game start)
+ only with the newer romset
! not "every", but "at", e.g. only once.
Thanks to Gregg Woodcock for the info.
8 SWITCH DIP (L8)
87654321
--------
XXXXXX11 Free Play
XXXXXX10 1 Coin = 2 Plays
XXXXXX01 1 Coin = 1 Play
XXXXXX00 2 Coins = 1 Play $
XXXX11XX Right coin mech * 1 $
XXXX10XX Right coin mech * 4
XXXX01XX Right coin mech * 5
XXXX00XX Right coin mech * 6
XXX1XXXX Center coin mech * 1 $
XXX0XXXX Center coin mech * 2
111XXXXX No bonus coins
110XXXXX For every 2 coins inserted, game logic adds 1 more coin
101XXXXX For every 4 coins inserted, game logic adds 1 more coin
100XXXXX For every 4 coins inserted, game logic adds 2 more coins $
011XXXXX For every 5 coins inserted, game logic adds 1 more coin
****************************************************************************
Lunar Lander Memory Map (preliminary)
Lunar Lander settings:
0 = OFF 1 = ON x = Don't Care $ = Atari suggests
8 SWITCH DIP (P8) with -01 ROMs on PCB
87654321
--------
11xxxxxx 450 fuel units per coin
10xxxxxx 600 fuel units per coin
01xxxxxx 750 fuel units per coin $
00xxxxxx 900 fuel units per coin
xxx0xxxx Free play
xxx1xxxx Coined play as determined by toggles 7 & 8 $
xxxx00xx German instructions
xxxx01xx Spanish instructions
xxxx10xx French instructions
xxxx11xx English instructions $
xxxxxx11 Right coin == 1 credit/coin $
xxxxxx10 Right coin == 4 credit/coin
xxxxxx01 Right coin == 5 credit/coin
xxxxxx00 Right coin == 6 credit/coin
(Left coin always registers 1 credit/coin)
8 SWITCH DIP (P8) with -02 ROMs on PCB
87654321
--------
11x1xxxx 450 fuel units per coin
10x1xxxx 600 fuel units per coin
01x1xxxx 750 fuel units per coin $
00x1xxxx 900 fuel units per coin
11x0xxxx 1100 fuel units per coin
10x0xxxx 1300 fuel units per coin
01x0xxxx 1550 fuel units per coin
00x0xxxx 1800 fuel units per coin
xx0xxxxx Free play
xx1xxxxx Coined play as determined by toggles 5, 7, & 8 $
xxxx00xx German instructions
xxxx01xx Spanish instructions
xxxx10xx French instructions
xxxx11xx English instructions $
xxxxxx11 Right coin == 1 credit/coin $
xxxxxx10 Right coin == 4 credit/coin
xxxxxx01 Right coin == 5 credit/coin
xxxxxx00 Right coin == 6 credit/coin
(Left coin always registers 1 credit/coin)
***************************************************************************/
#include "driver.h"
#include "vidhrdw/generic.h"
#include "vidhrdw/vector.h"
#include "vidhrdw/avgdvg.h"
#include "machine/atari_vg.h"
#include "asteroid.h"
/*************************************
*
* Coin counters
*
*************************************/
static WRITE_HANDLER( astdelux_coin_counter_w )
{
coin_counter_w(offset,data);
}
/*************************************
*
* Land Lander LEDs/lamps
*
*************************************/
static WRITE_HANDLER( llander_led_w )
{
static const char *lampname[] =
{
"lamp0", "lamp1", "lamp2", "lamp3", "lamp4"
};
int i;
for (i = 0; i < 5; i++)
artwork_show(lampname[i], (data >> (4 - i)) & 1);
}
/*************************************
*
* Lunar Lander mirrors page 0 & 1
*
*************************************/
static data8_t *llander_zeropage;
static READ_HANDLER( llander_zeropage_r )
{
return llander_zeropage[offset & 0xff];
}
static WRITE_HANDLER( llander_zeropage_w )
{
llander_zeropage[offset & 0xff] = data;
}
/*************************************
*
* Main CPU memory handlers
*
*************************************/
static MEMORY_READ_START( asteroid_readmem )
{ 0x0000, 0x03ff, MRA_RAM },
{ 0x2000, 0x2007, asteroid_IN0_r }, /* IN0 */
{ 0x2400, 0x2407, asteroid_IN1_r }, /* IN1 */
{ 0x2800, 0x2803, asteroid_DSW1_r }, /* DSW1 */
{ 0x4000, 0x47ff, MRA_RAM },
{ 0x5000, 0x57ff, MRA_ROM }, /* vector rom */
{ 0x6800, 0x7fff, MRA_ROM },
{ 0xf800, 0xffff, MRA_ROM }, /* for the reset / interrupt vectors */
MEMORY_END
static MEMORY_WRITE_START( asteroid_writemem )
{ 0x0000, 0x03ff, MWA_RAM },
{ 0x3000, 0x3000, avgdvg_go_w },
{ 0x3200, 0x3200, asteroid_bank_switch_w },
{ 0x3400, 0x3400, watchdog_reset_w },
{ 0x3600, 0x3600, asteroid_explode_w },
{ 0x3a00, 0x3a00, asteroid_thump_w },
{ 0x3c00, 0x3c05, asteroid_sounds_w },
{ 0x3e00, 0x3e00, asteroid_noise_reset_w },
{ 0x4000, 0x47ff, MWA_RAM, &vectorram, &vectorram_size },
{ 0x5000, 0x57ff, MWA_ROM }, /* vector rom */
{ 0x6800, 0x7fff, MWA_ROM },
MEMORY_END
static MEMORY_READ_START( astdelux_readmem )
{ 0x0000, 0x03ff, MRA_RAM },
{ 0x2000, 0x2007, asteroid_IN0_r }, /* IN0 */
{ 0x2400, 0x2407, asteroid_IN1_r }, /* IN1 */
{ 0x2800, 0x2803, asteroid_DSW1_r }, /* DSW1 */
{ 0x2c00, 0x2c0f, pokey1_r },
{ 0x2c40, 0x2c7f, atari_vg_earom_r },
{ 0x4000, 0x47ff, MRA_RAM },
{ 0x4800, 0x57ff, MRA_ROM }, /* vector rom */
{ 0x6000, 0x7fff, MRA_ROM },
{ 0xf800, 0xffff, MRA_ROM }, /* for the reset / interrupt vectors */
MEMORY_END
static MEMORY_WRITE_START( astdelux_writemem )
{ 0x0000, 0x03ff, MWA_RAM },
{ 0x2c00, 0x2c0f, pokey1_w },
{ 0x3000, 0x3000, avgdvg_go_w },
{ 0x3200, 0x323f, atari_vg_earom_w },
{ 0x3400, 0x3400, watchdog_reset_w },
{ 0x3600, 0x3600, asteroid_explode_w },
{ 0x3a00, 0x3a00, atari_vg_earom_ctrl_w },
{ 0x3c00, 0x3c01, astdelux_led_w },
{ 0x3c03, 0x3c03, astdelux_sounds_w },
{ 0x3c04, 0x3c04, astdelux_bank_switch_w },
{ 0x3c05, 0x3c07, astdelux_coin_counter_w },
{ 0x3e00, 0x3e00, asteroid_noise_reset_w },
{ 0x4000, 0x47ff, MWA_RAM, &vectorram, &vectorram_size },
{ 0x4800, 0x57ff, MWA_ROM }, /* vector rom */
{ 0x6000, 0x7fff, MWA_ROM },
MEMORY_END
static MEMORY_READ_START( llander_readmem )
{ 0x0000, 0x01ff, llander_zeropage_r },
{ 0x2000, 0x2000, llander_IN0_r }, /* IN0 */
{ 0x2400, 0x2407, asteroid_IN1_r }, /* IN1 */
{ 0x2800, 0x2803, asteroid_DSW1_r }, /* DSW1 */
{ 0x2c00, 0x2c00, input_port_3_r }, /* IN3 */
{ 0x4000, 0x47ff, MRA_RAM },
{ 0x4800, 0x5fff, MRA_ROM }, /* vector rom */
{ 0x6000, 0x7fff, MRA_ROM },
{ 0xf800, 0xffff, MRA_ROM }, /* for the reset / interrupt vectors */
MEMORY_END
static MEMORY_WRITE_START( llander_writemem )
{ 0x0000, 0x01ff, llander_zeropage_w, &llander_zeropage },
{ 0x3000, 0x3000, avgdvg_go_w },
{ 0x3200, 0x3200, llander_led_w },
{ 0x3400, 0x3400, watchdog_reset_w },
{ 0x3c00, 0x3c00, llander_sounds_w },
{ 0x3e00, 0x3e00, llander_snd_reset_w },
{ 0x4000, 0x47ff, MWA_RAM, &vectorram, &vectorram_size },
{ 0x4800, 0x5fff, MWA_ROM }, /* vector rom */
{ 0x6000, 0x7fff, MWA_ROM },
MEMORY_END
/*************************************
*
* Port definitions
*
*************************************/
INPUT_PORTS_START( asteroid )
PORT_START /* IN0 */
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
/* Bit 2 and 3 are handled in the machine dependent part. */
/* Bit 2 is the 3 KHz source and Bit 3 the VG_HALT bit */
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN )
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN )
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON3 )
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 )
PORT_BITX(0x20, IP_ACTIVE_HIGH, IPT_SERVICE, "Diagnostic Step", KEYCODE_F1, IP_JOY_NONE )
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_TILT )
PORT_SERVICE( 0x80, IP_ACTIVE_HIGH )
PORT_START /* IN1 */
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN3 )
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START1 )
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START2 )
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 )
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT | IPF_2WAY )
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT | IPF_2WAY )
PORT_START /* DSW1 */
PORT_DIPNAME( 0x03, 0x00, "Language" )
PORT_DIPSETTING ( 0x00, "English" )
PORT_DIPSETTING ( 0x01, "German" )
PORT_DIPSETTING ( 0x02, "French" )
PORT_DIPSETTING ( 0x03, "Spanish" )
PORT_DIPNAME( 0x04, 0x04, DEF_STR( Lives ) )
PORT_DIPSETTING ( 0x04, "3" )
PORT_DIPSETTING ( 0x00, "4" )
PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) )
PORT_DIPSETTING ( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING ( 0x08, DEF_STR( On ) )
PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) )
PORT_DIPSETTING ( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING ( 0x10, DEF_STR( On ) )
PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) )
PORT_DIPSETTING ( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING ( 0x20, DEF_STR( On ) )
PORT_DIPNAME( 0xc0, 0x80, DEF_STR( Coinage ) )
PORT_DIPSETTING ( 0xc0, DEF_STR( 2C_1C ) )
PORT_DIPSETTING ( 0x80, DEF_STR( 1C_1C ) )
PORT_DIPSETTING ( 0x40, DEF_STR( 1C_2C ) )
PORT_DIPSETTING ( 0x00, DEF_STR( Free_Play ) )
PORT_START /* dummy IN3 */
PORT_START /* fake IN4 - inverter circuit */
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) )
PORT_START /* IN5 - asteroid_cocktail_port0 */
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON3 | IPF_PLAYER2)
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 | IPF_PLAYER2)
PORT_BIT( 0xe7, IP_ACTIVE_HIGH, IPT_UNUSED )
PORT_START /* IN6 - asteroid_cocktail_port1 */
PORT_BIT( 0x1f, IP_ACTIVE_HIGH, IPT_UNUSED )
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 | IPF_PLAYER2)
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT | IPF_2WAY | IPF_PLAYER2)
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT | IPF_2WAY | IPF_PLAYER2)
INPUT_PORTS_END
INPUT_PORTS_START( asteroib )
PORT_START /* IN0 */
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* resets */
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* resets */
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_TILT )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
/* Bit 7 is VG_HALT, handled in the machine dependant part */
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
PORT_START /* IN1 */
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 )
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2 )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 )
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START2 )
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 )
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT | IPF_2WAY )
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT | IPF_2WAY )
PORT_START /* DSW1 */
PORT_DIPNAME( 0x03, 0x00, "Language" )
PORT_DIPSETTING ( 0x00, "English" )
PORT_DIPSETTING ( 0x01, "German" )
PORT_DIPSETTING ( 0x02, "French" )
PORT_DIPSETTING ( 0x03, "Spanish" )
PORT_DIPNAME( 0x04, 0x04, DEF_STR( Lives ) )
PORT_DIPSETTING ( 0x04, "3" )
PORT_DIPSETTING ( 0x00, "4" )
PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) )
PORT_DIPSETTING ( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING ( 0x08, DEF_STR( On ) )
PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) )
PORT_DIPSETTING ( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING ( 0x10, DEF_STR( On ) )
PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) )
PORT_DIPSETTING ( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING ( 0x20, DEF_STR( On ) )
PORT_DIPNAME( 0xc0, 0x80, DEF_STR( Coinage ) )
PORT_DIPSETTING ( 0xc0, DEF_STR( 2C_1C ) )
PORT_DIPSETTING ( 0x80, DEF_STR( 1C_1C ) )
PORT_DIPSETTING ( 0x40, DEF_STR( 1C_2C ) )
PORT_DIPSETTING ( 0x00, DEF_STR( Free_Play ) )
PORT_START /* hyperspace */
PORT_BIT( 0x7f, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON3 )
INPUT_PORTS_END
INPUT_PORTS_START( asterock )
PORT_START /* IN0 */
/* Bit 0 is VG_HALT, handled in the machine dependant part */
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN )
/* Bit 2 is the 3 KHz source */
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON3 )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
PORT_BITX(0x20, IP_ACTIVE_LOW, IPT_SERVICE, "Diagnostic Step", KEYCODE_F1, IP_JOY_NONE )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_TILT )
PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
PORT_START /* IN1 */
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN3 )
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START1 )
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START2 )
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 )
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT | IPF_2WAY )
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT | IPF_2WAY )
PORT_START /* DSW1 */
PORT_DIPNAME( 0x03, 0x03, "Language" )
PORT_DIPSETTING( 0x00, "English" )
PORT_DIPSETTING( 0x01, "French" )
PORT_DIPSETTING( 0x02, "German" )
PORT_DIPSETTING( 0x03, "Italian" )
PORT_DIPNAME( 0x0c, 0x04, DEF_STR( Lives ) )
PORT_DIPSETTING( 0x00, "2" )
PORT_DIPSETTING( 0x04, "3" )
PORT_DIPSETTING( 0x08, "4" )
PORT_DIPSETTING( 0x0c, "5" )
PORT_DIPNAME( 0x10, 0x00, "Records Table" )
PORT_DIPSETTING( 0x00, "Normal" )
PORT_DIPSETTING( 0x10, "Special" )
PORT_DIPNAME( 0x20, 0x00, "Coin Mode" )
PORT_DIPSETTING ( 0x00, "Normal" )
PORT_DIPSETTING ( 0x20, "Special" )
PORT_DIPNAME( 0xc0, 0x80, DEF_STR( Coinage ) )
PORT_DIPSETTING ( 0xc0, DEF_STR( 2C_1C ) )
PORT_DIPSETTING ( 0x80, DEF_STR( 1C_1C ) )
PORT_DIPSETTING ( 0x40, DEF_STR( 1C_2C ) )
/* PORT_DIPSETTING ( 0x00, DEF_STR( 1C_1C ) )*/
/* Settings for Special Coin Mode
PORT_DIPSETTING ( 0xc0, "Coin A 2/1 Coin B 2/1 Coin C 1/1" )
PORT_DIPSETTING ( 0x80, "Coin A 1/1 Coin B 1/1 Coin C 1/2" )
PORT_DIPSETTING ( 0x40, "Coin A 1/2 Coin B 1/2 Coin C 1/4" )
PORT_DIPSETTING ( 0x00, DEF_STR( 1C_1C ) )
*/
INPUT_PORTS_END
INPUT_PORTS_START( astdelux )
PORT_START /* IN0 */
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
/* Bit 2 and 3 are handled in the machine dependent part. */
/* Bit 2 is the 3 KHz source and Bit 3 the VG_HALT bit */
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN )
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN )
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON3 )
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 )
PORT_BITX( 0x20, IP_ACTIVE_HIGH, IPT_SERVICE, "Diagnostic Step", KEYCODE_F1, IP_JOY_NONE )
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_TILT )
PORT_SERVICE( 0x80, IP_ACTIVE_HIGH )
PORT_START /* IN1 */
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN3 )
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START1 )
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START2 )
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 )
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT | IPF_2WAY )
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT | IPF_2WAY )
PORT_START /* DSW 1 */
PORT_DIPNAME( 0x03, 0x00, "Language" )
PORT_DIPSETTING ( 0x00, "English" )
PORT_DIPSETTING ( 0x01, "German" )
PORT_DIPSETTING ( 0x02, "French" )
PORT_DIPSETTING ( 0x03, "Spanish" )
PORT_DIPNAME( 0x0c, 0x04, DEF_STR( Lives ) )
PORT_DIPSETTING ( 0x00, "2-4" )
PORT_DIPSETTING ( 0x04, "3-5" )
PORT_DIPSETTING ( 0x08, "4-6" )
PORT_DIPSETTING ( 0x0c, "5-7" )
PORT_DIPNAME( 0x10, 0x00, "Minimum plays" )
PORT_DIPSETTING ( 0x00, "1" )
PORT_DIPSETTING ( 0x10, "2" )
PORT_DIPNAME( 0x20, 0x00, DEF_STR( Difficulty ) )
PORT_DIPSETTING ( 0x00, "Hard" )
PORT_DIPSETTING ( 0x20, "Easy" )
PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Bonus_Life ) )
PORT_DIPSETTING ( 0x00, "10000" )
PORT_DIPSETTING ( 0x40, "12000" )
PORT_DIPSETTING ( 0x80, "15000" )
PORT_DIPSETTING ( 0xc0, "None" )
PORT_START /* DSW 2 */
PORT_DIPNAME( 0x03, 0x01, DEF_STR( Coinage ) )
PORT_DIPSETTING ( 0x00, DEF_STR( 2C_1C ) )
PORT_DIPSETTING ( 0x01, DEF_STR( 1C_1C ) )
PORT_DIPSETTING ( 0x02, DEF_STR( 1C_2C ) )
PORT_DIPSETTING ( 0x03, DEF_STR( Free_Play ) )
PORT_DIPNAME( 0x0c, 0x0c, "Right Coin" )
PORT_DIPSETTING ( 0x00, "*6" )
PORT_DIPSETTING ( 0x04, "*5" )
PORT_DIPSETTING ( 0x08, "*4" )
PORT_DIPSETTING ( 0x0c, "*1" )
PORT_DIPNAME( 0x10, 0x10, "Center Coin" )
PORT_DIPSETTING ( 0x00, "*2" )
PORT_DIPSETTING ( 0x10, "*1" )
PORT_DIPNAME( 0xe0, 0x80, "Bonus Coins" )
PORT_DIPSETTING ( 0x60, "1 each 5" )
PORT_DIPSETTING ( 0x80, "2 each 4" )
PORT_DIPSETTING ( 0xa0, "1 each 4" )
PORT_DIPSETTING ( 0xc0, "1 each 2" )
PORT_DIPSETTING ( 0xe0, "None" )
PORT_START /* fake IN4 - inverter circuit */
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) )
PORT_START /* IN5 - asteroid_cocktail_port0 */
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON3 | IPF_PLAYER2)
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 | IPF_PLAYER2)
PORT_BIT( 0xe7, IP_ACTIVE_HIGH, IPT_UNUSED )
PORT_START /* IN6 - asteroid_cocktail_port1 */
PORT_BIT( 0x1f, IP_ACTIVE_HIGH, IPT_UNUSED )
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 | IPF_PLAYER2)
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT | IPF_2WAY | IPF_PLAYER2)
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT | IPF_2WAY | IPF_PLAYER2)
INPUT_PORTS_END
INPUT_PORTS_START( llander )
PORT_START /* IN0 */
/* Bit 0 is VG_HALT, handled in the machine dependant part */
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
PORT_SERVICE( 0x02, IP_ACTIVE_LOW )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_TILT )
/* Of the rest, Bit 6 is the 3KHz source. 3,4 and 5 are unknown */
PORT_BIT( 0x78, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BITX(0x80, IP_ACTIVE_LOW, IPT_SERVICE, "Diagnostic Step", KEYCODE_F1, IP_JOY_NONE )
PORT_START /* IN1 */
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 )
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN2 )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN3 )
PORT_BITX(0x10, IP_ACTIVE_HIGH, IPT_START2, "Select Game", IP_KEY_DEFAULT, IP_JOY_DEFAULT )
PORT_BITX(0x20, IP_ACTIVE_HIGH, IPT_BUTTON1, "Abort", IP_KEY_DEFAULT, IP_JOY_DEFAULT )
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT | IPF_2WAY )
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT | IPF_2WAY )
PORT_START /* DSW1 */
PORT_DIPNAME( 0x03, 0x01, "Right Coin" )
PORT_DIPSETTING ( 0x00, "*1" )
PORT_DIPSETTING ( 0x01, "*4" )
PORT_DIPSETTING ( 0x02, "*5" )
PORT_DIPSETTING ( 0x03, "*6" )
PORT_DIPNAME( 0x0c, 0x00, "Language" )
PORT_DIPSETTING ( 0x00, "English" )
PORT_DIPSETTING ( 0x04, "French" )
PORT_DIPSETTING ( 0x08, "Spanish" )
PORT_DIPSETTING ( 0x0c, "German" )
PORT_DIPNAME( 0x20, 0x00, DEF_STR( Coinage ) )
PORT_DIPSETTING ( 0x00, "Normal" )
PORT_DIPSETTING ( 0x20, DEF_STR( Free_Play ) )
PORT_DIPNAME( 0xd0, 0x80, "Fuel units" )
PORT_DIPSETTING ( 0x00, "450" )
PORT_DIPSETTING ( 0x40, "600" )
PORT_DIPSETTING ( 0x80, "750" )
PORT_DIPSETTING ( 0xc0, "900" )
PORT_DIPSETTING ( 0x10, "1100" )
PORT_DIPSETTING ( 0x50, "1300" )
PORT_DIPSETTING ( 0x90, "1550" )
PORT_DIPSETTING ( 0xd0, "1800" )
/* The next one is a potentiometer */
PORT_START /* IN3 */
PORT_ANALOGX( 0xff, 0x00, IPT_PADDLE|IPF_REVERSE, 100, 10, 0, 255, KEYCODE_UP, KEYCODE_DOWN, JOYCODE_1_UP, JOYCODE_1_DOWN )
INPUT_PORTS_END
INPUT_PORTS_START( llander1 )
PORT_START /* IN0 */
/* Bit 0 is VG_HALT, handled in the machine dependant part */
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
PORT_SERVICE( 0x02, IP_ACTIVE_LOW )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_TILT )
/* Of the rest, Bit 6 is the 3KHz source. 3,4 and 5 are unknown */
PORT_BIT( 0x78, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BITX(0x80, IP_ACTIVE_LOW, IPT_SERVICE, "Diagnostic Step", KEYCODE_F1, IP_JOY_NONE )
PORT_START /* IN1 */
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 )
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN2 )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN3 )
PORT_BITX(0x10, IP_ACTIVE_HIGH, IPT_START2, "Select Game", IP_KEY_DEFAULT, IP_JOY_DEFAULT )
PORT_BITX(0x20, IP_ACTIVE_HIGH, IPT_BUTTON1, "Abort", IP_KEY_DEFAULT, IP_JOY_DEFAULT )
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT | IPF_2WAY )
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT | IPF_2WAY )
PORT_START /* DSW1 */
PORT_DIPNAME( 0x03, 0x01, "Right Coin" )
PORT_DIPSETTING ( 0x00, "*1" )
PORT_DIPSETTING ( 0x01, "*4" )
PORT_DIPSETTING ( 0x02, "*5" )
PORT_DIPSETTING ( 0x03, "*6" )
PORT_DIPNAME( 0x0c, 0x00, "Language" )
PORT_DIPSETTING ( 0x00, "English" )
PORT_DIPSETTING ( 0x04, "French" )
PORT_DIPSETTING ( 0x08, "Spanish" )
PORT_DIPSETTING ( 0x0c, "German" )
PORT_DIPNAME( 0x10, 0x00, DEF_STR( Coinage ) )
PORT_DIPSETTING ( 0x00, "Normal" )
PORT_DIPSETTING ( 0x10, DEF_STR( Free_Play ) )
PORT_DIPNAME( 0xc0, 0x80, "Fuel units" )
PORT_DIPSETTING ( 0x00, "450" )
PORT_DIPSETTING ( 0x40, "600" )
PORT_DIPSETTING ( 0x80, "750" )
PORT_DIPSETTING ( 0xc0, "900" )
/* The next one is a potentiometer */
PORT_START /* IN3 */
PORT_ANALOGX( 0xff, 0x00, IPT_PADDLE|IPF_REVERSE, 100, 10, 0, 255, KEYCODE_UP, KEYCODE_DOWN, JOYCODE_1_UP, JOYCODE_1_DOWN )
INPUT_PORTS_END
/*************************************
*
* Sound interfaces
*
*************************************/
static struct POKEYinterface pokey_interface =
{
1, /* 1 chip */
1500000, /* 1.5 MHz??? */
{ 100 },
/* The 8 pot handlers */
{ 0 },
{ 0 },
{ 0 },
{ 0 },
{ 0 },
{ 0 },
{ 0 },
{ 0 },
/* The allpot handler */
{ input_port_3_r }
};
/*************************************
*
* Machine drivers
*
*************************************/
static MACHINE_DRIVER_START( asteroid )
/* basic machine hardware */
MDRV_CPU_ADD_TAG("main", M6502, 1500000)
MDRV_CPU_MEMORY(asteroid_readmem,asteroid_writemem)
MDRV_CPU_VBLANK_INT(asteroid_interrupt,4) /* 250 Hz */
MDRV_FRAMES_PER_SECOND(60)
MDRV_MACHINE_INIT(asteroid)
/* video hardware */
MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_VECTOR | VIDEO_RGB_DIRECT)
MDRV_SCREEN_SIZE(400,300)
MDRV_VISIBLE_AREA(0, 1040, 70, 950)
MDRV_PALETTE_LENGTH(32768)
MDRV_PALETTE_INIT(avg_white)
MDRV_VIDEO_START(dvg)
MDRV_VIDEO_UPDATE(vector)
/* sound hardware */
MDRV_SOUND_ADD_TAG("disc", DISCRETE, asteroid_sound_interface)
MACHINE_DRIVER_END
static MACHINE_DRIVER_START( asterock )
/* basic machine hardware */
MDRV_IMPORT_FROM(asteroid)
MDRV_CPU_MODIFY("main")
MDRV_CPU_VBLANK_INT(asterock_interrupt,4) /* 250 Hz */
MACHINE_DRIVER_END
static MACHINE_DRIVER_START( astdelux )
/* basic machine hardware */
MDRV_IMPORT_FROM(asteroid)
MDRV_CPU_MODIFY("main")
MDRV_CPU_MEMORY(astdelux_readmem,astdelux_writemem)
MDRV_NVRAM_HANDLER(atari_vg)
/* sound hardware */
MDRV_SOUND_REPLACE("disc", DISCRETE, astdelux_sound_interface)
MDRV_SOUND_ADD(POKEY, pokey_interface)
MACHINE_DRIVER_END
static MACHINE_DRIVER_START( llander )
/* basic machine hardware */
MDRV_IMPORT_FROM(asteroid)
MDRV_CPU_MODIFY("main")
MDRV_CPU_MEMORY(llander_readmem,llander_writemem)
MDRV_CPU_VBLANK_INT(llander_interrupt,6) /* 250 Hz */
MDRV_FRAMES_PER_SECOND(40)
MDRV_MACHINE_INIT(NULL)
/* video hardware */
MDRV_VISIBLE_AREA(0, 1050, 0, 900)
MDRV_PALETTE_INIT(avg_white)
MDRV_VIDEO_START(dvg)
MDRV_VIDEO_UPDATE(vector)
/* sound hardware */
MDRV_SOUND_REPLACE("disc", DISCRETE, llander_sound_interface)
MACHINE_DRIVER_END
/*************************************
*
* ROM definitions
*
*************************************/
ROM_START( asteroid )
ROM_REGION( 0x10000, REGION_CPU1, 0 ) /* 64k for code */
ROM_LOAD( "035145.02", 0x6800, 0x0800, CRC(0cc75459) SHA1(2af85c9689b878155004da47fedbde5853a18723) )
ROM_LOAD( "035144.02", 0x7000, 0x0800, CRC(096ed35c) SHA1(064d680ded7f30c543f93ae5ca85f90d550f73e5) )
ROM_LOAD( "035143.02", 0x7800, 0x0800, CRC(312caa02) SHA1(1ce2eac1ab90b972e3f1fc3d250908f26328d6cb) )
ROM_RELOAD( 0xf800, 0x0800 ) /* for reset/interrupt vectors */
/* Vector ROM */
ROM_LOAD( "035127.02", 0x5000, 0x0800, CRC(8b71fd9e) SHA1(8cd5005e531eafa361d6b7e9eed159d164776c70) )
ROM_END
ROM_START( asteroi1 )
ROM_REGION( 0x10000, REGION_CPU1, 0 ) /* 64k for code */
ROM_LOAD( "035145.01", 0x6800, 0x0800, CRC(e9bfda64) SHA1(291dc567ebb31b35df83d9fb87f4080f251ff9c8) )
ROM_LOAD( "035144.01", 0x7000, 0x0800, CRC(e53c28a9) SHA1(d9f081e73511ec43377f0c6457747f15a470d4dc) )
ROM_LOAD( "035143.01", 0x7800, 0x0800, CRC(7d4e3d05) SHA1(d88000e904e158efde50e453e2889ecd2cb95f24) )
ROM_RELOAD( 0xf800, 0x0800 ) /* for reset/interrupt vectors */
/* Vector ROM */
ROM_LOAD( "035127.01", 0x5000, 0x0800, CRC(99699366) SHA1(9b2828fc1cef7727f65fa65e1e11e309b7c98792) )
ROM_END
ROM_START( asteroib )
ROM_REGION( 0x10000, REGION_CPU1, 0 ) /* 64k for code */
ROM_LOAD( "035145ll.bin", 0x6800, 0x0800, CRC(605fc0f2) SHA1(8d897a3b75bd1f2537470f0a34a97a8c0853ee08) )
ROM_LOAD( "035144ll.bin", 0x7000, 0x0800, CRC(e106de77) SHA1(003e99d095bd4df6fae243ea1dd5b12f3eb974f1) )
ROM_LOAD( "035143ll.bin", 0x7800, 0x0800, CRC(6b1d8594) SHA1(ff3cd93f1bc5734bface285e442125b395602d7d) )
ROM_RELOAD( 0xf800, 0x0800 ) /* for reset/interrupt vectors */
/* Vector ROM */
ROM_LOAD( "035127.02", 0x5000, 0x0800, CRC(8b71fd9e) SHA1(8cd5005e531eafa361d6b7e9eed159d164776c70) )
ROM_END
ROM_START( asterock )
ROM_REGION( 0x10000, REGION_CPU1, 0 ) /* 64k for code */
ROM_LOAD( "sidamas.2", 0x6800, 0x0400, CRC(cdf720c6) SHA1(85fe748096478e28a06bd98ff3aad73ab21b22a4) )
ROM_LOAD( "sidamas.3", 0x6c00, 0x0400, CRC(ee58bdf0) SHA1(80094cb5dafd327aff6658ede33106f0493a809d) )
ROM_LOAD( "sidamas.4", 0x7000, 0x0400, CRC(8d3e421e) SHA1(5f5719ab84d4755e69bef205d313b455bc59c413) )
ROM_LOAD( "sidamas.5", 0x7400, 0x0400, CRC(d2ce7672) SHA1(b6012e09b2439a614a55bcf23be0692c42830e21) )
ROM_LOAD( "sidamas.6", 0x7800, 0x0400, CRC(74103c87) SHA1(e568b5ac573a6d0474cf672b3c62abfbd3320799) )
ROM_LOAD( "sidamas.7", 0x7c00, 0x0400, CRC(75a39768) SHA1(bf22998fd692fb01964d8894e421435c55d746a0) )
ROM_RELOAD( 0xfc00, 0x0400 ) /* for reset/interrupt vectors */
/* Vector ROM */
ROM_LOAD( "sidamas.0", 0x5000, 0x0400, CRC(6bd2053f) SHA1(790f2858f44bbb1854e2d9d549e29f4815c4665b) )
ROM_LOAD( "sidamas.1", 0x5400, 0x0400, CRC(231ce201) SHA1(710f4c19864d725ba1c9ea447a97e84001a679f7) )
ROM_END
ROM_START( astdelux )
ROM_REGION( 0x10000, REGION_CPU1, 0 ) /* 64k for code */
ROM_LOAD( "036430.02", 0x6000, 0x0800, CRC(a4d7a525) SHA1(abe262193ec8e1981be36928e9a89a8ac95cd0ad) )
ROM_LOAD( "036431.02", 0x6800, 0x0800, CRC(d4004aae) SHA1(aa2099b8fc62a79879efeea70ea1e9ed77e3e6f0) )
ROM_LOAD( "036432.02", 0x7000, 0x0800, CRC(6d720c41) SHA1(198218cd2f43f8b83e4463b1f3a8aa49da5015e4) )
ROM_LOAD( "036433.03", 0x7800, 0x0800, CRC(0dcc0be6) SHA1(bf10ffb0c4870e777d6b509cbede35db8bb6b0b8) )
ROM_RELOAD( 0xf800, 0x0800 ) /* for reset/interrupt vectors */
/* Vector ROM */
ROM_LOAD( "036800.02", 0x4800, 0x0800, CRC(bb8cabe1) SHA1(cebaa1b91b96e8b80f2b2c17c6fd31fa9f156386) )
ROM_LOAD( "036799.01", 0x5000, 0x0800, CRC(7d511572) SHA1(1956a12bccb5d3a84ce0c1cc10c6ad7f64e30b40) )
ROM_END
ROM_START( astdelu1 )
ROM_REGION( 0x10000, REGION_CPU1, 0 ) /* 64k for code */
ROM_LOAD( "036430.01", 0x6000, 0x0800, CRC(8f5dabc6) SHA1(5d7543e19acab99ddb63c0ffd60f54d7a0f267f5) )
ROM_LOAD( "036431.01", 0x6800, 0x0800, CRC(157a8516) SHA1(9041d8c2369d004f198681e02b59a923fa8f70c9) )
ROM_LOAD( "036432.01", 0x7000, 0x0800, CRC(fdea913c) SHA1(ded0138a20d80317d67add5bb2a64e6274e0e409) )
ROM_LOAD( "036433.02", 0x7800, 0x0800, CRC(d8db74e3) SHA1(52b64e867df98d14742eb1817b59931bb7f941d9) )
ROM_RELOAD( 0xf800, 0x0800 ) /* for reset/interrupt vectors */
/* Vector ROM */
ROM_LOAD( "036800.01", 0x4800, 0x0800, CRC(3b597407) SHA1(344fea2e5d84acce365d76daed61e96b9b6b37cc) )
ROM_LOAD( "036799.01", 0x5000, 0x0800, CRC(7d511572) SHA1(1956a12bccb5d3a84ce0c1cc10c6ad7f64e30b40) )
ROM_END
ROM_START( llander )
ROM_REGION( 0x10000, REGION_CPU1, 0 ) /* 64k for code */
ROM_LOAD( "034572.02", 0x6000, 0x0800, CRC(b8763eea) SHA1(5a15eaeaf825ccdf9ce013a6789cf51da20f785c) )
ROM_LOAD( "034571.02", 0x6800, 0x0800, CRC(77da4b2f) SHA1(4be6cef5af38734d580cbfb7e4070fe7981ddfd6) )
ROM_LOAD( "034570.01", 0x7000, 0x0800, CRC(2724e591) SHA1(ecf4430a0040c227c896aa2cd81ee03960b4d641) )
ROM_LOAD( "034569.02", 0x7800, 0x0800, CRC(72837a4e) SHA1(9b21ba5e1518079c326ca6e15b9993e6c4483caa) )
ROM_RELOAD( 0xf800, 0x0800 ) /* for reset/interrupt vectors */
/* Vector ROM */
ROM_LOAD( "034599.01", 0x4800, 0x0800, CRC(355a9371) SHA1(6ecb40169b797d9eb623bcb17872f745b1bf20fa) )
ROM_LOAD( "034598.01", 0x5000, 0x0800, CRC(9c4ffa68) SHA1(eb4ffc289d254f699f821df3146aa2c6cd78597f) )
/* This _should_ be the rom for international versions. */
/* Unfortunately, is it not currently available. */
ROM_LOAD( "034597.01", 0x5800, 0x0800, NO_DUMP )
ROM_END
ROM_START( llander1 )
ROM_REGION( 0x10000, REGION_CPU1, 0 ) /* 64k for code */
ROM_LOAD( "034572.01", 0x6000, 0x0800, CRC(2aff3140) SHA1(4fc8aae640ce655417c11d9a3121aae9a1238e7c) )
ROM_LOAD( "034571.01", 0x6800, 0x0800, CRC(493e24b7) SHA1(125a2c335338ccabababef12fd7096ef4b605a31) )
ROM_LOAD( "034570.01", 0x7000, 0x0800, CRC(2724e591) SHA1(ecf4430a0040c227c896aa2cd81ee03960b4d641) )
ROM_LOAD( "034569.01", 0x7800, 0x0800, CRC(b11a7d01) SHA1(8f2935dbe04ee68815d69ea9e71853b5a145d7c3) )
ROM_RELOAD( 0xf800, 0x0800 ) /* for reset/interrupt vectors */
/* Vector ROM */
ROM_LOAD( "034599.01", 0x4800, 0x0800, CRC(355a9371) SHA1(6ecb40169b797d9eb623bcb17872f745b1bf20fa) )
ROM_LOAD( "034598.01", 0x5000, 0x0800, CRC(9c4ffa68) SHA1(eb4ffc289d254f699f821df3146aa2c6cd78597f) )
/* This _should_ be the rom for international versions. */
/* Unfortunately, is it not currently available. */
ROM_LOAD( "034597.01", 0x5800, 0x0800, NO_DUMP )
ROM_END
/*************************************
*
* Driver initialization
*
*************************************/
static DRIVER_INIT( asteroid )
{
asteroid_install_inv = true;
}
static DRIVER_INIT( asteroib )
{
install_mem_read_handler(0, 0x2000, 0x2000, asteroib_IN0_r);
install_mem_read_handler(0, 0x2003, 0x2003, input_port_3_r);
}
static DRIVER_INIT( asterock )
{
install_mem_read_handler(0, 0x2000, 0x2007, asterock_IN0_r);
}
static DRIVER_INIT( astdelux )
{
asteroid_install_inv = true;
OVERLAY_START( astdelux_overlay )
OVERLAY_RECT( 0.0, 0.0, 1.0, 1.0, MAKE_ARGB(0x04,0x88,0xff,0xff) )
OVERLAY_END
artwork_set_overlay(astdelux_overlay);
}
/*************************************
*
* Game drivers
*
*************************************/
GAME( 1979, asteroid, 0, asteroid, asteroid, asteroid, ROT0, "Atari", "Asteroids (rev 2)" )
GAME( 1979, asteroi1, asteroid, asteroid, asteroid, asteroid, ROT0, "Atari", "Asteroids (rev 1)" )
GAME( 1979, asteroib, asteroid, asteroid, asteroib, asteroib, ROT0, "bootleg", "Asteroids (bootleg on Lunar Lander hardware)" )
GAME( 1979, asterock, asteroid, asterock, asterock, asterock, ROT0, "Sidam", "Asterock" )
GAME( 1980, astdelux, 0, astdelux, astdelux, astdelux, ROT0, "Atari", "Asteroids Deluxe (rev 2)" )
GAME( 1980, astdelu1, astdelux, astdelux, astdelux, astdelux, ROT0, "Atari", "Asteroids Deluxe (rev 1)" )
GAME( 1979, llander, 0, llander, llander, 0, ROT0, "Atari", "Lunar Lander (rev 2)" )
GAME( 1979, llander1, llander, llander, llander1, 0, ROT0, "Atari", "Lunar Lander (rev 1)" )