Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
5703 lines (4641 sloc) 284 KB
// license:BSD-3-Clause
// copyright-holders:David Graves
// thanks-to:Richard Bush
/***************************************************************************
Taito Z System [twin 68K with optional Z80]
-------------------------------------------
David Graves
(this is based on the F2 driver by Bryan McPhail, Brad Oliver, Andrew Prime,
Nicola Salmoria. Thanks to Richard Bush and the Raine team, whose open
source was very helpful in many areas particularly the sprites.)
The Taito Z system has a number of similarities with the Taito F2 system,
and uses some of the same custom Taito components.
Taito Z supports 5 separate layers of graphics - one 64x64 tiled scrolling
background plane of 8x8 tiles, a similar foreground plane, another optional
plane used for drawing a road (e.g. Chasehq), a sprite plane [with varying
properties], and a text plane with character definitions held in ram.
(Double Axle has four rather than two background planes, and they contain
32x32 16x16 tiles. This is because it uses a TC0480SCP rather than the
older TC0100SCN tilemap generator used in previous Taito Z games. The
hardware for Taito's Super Chase was a further development of this, with a
68020 for main CPU and Ensoniq sound - standard features of Taito's F3
system. Taito's F3 system superseded both Taito B and F2 systems, but the
Taito Z system was enhanced with F3 features and continued in games like
Super Chase and Under Fire up to the mid 1990s.)
Each Taito Z game used one of the following sprite systems - allowing the
use of big sprites with minimal CPU overhead [*]:
(i) 16x8 tiles aggregated through a spritemap rom into 128x128 sprites
(ii) 16x16 tiles aggregated through a spritemap rom into three sprite sizes:
128 x 128
64 x 128
32 x 128
(iii) 16x8 tiles aggregated through a spritemap rom into 64x64 sprites
[* in Taito B/F2/F3 the CPU has to keep track of all the 16x16 tiles within
a big sprite]
The Z system has twin 68K CPUs which communicate via shared ram.
Typically they share $4000 bytes, but Spacegun / Dbleaxle share $10000.
The first 68000 handles screen, palette and sprites, and sometimes other
jobs [e.g. inputs; in one game it also handles the road].
The second 68000 may handle functions such as:
(i) inputs/dips, sound (through a YM2610) and/or
(ii) the "road" that's in every TaitoZ game except Spacegun.
Most Z system games have a Z80 as well, which takes over sound duties.
Commands are written to it by the one of the 68000s.
The memory map for the Taito Z games is similar in outline but usually
shuffled around: some games have different I/O because of analogue
sticks, light guns, cockpit hardware etc.
****************************************************************************
Contcirc board (B.Troha)
--------------
Taito Sound PCB J1100137A K1100314A:
Zilog Z0840004PSC XTAL OSC Yamaha
Z80 CPU 16.000 MHz YM2610
TC0060DCA B33-30
TC0060DCA
TC0140SYT
B33-08
B33-09
B33-10
Notes: B33-30 is a OKI M27512-15
Taito Video Board PCB J1100139A K1100316A:
B33-03 TC0050VDZ TC0050VDZ TC0050VDZ
B33-04
B33-05
B33-06 TC0020VAR
B14-31
B33-07
B14-30
Notes: B14-31 is 27HC64 (Sharp LH5763J-70)
B14-30 is OKI M27512-15
DG: TC0020VAR + 3xTC0050VDZ may be precursor to 370MSO/300FLA combo
Taito CPU Board J110138A K1100315A:
XTAL OSC XTAL OSC
24.000MHz 26.686MHz
B33-02
B33-01
TC0150ROD TC0100SCN NEC D43256C-10L
NEC D43256C-10L
TC0110PCR
TC0070RGB
MC6800P12 IC-25 MC68000P12 IC-35
IC-26 IC 36 TC0040IOC
DSWA DSWB
Notes: IC-41 Is 271001 Listed as JH1 (unsocketed / unused)
IC-42 Is 271001 Listed as JL1 (unsocketed / unused)
****************************************************************************
Aquajack
Taito, 1990
This game runs on Taito Z hardware
Main PCB Layout
---------------
J1100196A
K1100456A
K1100457A AQUA JACK (sticker)
|--------------------------------------------------------------------------|
|B77-17.1 2063 B77-07.33 B77-05.105 DSWA(8) DSWB(8) |
| 2063 |------| |
| |---------| |---------| |---------| |TAITO | 2063 |-|
| | TAITO | | TAITO | | TAITO | |TC0110| TC0070RGB |
| |TC0050VDZ| |TC0150ROD| B77-19.46 |TC0100SCN| |PCR | 2063 |-|
| |(QFP100) | |(QFP160) | |(QFP160) | |------| |
| | | | | | | MB3771 |
| |---------| |---------| |---------| |------| |
| 58257 58257 |TAITO | (G) 2|
| 2018 |---------| |TC0220| TC0060DCA 8|
| 2018 | TAITO | |---------| |IOC | TC0060DCA W|
| 2018 |TC0020VAR| | TAITO | |------| A|
| 2018 |(QFP124) | |TC0320OBR| 2063 TL074 MB3735 Y|
| | | |(QFP144) | TL074 VOL |
| 2018 |---------| | | B77_20.54 YM3016 |
| 2018 B77-18.37 |---------| Z80 YM2610 |-|
| 2018 B77-06.39 MB3735 |
| 2018 |---------| |---------| VOL |-|
| | TAITO | 16MHz TL074| TAITO | |
| |TC0050VDZ| |TC0100SYT| B77-15.89 |
| B77-01.13 |(QFP100) | 2018 B77-08.57 |(QFP120) | |-|
| | | 2018 B77-09.58 | | | |
| B77-02.14 |---------| |--------------| |---------| | |
| |---------| | MC68000P12 | (M)| |
| B77-03.15 | TAITO | |--------------| 2063 | |
| |TC0050VDZ| 2063 |-|
| B77-04.16 |(QFP100) | B77-14.60 B77_23.67|---------| |
| | | B77-13.51 2063 | TAITO | B77-16.94 |
| |---------| |--------------| |TC0170ABT| |
| | MC68000P12 | B77_24.69|(QFP120) | 24MHz|
| B77_25.17 B77_22.31 |--------------| 2063 | | 26.686MHz |
| 2063 2063 |---------| |
|--------------------------------------------------------------------------|
Notes:
68000 - Motorola MC68000P12 CPUs, running at 12.000MHz [24/2]
Z80 - Zilog Z0840004PSC Z80 CPU, running at 4.000MHz [16/4]
YM2610 - Yahama YM2610 sound chip, running at 8.000MHz [16/2]
2063 - Toshiba TMM2063 8K x8 SRAM (DIP28)
2018 - Toshiba TMM2018 2K x8 SRAM (DIP24)
58257 - Sony CXK58257 32K x8 SRAM (DIP28)
MB3771 - Fujitsu MB3771 System Reset IC (DIP8)
(G) - 28-Way Connector (Not JAMMA)
(M) - 50-pin Flat Cable Connector Joining Main PCB To Analog Control PCB
OSC: 26.686, 24.000, 16.000
Taito custom ICs -
TC0070RGB - RGB/Video Mixer (Ceramic Flat Pack SIP25)
TC0060DCA - Digital to Analog Conversion for Audio (Ceramic Flat Pack SIP20)
TC0100SYT - Sound Communication
TC0220IOC - Input/Output. This chip also provides the master reset via the MB3771. It probably does more things too,
including video output. For example, if the harness is connected backwards, this chip blows and kills
the PCB. Even manually resetting the 68000's cannot restart the PCB, and it just shows a wavey pattern
on screen.
TC0110PCR - Palette Generator
TC0100SCN - Tilemap Generator
TC0150ROD - Road Generator
TC0050VDZ - \ Motion Object Generator Combo?
TC0170ABT - /
TC0020VAR - ?
TC0320OBR - Road Object Generator? (tied to TC0150ROD)
ROMs -
Analog Control PCB
------------------
J9100175A
K9100227A ADII PCB
K9100227A AQUA JACK (sticker)
|------------------|
| |
| 74LS244 |-|
| | |
| | |
| ADC0809 | |
| (M)| |
| | |
| 74LS245 | |
|(H) | |
| | |
| 74HC74 | |
| |-|
| 4.9152MHz |
|------------------|
Notes:
All components listed
(H) - 6 pin connector for attachment of Analog Controls
(M) - 50-pin Flat Cable Connector For Joining Analog Control PCB to Main PCB
ADC0809 - Texas Instruments ADC0809N Analog To Digital Convertor IC (DIP28)
****************************************************************************
Guru-Readme for Chase HQ (Taito 1988)
CPU Board
---------
K1100357A
J1100157A CPU PCB
K1100357A CHASE HQ UP (sticker for upright)
M4300099A CHASE HQ DX (sticker for DX cabinet)
|------------------------------------------------------------------------|
| B52-113.IC73 |---------| B52-119.IC20(PAL20L8)|
| |TAITO | 68000-12 B52-118.IC21(PAL20L8)|
| B52-114.IC72 |TC0140SYT| |-|
|M | | B52-131.IC37 B52-129.IC30 | |
| B52-115.IC71 |---------| B52-130.IC36 B52-136.IC29 | |
| TMM2063 TMM2063 | |
| B52-116.IC70 Z80 | |
| B52-137.IC51 B52-29.IC27 26.686MHz | |
| TD62003 |---------| 24MHz | |
|V YM2610 |TAITO | | |
| |TC0100SCN| 43256 |-|
| 16MHz | | |
| TMM2063 |---------| 43256 |
| TC0050DCA |---------| |-|
| Y3016-F TMM2063 |TAITO | |------| | |
| |TC0170ABT| |TAITO | | |
| TL074 TL074 | | |TC0110| B52-01.IC7 | |
| MB3735 VOLUME B52-121.IC57(PAL20L8)|---------| |PCR | | |
|G PC050CM B52-120.IC56(PAL16L8) |------| | |
| |---------| 68000-12 |---------| B52-06.IC24 B52-28.IC4 | |
| |TCOO40IOC| B52-133.IC55 |TAITO | TMM2063 TMM2063 | |
| |---------| B52-132.IC39 |TC0150ROD| TMM2063 TMM2063 |-|
| MB3771 | | |
| DIPSWB DIPSWA TMM2063 TMM2063 |---------| TC0070RGB |
|------------------------------------------------------------------------|
Notes:
68000 - Motorola MC68000P12 CPUs, clock input 12.000MHz [24/2]
Z80 - Zilog Z0840004PSC Z80 CPU, clock input 4.000MHz [16/4]
YM2610 - Yamaha YM2610 sound chip, clock input 8.000MHz [16/2]
Y3016-F - Yamaha Y3016-F 2-Channel Serial & Binary Input Floating D/A Converter (SOIC16)
Clock input 2.66666MHz (16/2/3, source = pin 64 of YM2610)
TMM2063 - Toshiba TMM2063AP-70 8k x8-bit SRAM (DIP28)
43256 - NEC D43256AC-10L 32k x8-bit SRAM (DIP28)
MB3771 - Fujitsu MB3771 System Reset IC (DIP8)
MB3735 - Fujitsu MB3735 20w BTL Mono Power AMP. Note this amp chip has one input and one output, so sound
is mono. Where two speakers are present (cockpit/DX) the same sounds are output to both speakers
because the edge connector pins 10+L and 11+M are hard-wired together.
TL074 - Texas Instruments TL074 JFET Low-Noise Quad OP Amp
TD62003 - Toshiba TD62003 PNP 50V 0.5A Quad Darlington Switch (for driving CPU-controlled lamps via 2x NEC 2SB1150 PNP Darlington Transistors)
G - 28-Way Connector (Not JAMMA, but power/ground pins are the same as JAMMA)
V - 5-pin video connector
M - 50-pin flat cable connector. Only populated on the moving cabinet version. This is used to connect the motor PCB to the
main PCB. This connector and some adjacent 74LS244/245 logic chips are not populated on the upright PCB version.
Syncs - Horizontal: 15.675kHz
Vertical: 60.0554Hz
ROMs -
B52-137.IC51 - Z80 Sound Program
B52-131.IC37 \
B52-129.IC30 | Main 68k Program (27C1001 EPROMs)
B52-130.IC36 |
B52-136.IC29 /
B52-133.IC55 \ Sub 68k Program (27C512 EPROMs)
B52-132.IC39 /
B52-29.IC27 - Tilemaps (23C4000 mask ROM)
B52-01.IC7 - Road/Sprite Priority & Palette Select (MMI63S141 BI-POLAR PROM)
B52-06.IC24 - Road A/B Internal Priority (MMI63S141 BI-POLAR PROM)
B52-28.IC4 - TC0150ROD ROM for Road data (23C4000 mask ROM)
Note: These ROMs match the World ROM-set in MAME ('chasehq'). These are the same ROMs found on a Chase HQ DX cabinet
board-set which suggests any/all Chase HQ ROM-sets will work with the deluxe motion cabinet providing the Motor
PCB is present and working.
Taito custom ICs -
TC0070RGB - 5-bit RGB Video Mixer/RGB DAC (Ceramic Flat Pack SIL25)
PC050CM - Coin/Counter/Lockout Functions
TC0060DCA - 2-Channel Digital to Analog Conversion for Audio (Ceramic Flat Pack SIL20)
Note: 2 channel audio from the YM2610 is input and output separately here but on the output it is
merged via 2x 2.7k resistors to a single audio signal and fed to the MB3735 AMP chip on pin 1.
The output from the MB3735 is mono.
TC0140SYT - Sound Communication
TC0040IOC - I/O Controls (start/shift/wheel/accelerator etc) and DIP switch management.
This chip provides the master reset output on pin 2.
On the upright cabinet, the accelerate pedal is a normally open switch (it is either off or on).
The shift lever is a normally open switch (off/on). When open it is set to low gear and when closed
(i.e. when pin 20 of connector G is grounded) it is set to high gear.
The steering wheel hardware on Chase HQ uses one half of a trackball mechanism (left/right only)
which is basically like a spinner. There is a segmented disc with optical sensor and another optical
sensor to detect the wheel center position. The wheel returns to the center position with the help of
a centering spring. The cockpit & DX cabs use 5k pots for the steering and accelerator, although
micro-switches will also work fine with the correct control mechanisms.
TC0110PCR - Palette Generator
TC0100SCN - Tilemap Generator
TC0150ROD - Road Generator
TC0170ABT - Motion Object Generator
Edge Connector Pinouts (NOTE! This is correct as per schematics. Pinout found on the internet is not accurate)
----------------------
COMPONENT | SOLDER Video Connector (NOTE: when facing the edge connector, pin 5 is on the left)
------------+------------ ---------------
GND | 1 | A | GND 1 GROUND
GND | 2 | B | GND 2 RED
+5V | 3 | C | +5V 3 GREEN
+5V | 4 | D | +5V 4 BLUE
-5V | 5 | E | -5V 5 SYNC
+12V | 6 | F | +12V
KEY | | | KEY
Counter 1 | 8 | J | Counter 2
Lockout 1 | 9 | K | Lockout 2 Connector "H" (on video board. Note the PCB will work without this connector wired up)
Speaker 1 + |10---L | Speaker 2 + (cockpit/DX -------------
Speaker 1 - |11---M | Speaker 2 - (cockpit/DX) 1 GND
Volume 1 |12 | N | Volume 2 (cockpit/DX) 2 GND
N/C |13 | P | 3 GND
GND |14 | R | Service Coin 4 GND
GND |15 | S | Brake 5 +5V
Coin 1 |16 | T | Coin 2 6 +5V
|17 | U | 7 +5V
Nitro |18 | V | Tilt 8 +5V
Wheel Center Sense |19 | W | Start 9 N/C
Shift |20 | X | Accelerate 10 N/C
|21 | Y | 11 N/C
Lamp 1 |22 | Z | Lamp 2 12 N/C
N/C |23 | a |
|24 | b |
|25 | c |
Steering Left |26 | d | Steering Right
GND |27 | e | GND
GND |28 | f | GND
Note:
- 22 & Z are used to drive CPU-controlled lamps in the top header.
- N/C means there is no trace connected to this edge connector pad.
- Speaker 1 and 2 are hard-wired together at the edge connector and
the PCB has a single mono amp chip so sound is mono regardless
of how many speakers are in the cabinet.
Connector "M" (to Motor Control PCB, using standard 50-pin flat cable)
Note the labels shown are the signals.
------------+--------------
/MTRES | A | 1 | MTA0 \
GND | B | 2 | MTA1 |
GND | C | 3 | MTA2 |
GND | D | 4 | MTA3 |
GND | E | 5 | MTA4 |
GND | F | 6 | MTA5 | 11-bit Address Bus to/from Motor PCB
GND | H | 7 | MTA6 |
GND | J | 8 | MTA7 |
GND | K | 9 | MTA8 |
GND | L | 10| MTA9 |
GND | M | 11| MTA10 /
GND | N | 12| MTD0 \
GND | P | 13| MTD1 |
GND | R | 14| MTD2 |
GND | S | 15| MTD3 |
GND | T | 16| MTD4 | 8-bit Data Bus to/from Motor PCB
GND | U | 17| MTD5 |
GND | V | 18| MTD6 |
GND | W | 19| MTD7 /
GND | X | 20| MTR/W Read/Write to/from Motor PCB
GND | Y | 21| MOTOR Motor On/Off Signal?
GND | Z | 22| MTDTA Acknowledge Signal?
GND | a | 23| GND
GND | b | 24| MTCK Z80 clock from main board = 3.000MHz (24/8)
GND | c | 25| GND
/MTRES is the Z80 reset signal. This stays low in upright cabinet mode, but when the
cabinet DIPs are set to deluxe this will go high to reset the Z80 on the motor PCB.
If the motor PCB is not present the signal will toggle low then high trying to reset
the Z80 until an acknowledge/ready signal (possibly MTDTA) comes back from the motor PCB.
Note none of these signals are present at the edge connector "M" if the 4 IC's at
IC78, IC79, IC80 & IC81 are not populated (i.e. if it's an upright PCB version).
Also note all these signals are present somewhere on the main PCB even if those logic chips
are not populated and regardless of the ROM set used. Most likely any ROM set will work
as a Deluxe version if the Motor PCB is present and working.
DIP Switches
------------
DIPSWA
|--------------------------------|---------------|-------------------------------|
| 1 2 3 4 5 6 7 8 | Function | Option |
|--------------------------------|---------------|-------------------------------|
|OFF OFF | Cabinet | Upright / Steering Lock* |
|ON OFF | | Upright / Free Steering |
|OFF ON | | Cockpit / Steering Lock |
|ON ON | | Deluxe / Free Steering |
|--------------------------------|---------------|-------------------------------|
| OFF | Test Mode | Game* |
| ON | | Test |
|--------------------------------|---------------|-------------------------------|
| OFF | Demo Sounds | On* |
| ON | | Off |
|--------------------------------|---------------|-------------------------------|
| OFF OFF | Coin A | 1 Coin 1 Credit* |
| ON OFF | | 2 Coins 1 Credit |
| OFF ON | | 3 Coins 1 Credit |
| ON ON | | 4 Coins 1 Credit |
|--------------------------------|---------------|-------------------------------|
| OFF OFF | Coin B | 1 Coin 2 Credits* |
| ON OFF | | 1 Coin 3 Credits |
| OFF ON | | 1 Coin 4 Credits |
| ON ON | | 1 Coin 6 Credits |
|--------------------------------|---------------|-------------------------------|
Notes:
* = Factory default setting
Coinage varies by region. Coinage shown is World Coinage.
DIPSWA 1 & 2 must be set to upright/cockpit cabinets otherwise there is an error on boot-up.
If both SW1 & SW2 are on, it enables the deluxe motion cabinet and the Motor PCB must be
present and working otherwise the game will complain with an error on boot-up "DIPSW A INITIAL ERROR!"
Upright uses digital pedals. Digital Pedals means pedals are micro-switch (on/off only)
Cockpit/Deluxe uses analog pedals. Analog Pedals means pedals use 5k-ohm potentiometers.
Steering Lock means steering wheel uses 5k-ohm potentiometers and restricted wheel movement.
Free Steering means steering wheel uses spinner-like mechanism with additional sensor for center position and spring to re-center the wheel.
DIPSWB
|--------------------------------|----------------|-------------------------------|
| 1 2 3 4 5 6 7 8 | Function | Option |
|--------------------------------|----------------|-------------------------------|
|OFF OFF | Difficulty | Medium* |
|ON OFF | | Easy |
|OFF ON | | Hard |
|ON ON | | Hardest |
|--------------------------------|----------------|-------------------------------|
| OFF OFF | Timer | 60 Seconds* |
| ON OFF | | 70 Seconds |
| OFF ON | | 65 Seconds |
| ON ON | | 55 Seconds |
|--------------------------------|----------------|-------------------------------|
| OFF | Number of | 3* |
| ON | Nitros | 5 |
|--------------------------------|----------------|-------------------------------|
| OFF | Discount On | Yes. 1 Coin To Continue* |
| ON | Continue | No Discount To Continue |
|--------------------------------|----------------|-------------------------------|
| OFF | Criminal Damage| Clear* |
| ON | On Continue | Carry Over To Continued Game |
|--------------------------------|----------------|-------------------------------|
| OFF | Allow Continue | Yes* |
| ON | | No |
|--------------------------------|----------------|-------------------------------|
* = Factory default setting
Video Board
-----------
K1100358A
J1100158A VIDEO PCB
K1100358A CHASE HQ CP (sticker)
|------------------------------------------------------------------------|
| B52-26.IC15 B52-26.IC52 |
| B52-17.IC16 B52-17.IC53 |
| H B52-26.IC17 B52-26.IC54 |-|
| B52-17.IC18 B52-17.IC55 | |
| | |
| 62256 62256 62256 62256 62256 62256 62256 62256 | |
| | |
| 62256 62256 62256 62256 62256 62256 62256 62256 | |
| | |
| B52-30.IC4 |---------| B52-127.IC156 | |
| |TAITO | |-|
| B52-34.IC5 |TC0020VAR| |
| | | B52-03.IC135 |
| B52-31.IC6 |---------| B52-126.IC136 |-|
| B52-27.IC64 B52-124.IC180| |
| B52-35.IC7 B52-51.IC65 | |
| B52-50.IC66 B52-25.IC123 | |
| B52-32.IC8 B52-125.IC112 B52-122.IC124 | |
| B52-49.IC68 B52-123.IC125 | |
| B52-36.IC9 | |
| B52-16.IC92 | |
| B52-33.IC10 B52-19.IC33 B52-18.IC93 |-|
| B52-38.IC34 B52-16.IC94 2018 |
| B52-37.IC11 B52-20.IC35 B52-21.IC51 2018 |
|------------------------------------------------------------------------|
Notes:
2018 - 2k x8-bit SRAM
62256 - 32k x8-bit SRAM
IC4/5/6 - MB834100 Mask ROM
IC7/8/9/10/11/34 - 23C4000 Mask ROM
IC15/16/17/18/52/53/54/55 - PAL20R8
IC33/35/51/112/124/125/180 - PAL16L8
IC92/93/94 - 63S141 Bi-Polar PROM
IC64/IC123 - PAL20L8
IC135/136/156 - 63S441 Bi-Polar PROM
IC68 - 27C64 EPROM
IC65/66 - 27C512 EPROM
TC0020VAR - Taito custom IC Sprite Generator
Motor PCB (only for full motion DX cabinet)
---------
J9100093A
K9100120A
DRIVE LOGIC P.C.B.
|-----------------------------------------------|
| BRT BRY T1 T2 Y1 Y2 OPT | <-- 7 LEDs
| |
| B14-32.IC27 HC14 |
| 4584 B14-33.IC26 LS07 TL081 TL081 |
|1 4584 LS02 b1|
|8 D4701 LS32 TL081 TL081 |
|W TLP521-4 LS139 |
|A D4701 LS74 TL081 TL081 |
|Y LS393 b2|
| LS273 LS393 |
| LS273 LS161 LS30 |
| LS273 LS161 LS04 |
| LS244 LS273 LS161 LS138 |
| LS245 LS245 LS161 |
| LS157 2016 |
| 2016 |
|R LS157 LS138 27C256.IC17 |
| |
| LS157 B14-34.IC6 Z80 |
| |
|-----------------------------------------------|
Notes: (all IC's shown)
R - 50 pin flat cable connector joining to main board connector M
18WAY - 36 pin card edge connector joining to numerous sensors and switches on the DX cabinet
b1/b2 - 20 pin flat cable joining 2x Motor Power PCBs to Drive Logic PCB
Z80 - Z80A CPU. Clock input 3.000MHz from main board (24/8)
27C256 - 32k x8-bit EPROM
TLP521-4 - Toshiba TLP521-4 Photocoupler With 4 Isolated Channels
D4701 - NEC D4701 Incremental Encoder Counter
TL081 - Texas Instruments TL081 JFET-Input Operational Amplifier
4584 - Hex Schmitt Trigger Logic IC
2016 - 2k x8-bit SRAM
B14-* - PAL16L8. Note the PALs and this Drive Logic PCB come from a Top Speed DX.
The Chase HQ DX cabs are just converted Top Speed DX cabs.
****************************************************************************
ChaseHQ2(SCI) custom chips (Guru) (DG: same as Bshark except 0140SYT?)
--------------------------
CPU PCB:
TC0170ABT
TC0150ROD
TC0140SYT
TC0220IOC
c09-23.rom is a
PROM type AM27S21PC, location looks like this...
-------------
| 68000 |
-------------
c09-25 c09-26
c09-24
|-------|
| |
| ABT |
| |
|-------|
c09-23 c09-07
|-------|
| |
| ROD |
| |
|-------|
c09-32 c09-33
-------------
| 68000 |
-------------
c09-21 c09-22
Lower PCB:
TC0270MOD
TC0300FLA
TC0260DAR
TC0370MSO
TC0100SCN
TC0380BSH
c09-16.rom is located next to
c09-05, which is located next to Taito TC0370MSO.
SCI (Guru)
Taito, 1989
Controls for this game are one wheel, one switch for shift lever (used for high gear)
and one switch each for accelerate, brake, gun and nitro.
Note that the gear is low by default and is shifted to high gear by a lever which
holds the switch closed. The lever is not self-centering or spring-loaded to go back to
low. The lever must be physically shifted back to low when required.
PCB Layout
----------
CPU PCB K1100490A J1100209A
|----------------------------------------------------|
| 24MHz C09-14.42 TC0140SYT C09-22.3 C09-21.2 |
| C09-13.43 68000 |
| C09-12.44 C09-33.6 C09-32.5 |
| YM2610 C09-15.29 6264 6264 |
| YM3016 TL074 TL074 Z80 |
| C09-34.31 6264 TC0150ROD |
|D VOL 6264 6264 |
| |
| MB3735 C09-07.15 C09-23.14 |
| D633 16MHz |
| 62064 6264 6264 TC0170ABT |
| C09-28.37 6264 |
|G 62003 C09-36.38 C09-24.22 |
| TC0220IOC 6264 C09-26.26 C09-25.25 |
| C09-30.40 68000 |
| DSWB DSWA C09-31.41 |
|----------------------------------------------------|
Notes:
Clocks:
68000 : 16.000MHz (both)
Z80 : 4.000MHz
YM2610: 8.000MHz
Vsync: 60Hz
Misc parts:
MB3735: 15w Power AMP with dual output (used for stereo sounds ; CH1/CH2)
TL074 : JFET Lo Noise Quad OP Amp
6264 : 8k x8 SRAM
TD62064 : NPN 50V 1.5A Quad Darlinton Switch (for driving coin meters)
TD62003 : PNP 50V 0.5A Quad Darlinton Switch (for driving coin meters)
D633 : Si NPN POWER transistor used in 68k reset circuit (TIP122 compatible)
ROMs:
C09-12 to C09-14 - MB834100
C09-07 - HN62404
C09-32 to C09-33 - AM27C512
C09-30 to C09-31 - TC571000
C09-38 and C09-36 - TC571000
C09-23 - AM27S21
C09-22 and C09-26 - MMI PAL16L8B
C09-21 and
C09-24 to C09-25 - MMI PAL20L8B
PINOUT CONNECTOR D (Note: All pinouts typed from an original Taito document)
------------------
1 +24V
2 +24V
3 GND
4 GND
5 D OUT
Question: +24V and D OUT are for?
PINOUT CONNECTOR G (the meanings of some of these is a bit vague - PTL OUTx, DRV0, HANDLE CENTER SW etc)
PARTS | SOLDER
---------------|---------------
GND 1|A GND
GND 2|B GND
+5V 3|C +5V
+5V 4|D +5V
-5V 5|E -5V
+12V 6|F +12V
KEY 7|H KEY
COUNTER A 8|J COUNTER B
C LOCKOUT A 9|K C LOCKOUT B
SPK CH1+ 10|L SPK CH2+
SPK CH1- 11|M SPK CH2-
VOLUME2 12|N VOLUME1
VOLUME3 13|P MUTE
GND 14|R SERVICE SW
GND 15|S BRAKE SW0
COIN A 16|T COIN B
BRAKE SW1 17|U BRAKE SW2
NITRO SW 18|V TILT
HANDLE CENTER SW 19|W START SW
SHIFT SW 20|X ACCEL SW0
ACCEL SW1 21|Y ACCEL SW2
PTL OUT1 22|Z PTL OUT2
DRV0 23|a GUN SW
PADL X1 24|b PADL X2
PADL Y1 25|c PADL Y2
HANDLE Z1 26|d HANDLE Z2
GND 27|e GND
GND 28|f GND
Question: What hardware is used for steering and where is it connected? It doesn't seem to use
a regular potentiometer for the steering??
PCB Layout
----------
VIDEO PCB K1100491A J1100210A
|-----------------------------------------------------|
| TC0370MSO C09-17.24 43256 |
|H C09-18.25 43256 |
| C09-05.16 |
| C09-16.17 26.686MHz TC0100SCN 6264 |
| C1815 |
|V C1815 6264 |
| C1815 TC0260DAR C09-06.37 |
|6264 |
| |
| TC0380BSH C09-19.67|
|TC0270MOD TC0300FLA |
| |
|43256 43256 43256 43256 C09-04.52 C09-20.71|
|43256 43256 43256 43256 C09-03.53 |
|43256 43256 43256 43256 C09-02.54 |
|43256 43256 43256 43256 C09-01.55 |
|-----------------------------------------------------|
Notes:
ROMs:
C09-01 to C09-05 - 234000
C09-06 - HN62404
C09-17 to C09-18 - MMI 63S441
C09-19 - MMI PAL16L8B
C09-20 - AM27S21
Misc parts:
6264: 8k x8 SRAM
43256: 32k x8 SRAM
C1815: transistor used for driving RGB
PINOUT CONNECTOR H
------------------
1 GND
2 GND
3 GND
4 GND
5 +5V
6 +5V
7 +5V
8 +5V
9 -5V
10 POST
11 +12V
12 NC
PINOUT CONNECTOR V
------------------
1 GND
2 RED
3 GREEN
4 BLUE
5 SYNC
6 NC
7 NC
****************************************************************************
Enforce PCB info
------------------
Taito, 198?/199?
Taito Z hardware
PCB No: K1100406A J1100175A (CPU PCB)
K1100407A J1100176A (VIDEO PCB)
CPU: MC68000P12 (x2)
SND: Z80, YM2610, TC0040IOC, YM3016F
OSC: 26.686MHz, 24.000MHz, 16.000MHz
DIPs: 8 Position (x2)
Taito Chips:
CPU board - TC0100SCN, TC0140SYT, TC0170ABT, TC0110PCR
Video Board - TC0150ROD, TC0050VDZ (x3), TC0020VAR
Ram: CPU BOARD - 6264 (x9), 43256 (x2),
VIDEO BOARD - 2018 (x10), 6264 (x2)
PALs/PROMs:
CPU BOARD - All located near/around the 68000's
b58-15 (PAL20L8)
b58-16 (PAL20L8)
b58-14 (PAL20L8)
b58-13 (PAL16L8)
b58-11 (PAL16L8)
b58-12 (PAL16L8)
VIDEO BOARD -
b58-22 (PAL16L8) \
b58-23 (63s141) | near TC0150ROD
b58-24 (63s141) /
b58-20 (PAL16L8) \
b58-21 (PAL16R4) |
b58-17 (PAL16L8) | near TC0020VAR
b58-18 (PAL16R4) /
b58-25 (63S141) near b58-27
b58-19 (PAL16R4) near b58-04/03/02/01
ROMs:
CPU BOARD - b58-18 , 27C010 \
b58-19 , 27C010 | 68k Program
b58-26 , 27C010 |
b58-27 , 27C010 /
b58-07 , 27C4096 \
b58-08 , 27C4096 |
b58-09 , 27C4100 | near TC0100SCN & TC0140SYT
b58-10 , 27C4096 /
b58-32 , 27C512 z80 program
VIDEO PCB - b58-06 , 27C4100 near TC0150ROD
b58-26a, 27C512 ?
b58-27 , LH5763 ?
b58-01 , 27C4100 \
b58-02 , 27C4100 |
b58-03 , 27C4100 | near TC0050VDZ's
b58-04 , 27C4100 /
****************************************************************************
BShark custom chips
-------------------
TC0220IOC (known io chip)
TC0260DAR (known palette chip)
TC0400YSC substitute for TC0140SYT when 68K writes directly to YM2610 ??
TC0170ABT = same in Dblaxle
TC0100SCN (known tilemap chip)
TC0370MSO = same in Dblaxle, Motion Objects ?
TC0300FLA = same in Dblaxle
TC0270MOD ???
TC0380BSH ???
TC0150ROD (known road generator chip)
****************************************************************************
DblAxle custom chip info
------------------------
TC0150ROD is next to road lines gfx chip [c78-09] but also
c78-15, an unused 256 byte rom. Perhaps this contains color
info for the road lines? Raine makes an artificial "pal map"
for the road, AFAICS.
TC0170ABT is between 68000 CPUA and the TC0140SYT. Next to
that is the Z80A, the YM2610, and the three adpcm roms.
On the graphics board we have the TC0480SCP next to its two
scr gfx roms: c78-10 & 11.
The STY object mapping rom is next to c78-25, an unused
0x10000 byte rom which compresses by 98%. To right of this
are TC0370MSO (motion objects?), then TC0300FLA.
Below c78-25 are two unused 1K roms: c84-10 and c84-11.
Below right is another unused 256 byte rom, c78-21.
(At the bottom are the 5 obj gfx roms.)
K11000635A
----------
43256 c78-11 SCN1 CHR
43256 c78-10 SCN0 CHR TC0480SCP
c78-04
STY ROM
c78-25 TC0370MSO TC0300FLA
c84-10
c84-11 c78-21
43256 43256 43256 43256
43256 43256 43256 43256 43256
43256 43256 43256 43256 43256
43256 43256
c78-05L
c78-06 OBJ1
c78-05H
c78-08 OBJ3 c78-07 OBJ2
Power Wheels
------------
Cpu PCB
CPU: 68000-16 x2
Sound: Z80-A
YM2610
OSC: 32.000MHz
Chips: TC0140SYT
TC0150ROD
TC0170ABT
TC0310FAM
TC0510NIO
Video PCB
OSC: 26.686MHz
Chips: TC0260DAR
TC0270MOD
TC0300FLA
TC0370MSO
TC0380BSH
TC0480SCP
LAN interface board
OSC: 40.000MHz
16.000MHz
Chips: uPD72105C
****************************************************************************
Racing Beat
-------------
M43E0227A
K11E0674A
K1100650A J1100264A CPU PCB
|-------------------------------------------------------------|
|6264 62256 32MHz DSWA DSWB |
| 62256 |
|C84-104.2 |
|C84-110.3 TC0170ABT TC0510NIO |
|C84-103.4 |
|C84-111.5 MB3771 |
| C84_101.42 |
|6264 TC0140SYT |
| 6264 |
| |
| |
| C84-85.31 Z80 |
|68000 |
| |
| |
|PAL PAL YM2610 |
| C84-86.33 |
|PAL |
| 6264 C84-87.46 |
| |
| |
| PAL C84-99.35 YM3016 |
|6264 6264 |
| |
| PAL C84-100.36 TL074 |
| TC0150ROD |
|C84-84.12 6264 |
| PAL |
| TL074 |
| C84-07.22 MB3735 |
| 68000 |
|-------------------------------------------------------------|
Notes:
68000s running at 16MHz
Z80 running at 4MHz
YM2610 running at 8MHz
K11X0675A
K1100635A
J1100256A VIDEO PCB
|-------------------------------------------------------------|
| 26.686MHz 6264 |
|62256 C84-89.11 TC0260DAR |
| |
|62256 C84-90.12 |
| TC0480SCP 6264 |
| |
| 6264 |
|C84-88.3 |
| |
| |
| C84-19.15 |
| TC0370MSO TC0300FLA PAL |
| C84-10.16 |
| C84-11.17 |
| C84-09.74|
| |
| 62256 62256 62256 62256 |
| |
| |
| 62256 62256 62256 62256 62256 |
| |
| |
| 62256 62256 62256 62256 62256 |
| |
| |
| 62256 62256 |
| C84-91.23 C84-93.31 |
| |
| TC0380BSH TC0270MOD |
| C84-92.25 C84-94.33 |
| |
|-------------------------------------------------------------|
TODO Lists
==========
Is the no-Z80 sound handling correct: some voices in Bshark
aren't that clear.
Make taitosnd cpu-independent so we can restore Z80 to CPU3.
Cockpit hardware
DIPs - e.g. coinage
Sprite zooming - dimensions may be got from the unused 64K rom
on the video board (it's in the right place for it, both with
Contcirc video chips and the chips used on later boards). These
64K roms compare as follows - makes sense as these groups
comprise the three sprite layout types used in TaitoZ games:
Contcirc / Enforce =IDENTICAL
ChaseHQ / Nightstr =IDENTICAL
Bshark / SCI / Dblaxle / Racingb =IDENTICAL
Missing from Aquajack / Spacegun dumps (I would bet they are
the same as Bshark). Can anyone dump these two along with any
proms on the video board?
Continental Circus
------------------
Road priority incompletely understood - e.g. start barrier should
be darkening LH edge of road as well as RH edge.
Junk (?) stuff often written in high byte of sound word.
Speculative YM2610 a/b/c channel filtering as these may be
outputs to subwoofer (vibration). They sound better, anyway.
Chasehq
-------
Motor CPU: appears to be identical to one in Topspeed.
[Used to have junk sprites when you reach criminal car (the 'criminals
here' sprite): two bits above tile number are used. Are these
meaningless, or is some effect missing?]
Enforce
-------
Test mode - SHIFT: LO/HI is not understood (appears to depend on Demo
Sound DSW)
Landscape in the background can be made to scroll rapidly with DSW.
True to original?
Some layer offsets are out a little.
Road layer has wrong colors--regression?
Battle Shark
------------
Is road on the road stages correct? Hard to tell.
Does the original have the "seeking" crosshair effect, making it a
challenge to control?
SCI
---
Road seems ok, but are the green bushes in round 1 a little too far
to the edge of the interroad verge?
Sprite frames were plotted in opposite order so flickered. Reversing
this has lost us alternate frames: probably need to buffer sprite
ram by one frame to solve this?
Night Striker
-------------
Road A/B priority problems will manifest in the choice tunnels with,
one or the other having higher priority in top and bottom halves. Can
someone provide a sequence of screenshots showing exactly what happens
at the road split point.
Strange page in test mode which lets you alter all sorts of settings,
may relate to sit-in cockpit version. Can't find a dip that disables
this. <- Test Mode 1? That's used for lamps and motor testing... -AS
Motors (located at the 0xe000**) are mirrored, they use both bytes of a
word, the high one is used during gameplay and the other one is used on service
mode. The gameplay port is xor'ed (!).
It works like this:
--xx xx-- Force Feedback power
---- --x- "Reverse" motor
---- ---x "Turn" motor
TC0220IOC offset 3 is used for lamps, both upright and cockpit version afaik:
x--- ---- spot 2 lamp (right)
-x-- ---- spot 1 lamp (left)
--x- ---- motor lamp 3 (right)
---x ---- motor lamp 2 (center)
---- x--- motor lamp 1 (left)
---- -x-- trigger lamp
---- --x- start lamp
---- ---x shot lamp
The two spot lamps are big red lamps located at the sides of the screen (at least
in the upright version), they lights when the player gets hit and/or if he's dying.
Aqua Jack
---------
Some wrong colors. Hovercraft body should be red. 1st level sky/water
should be blue.
Sprites left on screen under hiscore table. Deliberate? Or is there
a sprite disable bit somewhere.
Should road body be largely transparent as I've implemented it?
Sprite/sprite priorities often look bad. Sprites go to max size for
a frame before they explode - surely a bug.
Hangs briefly fairly often without massive cpu interleaving (500).
Keys aren't very responsive in test mode.
The problem code is this:
CPUA
$1fe02 hangs waiting for ($6002,A5) in shared ram to be zero.
CPUB
$1056 calls $11ea routine which starts by setting ($6002,A5) non-
zero. At end (after $1218 waiting for a bit from sound comm port)
it alters ($6002,A5) to zero (but this value lasts briefly!).
Unless context rapidly switches back to cpua this change is missed
because $11ea gets called again *very* rapidly at times when sounds
are being written [that's when the problem manifested].
$108a-c2 reads 0x20 bytes from unmapped area, not sure
what it's doing. Perhaps this machine had some optional
exotic input device...
Spacegun
--------
Problem with the zoomed sprites not matching up very well
when forming the background. They jerk a bit relative to
each other... probably a cpu sync thing, perhaps also some
fine-tuning required on the zoomed sprite dimension calcs.
ADC clock unknown.
Double Axle
-----------
Road occasionally has incorrectly unclipped line appearing at top
(ice stage). Also road 'ghost' often remains on screen - also an
interrupt issue I presume.
Double Axle has poor sound: one ADPCM rom should be twice as long?
[In log we saw stuff like this, suggesting extra ADPCM rom needed:
YM2610: ADPCM-A end out of range: $001157ff
YM2610: ADPCM-A start out of range: $00111f00]
Various sprites go missing e.g. mountains half way through cross
country course. Fall off the ledge and crash and you will see
the explosion sprites make other mountain sprites vanish, as
though their entries in spriteram are being overwritten. (Perhaps
an int6 timing/number issue: sprites seem to be ChaseHQ2ish with
a spriteframe toggle - currently this never changes which may be
wrong.)
Double Axle seems to keep only 1 sprite frame in sprite ram,
which is probably wrong. Game seems to work with no int 6's
at all. Cpu control byte has 0,4,8,c poked into 2nd nibble
and it seems possible this should be causing int6's ?
Racing Beat
-----------
Graphics problems:
- tearing in the main road (tile layer 3 offset?)
likely cause is mame/video/tc0480scp.c in bg23_draw:
** flawed calc ?? **
x_index -= (m_x_offset - 0x1f + layer * 4) * ((row_zoom & 0xff) << 8);
- car sprites palette flickering
- layer missing sometimes (random?) ie. motor block sprite after inserting coin
LAN board is unemulated
DIP switches are not verified
***************************************************************************/
#include "emu.h"
#include "includes/taito_z.h"
#include "includes/taitoipt.h"
#include "cpu/m68000/m68000.h"
#include "cpu/z80/z80.h"
#include "machine/adc0808.h"
#include "machine/eepromser.h"
#include "sound/2610intf.h"
#include "screen.h"
#include "speaker.h"
#include "contcirc.lh"
#include "dblaxle.lh"
void taitoz_state::parse_cpu_control( )
{
/* bit 0 enables cpu B */
m_subcpu->set_input_line(INPUT_LINE_RESET, (m_cpua_ctrl & 0x1) ? CLEAR_LINE : ASSERT_LINE);
}
WRITE16_MEMBER(taitoz_state::cpua_ctrl_w)
{
//logerror("CPU #0 PC %06x: write %04x to cpu control\n", m_maincpu->pc(), data);
if (mem_mask == 0xff00) data >>= 8;
data &= 0xff;
m_cpua_ctrl = data;
parse_cpu_control();
}
WRITE16_MEMBER(taitoz_state::chasehq_cpua_ctrl_w)
{
cpua_ctrl_w(space, offset, data, mem_mask);
m_lamps[0] = BIT(m_cpua_ctrl, 5);
m_lamps[1] = BIT(m_cpua_ctrl, 6);
}
WRITE16_MEMBER(taitoz_state::dblaxle_cpua_ctrl_w)
{
cpua_ctrl_w(space, offset, data, mem_mask);
output().set_value("Wheel_Vibration", (data & 0x04)>>2);
}
/***********************************************************
INTERRUPTS
***********************************************************/
void taitoz_state::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr)
{
switch (id)
{
case TIMER_TAITOZ_INTERRUPT6:
/* 68000 A */
m_maincpu->set_input_line(6, HOLD_LINE);
break;
default:
assert_always(false, "Unknown id in taitoz_state::device_timer");
}
}
/***** Routines for particular games *****/
INTERRUPT_GEN_MEMBER(taitoz_state::sci_interrupt)
{
/* Need 2 int4's per int6 else (-$6b63,A5) never set to 1 which
causes all sprites to vanish! Spriteram has areas for 2 frames
so in theory only needs updating every other frame. */
m_sci_int6 = !m_sci_int6;
if (m_sci_int6)
timer_set(downcast<cpu_device *>(&device)->cycles_to_attotime(200000 - 500), TIMER_TAITOZ_INTERRUPT6);
device.execute().set_input_line(4, HOLD_LINE);
}
/******************************************************************
EEPROM
******************************************************************/
static const uint16_t spacegun_default_eeprom[64]=
{
0x0000,0x00ff,0x0001,0x4141,0x0000,0x00ff,0x0000,0xf0f0,
0x0000,0x00ff,0x0001,0x4141,0x0000,0x00ff,0x0000,0xf0f0,
0x0080,0x0080,0x0080,0x0080,0x0001,0x4000,0x0000,0xf000,
0x0001,0x4285,0x0000,0xf1e3,0x0001,0x4000,0x0000,0xf000,
0x0001,0x4285,0x0000,0xf1e3,0xcccb,0xffff,0xffff,0xffff,
0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,
0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,
0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff
};
#if 0
READ16_MEMBER(taitoz_state::eep_latch_r)
{
return m_eep_latch;
}
#endif
WRITE8_MEMBER(taitoz_state::spacegun_eeprom_w)
{
/* 0000xxxx (unused)
000x0000 eeprom reset (active low)
00x00000 eeprom clock
0x000000 eeprom data
x0000000 (unused) */
COMBINE_DATA(&m_eep_latch);
ioport("EEPROMOUT")->write(data, 0xff);
}
/**********************************************************
GAME INPUTS
**********************************************************/
CUSTOM_INPUT_MEMBER(taitoz_state::taitoz_pedal_r)
{
static const uint8_t retval[8] = { 0,1,3,2,6,7,5,4 };
ioport_port *port = ioport((const char *)param);
return retval[port != nullptr ? port->read() & 7 : 0];
}
READ8_MEMBER(taitoz_state::contcirc_input_bypass_r)
{
/* Bypass TC0040IOC controller for analog input */
uint8_t port = m_tc0040ioc->port_r(space, 0); /* read port number */
uint16_t steer = 0xff80 + m_steer.read_safe(0x80);
switch (port)
{
case 0x08:
return steer & 0xff;
case 0x09:
return steer >> 8;
default:
return m_tc0040ioc->portreg_r(space, offset);
}
}
READ8_MEMBER(taitoz_state::chasehq_input_bypass_r)
{
/* Bypass TC0040IOC controller for extra inputs */
uint8_t port = m_tc0040ioc->port_r(space, 0); /* read port number */
uint16_t steer = 0xff80 + m_steer.read_safe(0x80);
switch (port)
{
case 0x08:
return ioport("UNK1")->read();
case 0x09:
return ioport("UNK2")->read();
case 0x0a:
return ioport("UNK3")->read();
case 0x0b:
return ioport("UNK4")->read();
case 0x0c:
return steer & 0xff;
case 0x0d:
return steer >> 8;
default:
return m_tc0040ioc->portreg_r(space, offset);
}
}
READ16_MEMBER(taitoz_state::sci_steer_input_r)
{
uint16_t steer = 0xff80 + m_steer.read_safe(0x80);
switch (offset)
{
case 0x04:
return (steer & 0xff);
case 0x05:
return (steer & 0xff00) >> 8;
}
logerror("CPU #0 PC %06x: warning - read unmapped steer input offset %06x\n", m_maincpu->pc(), offset);
return 0xff;
}
WRITE16_MEMBER(taitoz_state::spacegun_gun_output_w)
{
output().set_value("Player1_Gun_Recoil",(data & 0x01));
output().set_value("Player2_Gun_Recoil",(data & 0x02)>>1);
}
READ16_MEMBER(taitoz_state::dblaxle_steer_input_r)
{
uint16_t steer = 0xff80 + m_steer.read_safe(0x80);
switch (offset)
{
case 0x04:
return steer >> 8;
case 0x05:
return steer & 0xff;
}
logerror("CPU #0 PC %06x: warning - read unmapped steer input offset %02x\n", m_maincpu->pc(), offset);
return 0x00;
}
// TODO: proper motorcpu hook-up
READ16_MEMBER(taitoz_state::chasehq_motor_r)
{
switch (offset)
{
case 0x0:
return (machine().rand() &0xff); /* motor status ?? */
case 0x101:
return 0x55; /* motor cpu status ? */
default:
logerror("CPU #0 PC %06x: warning - read motor cpu %03x\n",m_maincpu->pc(),offset);
return 0;
}
}
WRITE16_MEMBER(taitoz_state::chasehq_motor_w)
{
/* Writes $e00000-25 and $e00200-219 */
switch (offset)
{
case 0x0:
break;
case 0x101:
/* outputs will go here, but driver is still broken */
break;
}
logerror("CPU #0 PC %06x: warning - write %04x to motor cpu %03x\n",m_maincpu->pc(),data,offset);
}
WRITE16_MEMBER(taitoz_state::nightstr_motor_w)
{
/* Despite the informative notes at the top, the high end of the word doesn't seem to output any useful data. */
/* I've added this so someone else can finish it. */
switch (offset)
{
case 0:
output().set_value("Motor_1_Direction",0);
if (data & 1) output().set_value("Motor_1_Direction",1);
if (data & 2) output().set_value("Motor_1_Direction",2);
output().set_value("Motor_1_Speed",(data & 60)/4);
break;
case 4:
output().set_value("Motor_2_Direction",0);
if (data & 1) output().set_value("Motor_2_Direction",1);
if (data & 2) output().set_value("Motor_2_Direction",2);
output().set_value("Motor_2_Speed",(data & 60)/4);
break;
case 8:
output().set_value("Motor_3_Direction",0);
if (data & 1) output().set_value("Motor_3_Direction",1);
if (data & 2) output().set_value("Motor_3_Direction",2);
output().set_value("Motor_3_Speed",(data & 60)/4);
break;
default:
output().set_value("motor_debug",data);
break;
}
}
WRITE8_MEMBER(taitoz_state::coin_control_w)
{
machine().bookkeeping().coin_lockout_w(0, ~data & 0x01);
machine().bookkeeping().coin_lockout_w(1, ~data & 0x02);
machine().bookkeeping().coin_counter_w(0, data & 0x04);
machine().bookkeeping().coin_counter_w(1, data & 0x08);
}
READ16_MEMBER(taitoz_state::aquajack_unknown_r)
{
return 0xff;
}
/*****************************************************
SOUND
*****************************************************/
WRITE8_MEMBER(taitoz_state::sound_bankswitch_w)
{
membank("z80bank")->set_entry(data & 7);
}
WRITE16_MEMBER(taitoz_state::taitoz_sound_w)
{
if (offset == 0)
m_tc0140syt->master_port_w(space, 0, data & 0xff);
else if (offset == 1)
m_tc0140syt->master_comm_w(space, 0, data & 0xff);
#ifdef MAME_DEBUG
// if (data & 0xff00)
// {
// char buf[80];
//
// sprintf(buf,"taitoz_sound_w to high byte: %04x",data);
// popmessage(buf);
// }
#endif
}
READ16_MEMBER(taitoz_state::taitoz_sound_r)
{
if (offset == 1)
return (m_tc0140syt->master_comm_r(space, 0) & 0xff);
else
return 0;
}
#if 0
WRITE16_MEMBER(taitoz_state::taitoz_msb_sound_w)
{
if (offset == 0)
m_tc0140syt->master_port_w(0, (data >> 8) & 0xff);
else if (offset == 1)
m_tc0140syt->master_comm_w(0, (data >> 8) & 0xff);
#ifdef MAME_DEBUG
if (data & 0xff)
{
char buf[80];
sprintf(buf,"taitoz_msb_sound_w to low byte: %04x",data);
popmessage(buf);
}
#endif
}
READ16_MEMBER(taitoz_state::taitoz_msb_sound_r)
{
if (offset == 1)
return ((m_tc0140syt->master_comm_r(0) & 0xff) << 8);
else
return 0;
}
#endif
/**** sound pan control ****/
WRITE8_MEMBER(taitoz_state::taitoz_pancontrol)
{
m_filter[offset & 3]->flt_volume_set_volume(data / 255.0f);
}
/***********************************************************
MEMORY STRUCTURES
***********************************************************/
void taitoz_state::contcirc_map(address_map &map)
{
map(0x000000, 0x03ffff).rom();
map(0x080000, 0x083fff).ram();
map(0x084000, 0x087fff).ram().share("share1");
map(0x090000, 0x090001).w(FUNC(taitoz_state::contcirc_out_w)); /* road palette bank, sub CPU reset, 3d glasses control */
map(0x100000, 0x100007).rw(m_tc0110pcr, FUNC(tc0110pcr_device::word_r), FUNC(tc0110pcr_device::step1_rbswap_word_w)); /* palette */
map(0x200000, 0x20ffff).rw(m_tc0100scn, FUNC(tc0100scn_device::word_r), FUNC(tc0100scn_device::word_w)); /* tilemaps */
map(0x220000, 0x22000f).rw(m_tc0100scn, FUNC(tc0100scn_device::ctrl_word_r), FUNC(tc0100scn_device::ctrl_word_w));
map(0x300000, 0x301fff).rw(m_tc0150rod, FUNC(tc0150rod_device::word_r), FUNC(tc0150rod_device::word_w)); /* "root ram" */
map(0x400000, 0x4006ff).ram().share("spriteram");
}
void taitoz_state::contcirc_cpub_map(address_map &map)
{
map(0x000000, 0x03ffff).rom();
map(0x080000, 0x083fff).ram();
map(0x084000, 0x087fff).ram().share("share1");
map(0x100001, 0x100001).r(FUNC(taitoz_state::contcirc_input_bypass_r)).w(m_tc0040ioc, FUNC(tc0040ioc_device::portreg_w)).umask16(0x00ff);
map(0x100003, 0x100003).rw(m_tc0040ioc, FUNC(tc0040ioc_device::watchdog_r), FUNC(tc0040ioc_device::port_w));
map(0x200000, 0x200003).rw(FUNC(taitoz_state::taitoz_sound_r), FUNC(taitoz_state::taitoz_sound_w));
}
void taitoz_state::chasehq_map(address_map &map)
{
map(0x000000, 0x07ffff).rom();
map(0x100000, 0x107fff).ram();
map(0x108000, 0x10bfff).ram().share("share1");
map(0x10c000, 0x10ffff).ram();
map(0x400001, 0x400001).r(FUNC(taitoz_state::chasehq_input_bypass_r)).w(m_tc0040ioc, FUNC(tc0040ioc_device::portreg_w)).umask16(0x00ff);
map(0x400003, 0x400003).rw(m_tc0040ioc, FUNC(tc0040ioc_device::watchdog_r), FUNC(tc0040ioc_device::port_w));
map(0x800000, 0x800001).w(FUNC(taitoz_state::chasehq_cpua_ctrl_w));
map(0x820000, 0x820003).rw(FUNC(taitoz_state::taitoz_sound_r), FUNC(taitoz_state::taitoz_sound_w));
map(0xa00000, 0xa00007).rw(m_tc0110pcr, FUNC(tc0110pcr_device::word_r), FUNC(tc0110pcr_device::step1_word_w)); /* palette */
map(0xc00000, 0xc0ffff).rw(m_tc0100scn, FUNC(tc0100scn_device::word_r), FUNC(tc0100scn_device::word_w)); /* tilemaps */
map(0xc20000, 0xc2000f).rw(m_tc0100scn, FUNC(tc0100scn_device::ctrl_word_r), FUNC(tc0100scn_device::ctrl_word_w));
map(0xd00000, 0xd007ff).ram().share("spriteram");
map(0xe00000, 0xe003ff).rw(FUNC(taitoz_state::chasehq_motor_r), FUNC(taitoz_state::chasehq_motor_w)); /* motor cpu */
}
void taitoz_state::chq_cpub_map(address_map &map)
{
map(0x000000, 0x01ffff).rom();
map(0x100000, 0x103fff).ram();
map(0x108000, 0x10bfff).ram().share("share1");
map(0x800000, 0x801fff).rw(m_tc0150rod, FUNC(tc0150rod_device::word_r), FUNC(tc0150rod_device::word_w));
}
void taitoz_state::enforce_map(address_map &map)
{
map(0x000000, 0x03ffff).rom();
map(0x100000, 0x103fff).ram();
map(0x104000, 0x107fff).ram().share("share1");
map(0x200000, 0x200001).w(FUNC(taitoz_state::cpua_ctrl_w)); // works without?
map(0x300000, 0x3006ff).ram().share("spriteram");
map(0x400000, 0x401fff).rw(m_tc0150rod, FUNC(tc0150rod_device::word_r), FUNC(tc0150rod_device::word_w)); /* "root ram" ??? */
map(0x500000, 0x500007).rw(m_tc0110pcr, FUNC(tc0110pcr_device::word_r), FUNC(tc0110pcr_device::step1_rbswap_word_w)); /* palette */
map(0x600000, 0x60ffff).rw(m_tc0100scn, FUNC(tc0100scn_device::word_r), FUNC(tc0100scn_device::word_w)); /* tilemaps */
map(0x620000, 0x62000f).rw(m_tc0100scn, FUNC(tc0100scn_device::ctrl_word_r), FUNC(tc0100scn_device::ctrl_word_w));
}
void taitoz_state::enforce_cpub_map(address_map &map)
{
map(0x000000, 0x03ffff).rom();
map(0x100000, 0x103fff).ram();
map(0x104000, 0x107fff).ram().share("share1");
map(0x200000, 0x200003).rw(FUNC(taitoz_state::taitoz_sound_r), FUNC(taitoz_state::taitoz_sound_w));
map(0x300000, 0x300003).rw(m_tc0040ioc, FUNC(tc0040ioc_device::read), FUNC(tc0040ioc_device::write)).umask16(0x00ff);
}
void taitoz_state::bshark_map(address_map &map)
{
map(0x000000, 0x07ffff).rom();
map(0x100000, 0x10ffff).ram();
map(0x110000, 0x113fff).ram().share("share1");
map(0x400000, 0x40000f).rw(m_tc0220ioc, FUNC(tc0220ioc_device::read), FUNC(tc0220ioc_device::write)).umask16(0x00ff);
map(0x600000, 0x600001).w(FUNC(taitoz_state::cpua_ctrl_w));
map(0x800000, 0x80000f).rw("adc", FUNC(adc0808_device::data_r), FUNC(adc0808_device::address_offset_start_w)).umask16(0x00ff);
map(0xa00000, 0xa01fff).ram().w("palette", FUNC(palette_device::write16)).share("palette");
map(0xc00000, 0xc00fff).ram().share("spriteram");
map(0xd00000, 0xd0ffff).rw(m_tc0100scn, FUNC(tc0100scn_device::word_r), FUNC(tc0100scn_device::word_w)); /* tilemaps */
map(0xd20000, 0xd2000f).rw(m_tc0100scn, FUNC(tc0100scn_device::ctrl_word_r), FUNC(tc0100scn_device::ctrl_word_w));
}
void taitoz_state::bsharkjjs_map(address_map &map)
{
map(0x000000, 0x07ffff).rom();
map(0x100000, 0x10ffff).ram();
map(0x110000, 0x113fff).ram().share("share1");
map(0x400000, 0x40000f).rw(m_tc0220ioc, FUNC(tc0220ioc_device::read), FUNC(tc0220ioc_device::write)).umask16(0x00ff);
map(0x600000, 0x600001).w(FUNC(taitoz_state::cpua_ctrl_w));
// map(0x800000, 0x80000f) // No analog stick, this is the Joystick version
map(0xa00000, 0xa01fff).ram().w("palette", FUNC(palette_device::write16)).share("palette");
map(0xc00000, 0xc00fff).ram().share("spriteram");
map(0xd00000, 0xd0ffff).rw(m_tc0100scn, FUNC(tc0100scn_device::word_r), FUNC(tc0100scn_device::word_w)); /* tilemaps */
map(0xd20000, 0xd2000f).rw(m_tc0100scn, FUNC(tc0100scn_device::ctrl_word_r), FUNC(tc0100scn_device::ctrl_word_w));
}
void taitoz_state::bshark_cpub_map(address_map &map)
{
map(0x000000, 0x07ffff).rom();
map(0x108000, 0x10bfff).ram();
map(0x110000, 0x113fff).ram().share("share1");
map(0x400000, 0x400007).w(FUNC(taitoz_state::taitoz_pancontrol)).umask16(0x00ff); /* pan */
// map(0x40000a, 0x40000b).r(FUNC(taitoz_state::taitoz_unknown_r)); // ???
map(0x600000, 0x600007).rw("ymsnd", FUNC(ym2610_device::read), FUNC(ym2610_device::write)).umask16(0x00ff);
map(0x60000c, 0x60000d).noprw(); // interrupt controller?
map(0x60000e, 0x60000f).noprw();
map(0x800000, 0x801fff).rw(m_tc0150rod, FUNC(tc0150rod_device::word_r), FUNC(tc0150rod_device::word_w));
}
void taitoz_state::sci_map(address_map &map)
{
map(0x000000, 0x07ffff).rom();
map(0x100000, 0x107fff).ram();
map(0x108000, 0x10bfff).ram().share("share1");
map(0x10c000, 0x10ffff).ram();
map(0x200000, 0x20000f).rw(m_tc0220ioc, FUNC(tc0220ioc_device::read), FUNC(tc0220ioc_device::write)).umask16(0x00ff);
map(0x200010, 0x20001f).r(FUNC(taitoz_state::sci_steer_input_r));
// map(0x400000, 0x400001).w(FUNC(taitoz_state::cpua_ctrl_w)); // ?? doesn't seem to fit what's written
map(0x420000, 0x420003).rw(FUNC(taitoz_state::taitoz_sound_r), FUNC(taitoz_state::taitoz_sound_w));
map(0x800000, 0x801fff).ram().w("palette", FUNC(palette_device::write16)).share("palette");
map(0xa00000, 0xa0ffff).rw(m_tc0100scn, FUNC(tc0100scn_device::word_r), FUNC(tc0100scn_device::word_w)); /* tilemaps */
map(0xa20000, 0xa2000f).rw(m_tc0100scn, FUNC(tc0100scn_device::ctrl_word_r), FUNC(tc0100scn_device::ctrl_word_w));
map(0xc00000, 0xc03fff).ram().share("spriteram");
map(0xc08000, 0xc08001).rw(FUNC(taitoz_state::sci_spriteframe_r), FUNC(taitoz_state::sci_spriteframe_w));
}
void taitoz_state::sci_cpub_map(address_map &map)
{
map(0x000000, 0x01ffff).rom();
map(0x200000, 0x203fff).ram();
map(0x208000, 0x20bfff).ram().share("share1");
map(0xa00000, 0xa01fff).rw(m_tc0150rod, FUNC(tc0150rod_device::word_r), FUNC(tc0150rod_device::word_w));
}
void taitoz_state::nightstr_map(address_map &map)
{
map(0x000000, 0x07ffff).rom();
map(0x100000, 0x10ffff).ram();
map(0x110000, 0x113fff).ram().share("share1");
map(0x400000, 0x40000f).rw(m_tc0220ioc, FUNC(tc0220ioc_device::read), FUNC(tc0220ioc_device::write)).umask16(0x00ff);
map(0x800000, 0x800001).w(FUNC(taitoz_state::cpua_ctrl_w));
map(0x820000, 0x820003).rw(FUNC(taitoz_state::taitoz_sound_r), FUNC(taitoz_state::taitoz_sound_w));
map(0xa00000, 0xa00007).rw(m_tc0110pcr, FUNC(tc0110pcr_device::word_r), FUNC(tc0110pcr_device::step1_word_w)); /* palette */
map(0xc00000, 0xc0ffff).rw(m_tc0100scn, FUNC(tc0100scn_device::word_r), FUNC(tc0100scn_device::word_w)); /* tilemaps */
map(0xc20000, 0xc2000f).rw(m_tc0100scn, FUNC(tc0100scn_device::ctrl_word_r), FUNC(tc0100scn_device::ctrl_word_w));
map(0xd00000, 0xd007ff).ram().share("spriteram");
map(0xe00000, 0xe00011).w(FUNC(taitoz_state::nightstr_motor_w)); /* Motor outputs */
map(0xe40000, 0xe4000f).rw("adc", FUNC(adc0808_device::data_r), FUNC(adc0808_device::address_offset_start_w)).umask16(0x00ff);
}
void taitoz_state::nightstr_cpub_map(address_map &map)
{
map(0x000000, 0x03ffff).rom();
map(0x100000, 0x103fff).ram();
map(0x104000, 0x107fff).ram().share("share1");
map(0x800000, 0x801fff).rw(m_tc0150rod, FUNC(tc0150rod_device::word_r), FUNC(tc0150rod_device::word_w));
}
void taitoz_state::aquajack_map(address_map &map)
{
map(0x000000, 0x03ffff).rom();
map(0x100000, 0x103fff).ram();
map(0x104000, 0x107fff).ram().share("share1");
map(0x200000, 0x200001).w(FUNC(taitoz_state::cpua_ctrl_w)); // not needed, but it's probably like the others
map(0x300000, 0x300007).rw(m_tc0110pcr, FUNC(tc0110pcr_device::word_r), FUNC(tc0110pcr_device::step1_word_w)); /* palette */
map(0x800000, 0x801fff).rw(m_tc0150rod, FUNC(tc0150rod_device::word_r), FUNC(tc0150rod_device::word_w));
map(0xa00000, 0xa0ffff).rw(m_tc0100scn, FUNC(tc0100scn_device::word_r), FUNC(tc0100scn_device::word_w)); /* tilemaps */
map(0xa20000, 0xa2000f).rw(m_tc0100scn, FUNC(tc0100scn_device::ctrl_word_r), FUNC(tc0100scn_device::ctrl_word_w));
map(0xc40000, 0xc403ff).ram().share("spriteram");
}
void taitoz_state::aquajack_cpub_map(address_map &map)
{
map(0x000000, 0x03ffff).rom();
map(0x100000, 0x103fff).ram();
map(0x104000, 0x107fff).ram().share("share1");
map(0x200000, 0x20000f).rw(m_tc0220ioc, FUNC(tc0220ioc_device::read), FUNC(tc0220ioc_device::write)).umask16(0x00ff);
map(0x300000, 0x300003).rw(FUNC(taitoz_state::taitoz_sound_r), FUNC(taitoz_state::taitoz_sound_w));
map(0x800800, 0x80083f).r(FUNC(taitoz_state::aquajack_unknown_r)); // Read regularly after write to 800800...
// map(0x800800, 0x800801).w(FUNC(taitoz_state::taitoz_unknown_w));
// map(0x900000, 0x900007).rw(FUNC(taitoz_state::taitoz_unknown_r), FUNC(taitoz_state::taitoz_unknown_w));
}
void taitoz_state::spacegun_map(address_map &map)
{
map(0x000000, 0x07ffff).rom();
map(0x30c000, 0x30ffff).ram();
map(0x310000, 0x31ffff).ram().share("share1");
map(0x500000, 0x5005ff).ram().share("spriteram");
map(0x900000, 0x90ffff).rw(m_tc0100scn, FUNC(tc0100scn_device::word_r), FUNC(tc0100scn_device::word_w)); /* tilemaps */
map(0x920000, 0x92000f).rw(m_tc0100scn, FUNC(tc0100scn_device::ctrl_word_r), FUNC(tc0100scn_device::ctrl_word_w));
map(0xb00000, 0xb00007).rw(m_tc0110pcr, FUNC(tc0110pcr_device::word_r), FUNC(tc0110pcr_device::step1_rbswap_word_w)); /* palette */
}
void taitoz_state::spacegun_cpub_map(address_map &map)
{
map(0x000000, 0x03ffff).rom();
map(0x20c000, 0x20ffff).ram();
map(0x210000, 0x21ffff).ram().share("share1");
map(0x800000, 0x80000f).rw(m_tc0510nio, FUNC(tc0510nio_device::read), FUNC(tc0510nio_device::write)).umask16(0x00ff).cswidth(16);
map(0xc00000, 0xc00007).rw("ymsnd", FUNC(ym2610_device::read), FUNC(ym2610_device::write)).umask16(0x00ff);
map(0xc0000c, 0xc0000d).noprw(); // interrupt controller?
map(0xc0000e, 0xc0000f).noprw();
map(0xc20000, 0xc20007).w(FUNC(taitoz_state::taitoz_pancontrol)).umask16(0x00ff); /* pan */
map(0xe00000, 0xe00001).w(FUNC(taitoz_state::spacegun_gun_output_w)); /* gun outputs */
map(0xf00000, 0xf0000f).rw("adc", FUNC(adc0808_device::data_r), FUNC(adc0808_device::address_offset_start_w)).umask16(0x00ff);
}
void taitoz_state::dblaxle_map(address_map &map)
{
map(0x000000, 0x07ffff).rom();
map(0x200000, 0x203fff).ram();
map(0x210000, 0x21ffff).ram().share("share1");
map(0x400000, 0x40000f).rw(m_tc0510nio, FUNC(tc0510nio_device::halfword_wordswap_r), FUNC(tc0510nio_device::halfword_wordswap_w));
map(0x400010, 0x40001f).r(FUNC(taitoz_state::dblaxle_steer_input_r));
map(0x600000, 0x600001).w(FUNC(taitoz_state::dblaxle_cpua_ctrl_w)); /* could this be causing int6 ? */
map(0x620000, 0x620003).rw(FUNC(taitoz_state::taitoz_sound_r), FUNC(taitoz_state::taitoz_sound_w));
map(0x800000, 0x801fff).ram().w("palette", FUNC(palette_device::write16)).share("palette");
map(0x900000, 0x90ffff).rw(m_tc0480scp, FUNC(tc0480scp_device::word_r), FUNC(tc0480scp_device::word_w)); /* tilemap mirror */
map(0xa00000, 0xa0ffff).rw(m_tc0480scp, FUNC(tc0480scp_device::word_r), FUNC(tc0480scp_device::word_w)); /* tilemaps */
map(0xa30000, 0xa3002f).rw(m_tc0480scp, FUNC(tc0480scp_device::ctrl_word_r), FUNC(tc0480scp_device::ctrl_word_w));
map(0xc00000, 0xc03fff).ram().share("spriteram"); /* mostly unused ? */
map(0xc08000, 0xc08001).rw(FUNC(taitoz_state::sci_spriteframe_r), FUNC(taitoz_state::sci_spriteframe_w)); /* set in int6, seems to stay zero */
}
void taitoz_state::dblaxle_cpub_map(address_map &map)
{
map(0x000000, 0x03ffff).rom();
map(0x100000, 0x103fff).ram();
map(0x110000, 0x11ffff).ram().share("share1");
map(0x300000, 0x301fff).rw(m_tc0150rod, FUNC(tc0150rod_device::word_r), FUNC(tc0150rod_device::word_w));
map(0x500000, 0x503fff).ram(); /* network ram ? (see Gunbustr) */
}
void taitoz_state::racingb_map(address_map &map)
{
map(0x000000, 0x07ffff).rom();
map(0x100000, 0x103fff).ram();
map(0x110000, 0x11ffff).ram().share("share1");
map(0x300000, 0x30000f).rw(m_tc0510nio, FUNC(tc0510nio_device::halfword_wordswap_r), FUNC(tc0510nio_device::halfword_wordswap_w));
map(0x300010, 0x30001f).r(FUNC(taitoz_state::dblaxle_steer_input_r));
map(0x500002, 0x500003).w(FUNC(taitoz_state::cpua_ctrl_w));
map(0x520000, 0x520003).rw(FUNC(taitoz_state::taitoz_sound_r), FUNC(taitoz_state::taitoz_sound_w));
map(0x700000, 0x701fff).ram().w("palette", FUNC(palette_device::write16)).share("palette");
map(0x900000, 0x90ffff).rw(m_tc0480scp, FUNC(tc0480scp_device::word_r), FUNC(tc0480scp_device::word_w)); /* tilemaps */
map(0x930000, 0x93002f).rw(m_tc0480scp, FUNC(tc0480scp_device::ctrl_word_r), FUNC(tc0480scp_device::ctrl_word_w));
map(0xb00000, 0xb03fff).ram().share("spriteram"); /* mostly unused ? */
map(0xb08000, 0xb08001).rw(FUNC(taitoz_state::sci_spriteframe_r), FUNC(taitoz_state::sci_spriteframe_w)); /* alternates 0/0x100 */
}
void taitoz_state::racingb_cpub_map(address_map &map)
{
map(0x000000, 0x03ffff).rom();
map(0x400000, 0x403fff).ram();
map(0x410000, 0x41ffff).ram().share("share1");
map(0xa00000, 0xa01fff).rw(m_tc0150rod, FUNC(tc0150rod_device::word_r), FUNC(tc0150rod_device::word_w));
map(0xd00000, 0xd03fff).ram(); /* network ram ? */
}
/***************************************************************************/
void taitoz_state::z80_sound_map(address_map &map)
{
map(0x0000, 0x3fff).rom();
map(0x4000, 0x7fff).bankr("z80bank");
map(0xc000, 0xdfff).ram();
map(0xe000, 0xe003).rw("ymsnd", FUNC(ym2610_device::read), FUNC(ym2610_device::write));
map(0xe200, 0xe200).nopr().w(m_tc0140syt, FUNC(tc0140syt_device::slave_port_w));
map(0xe201, 0xe201).rw(m_tc0140syt, FUNC(tc0140syt_device::slave_comm_r), FUNC(tc0140syt_device::slave_comm_w));
map(0xe400, 0xe403).w(FUNC(taitoz_state::taitoz_pancontrol)); /* pan */
map(0xea00, 0xea00).nopr();
map(0xee00, 0xee00).nopw(); /* ? */
map(0xf000, 0xf000).nopw(); /* ? */
map(0xf200, 0xf200).w(FUNC(taitoz_state::sound_bankswitch_w));
}
/***********************************************************
INPUT PORTS, DIPs
***********************************************************/
#define TAITO_Z_ANALOG_ADJUST( str ) \
PORT_DIPNAME( 0xff, 0x80, str ) \
PORT_DIPSETTING( 0x00, "-80" ) \
PORT_DIPSETTING( 0x01, "-7F" ) \
PORT_DIPSETTING( 0x02, "-7E" ) \
PORT_DIPSETTING( 0x03, "-7D" ) \
PORT_DIPSETTING( 0x04, "-7C" ) \
PORT_DIPSETTING( 0x05, "-7B" ) \
PORT_DIPSETTING( 0x06, "-7A" ) \
PORT_DIPSETTING( 0x07, "-79" ) \
PORT_DIPSETTING( 0x08, "-78" ) \
PORT_DIPSETTING( 0x09, "-77" ) \
PORT_DIPSETTING( 0x0a, "-76" ) \
PORT_DIPSETTING( 0x0b, "-75" ) \
PORT_DIPSETTING( 0x0c, "-74" ) \
PORT_DIPSETTING( 0x0d, "-73" ) \
PORT_DIPSETTING( 0x0e, "-72" ) \
PORT_DIPSETTING( 0x0f, "-71" ) \
PORT_DIPSETTING( 0x10, "-70" ) \
PORT_DIPSETTING( 0x11, "-6F" ) \
PORT_DIPSETTING( 0x12, "-6E" ) \
PORT_DIPSETTING( 0x13, "-6D" ) \
PORT_DIPSETTING( 0x14, "-6C" ) \
PORT_DIPSETTING( 0x15, "-6B" ) \
PORT_DIPSETTING( 0x16, "-6A" ) \
PORT_DIPSETTING( 0x17, "-69" ) \
PORT_DIPSETTING( 0x18, "-68" ) \
PORT_DIPSETTING( 0x19, "-67" ) \
PORT_DIPSETTING( 0x1a, "-66" ) \
PORT_DIPSETTING( 0x1b, "-65" ) \
PORT_DIPSETTING( 0x1c, "-64" ) \
PORT_DIPSETTING( 0x1d, "-63" ) \
PORT_DIPSETTING( 0x1e, "-62" ) \
PORT_DIPSETTING( 0x1f, "-61" ) \
PORT_DIPSETTING( 0x20, "-60" ) \
PORT_DIPSETTING( 0x21, "-5F" ) \
PORT_DIPSETTING( 0x22, "-5E" ) \
PORT_DIPSETTING( 0x23, "-5D" ) \
PORT_DIPSETTING( 0x24, "-5C" ) \
PORT_DIPSETTING( 0x25, "-5B" ) \
PORT_DIPSETTING( 0x26, "-5A" ) \
PORT_DIPSETTING( 0x27, "-59" ) \
PORT_DIPSETTING( 0x28, "-58" ) \
PORT_DIPSETTING( 0x29, "-57" ) \
PORT_DIPSETTING( 0x2a, "-56" ) \
PORT_DIPSETTING( 0x2b, "-55" ) \
PORT_DIPSETTING( 0x2c, "-54" ) \
PORT_DIPSETTING( 0x2d, "-53" ) \
PORT_DIPSETTING( 0x2e, "-52" ) \
PORT_DIPSETTING( 0x2f, "-51" ) \
PORT_DIPSETTING( 0x30, "-50" ) \
PORT_DIPSETTING( 0x31, "-4F" ) \
PORT_DIPSETTING( 0x32, "-4E" ) \
PORT_DIPSETTING( 0x33, "-4D" ) \
PORT_DIPSETTING( 0x34, "-4C" ) \
PORT_DIPSETTING( 0x35, "-4B" ) \
PORT_DIPSETTING( 0x36, "-4A" ) \
PORT_DIPSETTING( 0x37, "-49" ) \
PORT_DIPSETTING( 0x38, "-48" ) \
PORT_DIPSETTING( 0x39, "-47" ) \
PORT_DIPSETTING( 0x3a, "-46" ) \
PORT_DIPSETTING( 0x3b, "-45" ) \
PORT_DIPSETTING( 0x3c, "-44" ) \
PORT_DIPSETTING( 0x3d, "-43" ) \
PORT_DIPSETTING( 0x3e, "-42" ) \
PORT_DIPSETTING( 0x3f, "-41" ) \
PORT_DIPSETTING( 0x40, "-40" ) \
PORT_DIPSETTING( 0x41, "-3F" ) \
PORT_DIPSETTING( 0x42, "-3E" ) \
PORT_DIPSETTING( 0x43, "-3D" ) \
PORT_DIPSETTING( 0x44, "-3C" ) \
PORT_DIPSETTING( 0x45, "-3B" ) \
PORT_DIPSETTING( 0x46, "-3A" ) \
PORT_DIPSETTING( 0x47, "-39" ) \
PORT_DIPSETTING( 0x48, "-38" ) \
PORT_DIPSETTING( 0x49, "-37" ) \
PORT_DIPSETTING( 0x4a, "-36" ) \
PORT_DIPSETTING( 0x4b, "-35" ) \
PORT_DIPSETTING( 0x4c, "-34" ) \
PORT_DIPSETTING( 0x4d, "-33" ) \
PORT_DIPSETTING( 0x4e, "-32" ) \
PORT_DIPSETTING( 0x4f, "-31" ) \
PORT_DIPSETTING( 0x50, "-30" ) \
PORT_DIPSETTING( 0x51, "-2F" ) \
PORT_DIPSETTING( 0x52, "-2E" ) \
PORT_DIPSETTING( 0x53, "-2D" ) \
PORT_DIPSETTING( 0x54, "-2C" ) \
PORT_DIPSETTING( 0x55, "-2B" ) \
PORT_DIPSETTING( 0x56, "-2A" ) \
PORT_DIPSETTING( 0x57, "-29" ) \
PORT_DIPSETTING( 0x58, "-28" ) \
PORT_DIPSETTING( 0x59, "-27" ) \
PORT_DIPSETTING( 0x5a, "-26" ) \
PORT_DIPSETTING( 0x5b, "-25" ) \
PORT_DIPSETTING( 0x5c, "-24" ) \
PORT_DIPSETTING( 0x5d, "-23" ) \
PORT_DIPSETTING( 0x5e, "-22" ) \
PORT_DIPSETTING( 0x5f, "-21" ) \
PORT_DIPSETTING( 0x60, "-20" ) \
PORT_DIPSETTING( 0x61, "-1F" ) \
PORT_DIPSETTING( 0x62, "-1E" ) \
PORT_DIPSETTING( 0x63, "-1D" ) \
PORT_DIPSETTING( 0x64, "-1C" ) \
PORT_DIPSETTING( 0x65, "-1B" ) \
PORT_DIPSETTING( 0x66, "-1A" ) \
PORT_DIPSETTING( 0x67, "-19" ) \
PORT_DIPSETTING( 0x68, "-18" ) \
PORT_DIPSETTING( 0x69, "-17" ) \
PORT_DIPSETTING( 0x6a, "-16" ) \
PORT_DIPSETTING( 0x6b, "-15" ) \
PORT_DIPSETTING( 0x6c, "-14" ) \
PORT_DIPSETTING( 0x6d, "-13" ) \
PORT_DIPSETTING( 0x6e, "-12" ) \
PORT_DIPSETTING( 0x6f, "-11" ) \
PORT_DIPSETTING( 0x70, "-10" ) \
PORT_DIPSETTING( 0x71, "-0F" ) \
PORT_DIPSETTING( 0x72, "-0E" ) \
PORT_DIPSETTING( 0x73, "-0D" ) \
PORT_DIPSETTING( 0x74, "-0C" ) \
PORT_DIPSETTING( 0x75, "-0B" ) \
PORT_DIPSETTING( 0x76, "-0A" ) \
PORT_DIPSETTING( 0x77, "-09" ) \
PORT_DIPSETTING( 0x78, "-08" ) \
PORT_DIPSETTING( 0x79, "-07" ) \
PORT_DIPSETTING( 0x7a, "-06" ) \
PORT_DIPSETTING( 0x7b, "-05" ) \
PORT_DIPSETTING( 0x7c, "-04" ) \
PORT_DIPSETTING( 0x7d, "-03" ) \
PORT_DIPSETTING( 0x7e, "-02" ) \
PORT_DIPSETTING( 0x7f, "-01" ) \
PORT_DIPSETTING( 0x80, "+00" ) \
PORT_DIPSETTING( 0x81, "+01" ) \
PORT_DIPSETTING( 0x82, "+02" ) \
PORT_DIPSETTING( 0x83, "+03" ) \
PORT_DIPSETTING( 0x84, "+04" ) \
PORT_DIPSETTING( 0x85, "+05" ) \
PORT_DIPSETTING( 0x86, "+06" ) \
PORT_DIPSETTING( 0x87, "+07" ) \
PORT_DIPSETTING( 0x88, "+08" ) \
PORT_DIPSETTING( 0x89, "+09" ) \
PORT_DIPSETTING( 0x8a, "+0A" ) \
PORT_DIPSETTING( 0x8b, "+0B" ) \
PORT_DIPSETTING( 0x8c, "+0C" ) \
PORT_DIPSETTING( 0x8d, "+0D" ) \
PORT_DIPSETTING( 0x8e, "+0E" ) \
PORT_DIPSETTING( 0x8f, "+0F" ) \
PORT_DIPSETTING( 0x90, "+10" ) \
PORT_DIPSETTING( 0x91, "+11" ) \
PORT_DIPSETTING( 0x92, "+12" ) \
PORT_DIPSETTING( 0x93, "+13" ) \
PORT_DIPSETTING( 0x94, "+14" ) \
PORT_DIPSETTING( 0x95, "+15" ) \
PORT_DIPSETTING( 0x96, "+16" ) \
PORT_DIPSETTING( 0x97, "+17" ) \
PORT_DIPSETTING( 0x98, "+18" ) \
PORT_DIPSETTING( 0x99, "+19" ) \
PORT_DIPSETTING( 0x9a, "+1A" ) \
PORT_DIPSETTING( 0x9b, "+1B" ) \
PORT_DIPSETTING( 0x9c, "+1C" ) \
PORT_DIPSETTING( 0x9d, "+1D" ) \
PORT_DIPSETTING( 0x9e, "+1E" ) \
PORT_DIPSETTING( 0x9f, "+1F" ) \
PORT_DIPSETTING( 0xa0, "+20" ) \
PORT_DIPSETTING( 0xa1, "+21" ) \
PORT_DIPSETTING( 0xa2, "+22" ) \
PORT_DIPSETTING( 0xa3, "+23" ) \
PORT_DIPSETTING( 0xa4, "+24" ) \
PORT_DIPSETTING( 0xa5, "+25" ) \
PORT_DIPSETTING( 0xa6, "+26" ) \
PORT_DIPSETTING( 0xa7, "+27" ) \
PORT_DIPSETTING( 0xa8, "+28" ) \
PORT_DIPSETTING( 0xa9, "+29" ) \
PORT_DIPSETTING( 0xaa, "+2A" ) \
PORT_DIPSETTING( 0xab, "+2B" ) \
PORT_DIPSETTING( 0xac, "+2C" ) \
PORT_DIPSETTING( 0xad, "+2D" ) \
PORT_DIPSETTING( 0xae, "+2E" ) \
PORT_DIPSETTING( 0xaf, "+2F" ) \
PORT_DIPSETTING( 0xb0, "+30" ) \
PORT_DIPSETTING( 0xb1, "+31" ) \
PORT_DIPSETTING( 0xb2, "+32" ) \
PORT_DIPSETTING( 0xb3, "+33" ) \
PORT_DIPSETTING( 0xb4, "+34" ) \
PORT_DIPSETTING( 0xb5, "+35" ) \
PORT_DIPSETTING( 0xb6, "+36" ) \
PORT_DIPSETTING( 0xb7, "+37" ) \
PORT_DIPSETTING( 0xb8, "+38" ) \
PORT_DIPSETTING( 0xb9, "+39" ) \
PORT_DIPSETTING( 0xba, "+3A" ) \
PORT_DIPSETTING( 0xbb, "+3B" ) \
PORT_DIPSETTING( 0xbc, "+3C" ) \
PORT_DIPSETTING( 0xbd, "+3D" ) \
PORT_DIPSETTING( 0xbe, "+3E" ) \
PORT_DIPSETTING( 0xbf, "+3F" ) \
PORT_DIPSETTING( 0xc0, "+40" ) \
PORT_DIPSETTING( 0xc1, "+41" ) \
PORT_DIPSETTING( 0xc2, "+42" ) \
PORT_DIPSETTING( 0xc3, "+43" ) \
PORT_DIPSETTING( 0xc4, "+44" ) \
PORT_DIPSETTING( 0xc5, "+45" ) \
PORT_DIPSETTING( 0xc6, "+46" ) \
PORT_DIPSETTING( 0xc7, "+47" ) \
PORT_DIPSETTING( 0xc8, "+48" ) \
PORT_DIPSETTING( 0xc9, "+49" ) \
PORT_DIPSETTING( 0xca, "+4A" ) \
PORT_DIPSETTING( 0xcb, "+4B" ) \
PORT_DIPSETTING( 0xcc, "+4C" ) \
PORT_DIPSETTING( 0xcd, "+4D" ) \
PORT_DIPSETTING( 0xce, "+4E" ) \
PORT_DIPSETTING( 0xcf, "+4F" ) \
PORT_DIPSETTING( 0xd0, "+50" ) \
PORT_DIPSETTING( 0xd1, "+51" ) \
PORT_DIPSETTING( 0xd2, "+52" ) \
PORT_DIPSETTING( 0xd3, "+53" ) \
PORT_DIPSETTING( 0xd4, "+54" ) \
PORT_DIPSETTING( 0xd5, "+55" ) \
PORT_DIPSETTING( 0xd6, "+56" ) \
PORT_DIPSETTING( 0xd7, "+57" ) \
PORT_DIPSETTING( 0xd8, "+58" ) \
PORT_DIPSETTING( 0xd9, "+59" ) \
PORT_DIPSETTING( 0xda, "+5A" ) \
PORT_DIPSETTING( 0xdb, "+5B" ) \
PORT_DIPSETTING( 0xdc, "+5C" ) \
PORT_DIPSETTING( 0xdd, "+5D" ) \
PORT_DIPSETTING( 0xde, "+5E" ) \
PORT_DIPSETTING( 0xdf, "+5F" ) \
PORT_DIPSETTING( 0xe0, "+60" ) \
PORT_DIPSETTING( 0xe1, "+61" ) \
PORT_DIPSETTING( 0xe2, "+62" ) \
PORT_DIPSETTING( 0xe3, "+63" ) \
PORT_DIPSETTING( 0xe4, "+64" ) \
PORT_DIPSETTING( 0xe5, "+65" ) \
PORT_DIPSETTING( 0xe6, "+66" ) \
PORT_DIPSETTING( 0xe7, "+67" ) \
PORT_DIPSETTING( 0xe8, "+68" ) \
PORT_DIPSETTING( 0xe9, "+69" ) \
PORT_DIPSETTING( 0xea, "+6A" ) \
PORT_DIPSETTING( 0xeb, "+6B" ) \
PORT_DIPSETTING( 0xec, "+6C" ) \
PORT_DIPSETTING( 0xed, "+6D" ) \
PORT_DIPSETTING( 0xee, "+6E" ) \
PORT_DIPSETTING( 0xef, "+6F" ) \
PORT_DIPSETTING( 0xf0, "+70" ) \
PORT_DIPSETTING( 0xf1, "+71" ) \
PORT_DIPSETTING( 0xf2, "+72" ) \
PORT_DIPSETTING( 0xf3, "+73" ) \
PORT_DIPSETTING( 0xf4, "+74" ) \
PORT_DIPSETTING( 0xf5, "+75" ) \
PORT_DIPSETTING( 0xf6, "+76" ) \
PORT_DIPSETTING( 0xf7, "+77" ) \
PORT_DIPSETTING( 0xf8, "+78" ) \
PORT_DIPSETTING( 0xf9, "+79" ) \
PORT_DIPSETTING( 0xfa, "+7A" ) \
PORT_DIPSETTING( 0xfb, "+7B" ) \
PORT_DIPSETTING( 0xfc, "+7C" ) \
PORT_DIPSETTING( 0xfd, "+7D" ) \
PORT_DIPSETTING( 0xfe, "+7E" ) \
PORT_DIPSETTING( 0xff, "+7F" )
static INPUT_PORTS_START( contcirc )
PORT_START("DSWA")
PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW A:1")
PORT_DIPSETTING( 0x01, "Cockpit" ) // analog pedals
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) // digital pedals, no brake?, allow free steering wheel
PORT_DIPNAME( 0x02, 0x02, DEF_STR( Continue_Price ) ) PORT_DIPLOCATION("SW A:2")
PORT_DIPSETTING( 0x02, "Same as Start" )
PORT_DIPSETTING( 0x00, "Discount" )
PORT_SERVICE_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW A:3" )
PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW A:4")
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x08, DEF_STR( On ) )
TAITO_COINAGE_WORLD_LOC(SW A)
PORT_START("DSWB")
PORT_DIPNAME( 0x03, 0x03, "Difficulty 1 (time/speed)" ) PORT_DIPLOCATION("SW B:1,2")
PORT_DIPSETTING( 0x02, DEF_STR( Easy ) )
PORT_DIPSETTING( 0x03, DEF_STR( Normal ) )
PORT_DIPSETTING( 0x01, DEF_STR( Hard ) )
PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) )
PORT_DIPNAME( 0x0c, 0x0c, "Difficulty 2 (other cars)" ) PORT_DIPLOCATION("SW B:3,4")
PORT_DIPSETTING( 0x08, DEF_STR( Easy ) )
PORT_DIPSETTING( 0x0c, DEF_STR( Normal ) )
PORT_DIPSETTING( 0x04, DEF_STR( Hard ) )
PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) )
PORT_DIPNAME( 0x10, 0x00, "Steering Wheel" ) PORT_DIPLOCATION("SW B:5") // no function in Cockpit cabinet?
PORT_DIPSETTING( 0x10, "Free" )
PORT_DIPSETTING( 0x00, "Locked" )
PORT_DIPNAME( 0x20, 0x00, "3D Effect" ) PORT_DIPLOCATION("SW B:6") // unlisted in manual
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x20, DEF_STR( On ) )
PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "SW B:7" )
PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "SW B:8" )
PORT_START("IN0")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN2 )
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN1 )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE1 )
PORT_BIT( 0xe0, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_CUSTOM_MEMBER(DEVICE_SELF, taitoz_state, taitoz_pedal_r, "GAS") PORT_CONDITION("DSWA", 0x01, EQUALS, 0x01)
PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Gas Switch") PORT_CONDITION("DSWA", 0x01, EQUALS, 0x00)
PORT_START("IN1")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_TILT )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Shifter") PORT_TOGGLE
PORT_BIT( 0xe0, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_CUSTOM_MEMBER(DEVICE_SELF, taitoz_state, taitoz_pedal_r, "BRAKE") PORT_CONDITION("DSWA", 0x01, EQUALS, 0x01)
PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Brake Switch") PORT_CONDITION("DSWA", 0x01, EQUALS, 0x00) // no function?
PORT_START("IN2") /* unused */
PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_START("STEER")
PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_MINMAX(0x20, 0xe0) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_REVERSE PORT_NAME("Steering Wheel") PORT_CONDITION("DSWB", 0x10, EQUALS, 0x00)
PORT_BIT( 0xffff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(2) PORT_REVERSE PORT_NAME("Steering Wheel") PORT_CONDITION("DSWB", 0x10, EQUALS, 0x10)
PORT_START("GAS")
PORT_BIT( 0x07, 0x00, IPT_PEDAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(1) PORT_NAME("Gas Pedal") PORT_CONDITION("DSWA", 0x01, EQUALS, 0x01)
PORT_START("BRAKE")
PORT_BIT( 0x07, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(25) PORT_KEYDELTA(1) PORT_NAME("Brake Pedal") PORT_CONDITION("DSWA", 0x01, EQUALS, 0x01)
INPUT_PORTS_END
static INPUT_PORTS_START( contcrcu )
PORT_INCLUDE(contcirc)
PORT_MODIFY("DSWA") // confirmed
TAITO_COINAGE_JAPAN_OLD_LOC(SW A)
INPUT_PORTS_END
static INPUT_PORTS_START( contcrcj )
PORT_INCLUDE(contcirc)
PORT_MODIFY("DSWA") // confirmed correct for US set as well
TAITO_COINAGE_JAPAN_OLD_LOC(SW A)
PORT_MODIFY("DSWB")
PORT_DIPUNUSED_DIPLOC( 0x20, 0x20, "SW B:6" ) // Japan & US set 2 CANNOT turn off 3D effect!!
INPUT_PORTS_END
static INPUT_PORTS_START( chasehq ) // IN3-6 perhaps used with cockpit setup? //
PORT_START("DSWA")
PORT_DIPNAME( 0x03, 0x03, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW A:1,2") /* US Manual states DIPS 1 & 2 "MUST REMAIN OFF" */
PORT_DIPSETTING( 0x03, "Upright / Steering Lock" ) // digital pedals, locked steering wheel
PORT_DIPSETTING( 0x02, "Upright / No Steering Lock" ) // digital pedals, free steering wheel
PORT_DIPSETTING( 0x01, "Full Throttle Convert, Cockpit" ) // analog pedals, locked steering wheel
PORT_DIPSETTING( 0x00, "Full Throttle Convert, Deluxe" ) // analog pedals, locked steering wheel, motor
PORT_SERVICE_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW A:3" )
PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW A:4")
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x08, DEF_STR( On ) )
TAITO_COINAGE_WORLD_LOC(SW A)
PORT_START("DSWB")
TAITO_DIFFICULTY_LOC(SW B)
PORT_DIPNAME( 0x0c, 0x0c, "Timer Setting" ) PORT_DIPLOCATION("SW B:3,4")
PORT_DIPSETTING( 0x08, "70 Seconds" )
PORT_DIPSETTING( 0x04, "65 Seconds" )
PORT_DIPSETTING( 0x0c, "60 Seconds" )
PORT_DIPSETTING( 0x00, "55 Seconds" )
PORT_DIPNAME( 0x10, 0x10, "Turbos Stocked" ) PORT_DIPLOCATION("SW B:5")
PORT_DIPSETTING( 0x10, "3" )
PORT_DIPSETTING( 0x00, "5" )
PORT_DIPNAME( 0x20, 0x20, DEF_STR( Continue_Price ) ) PORT_DIPLOCATION("SW B:6")
PORT_DIPSETTING( 0x20, "Same as Start" )
PORT_DIPSETTING( 0x00, "Discount" )
PORT_DIPNAME( 0x40, 0x40, "Clear Damage on Continue" ) PORT_DIPLOCATION("SW B:7")
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x40, DEF_STR( On ) )
PORT_DIPNAME( 0x80, 0x80, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW B:8")
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x80, DEF_STR( On ) )
PORT_START("IN0")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN1 )
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN2 )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE1 )
PORT_BIT( 0xe0, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_CUSTOM_MEMBER(DEVICE_SELF, taitoz_state, taitoz_pedal_r, "BRAKE") PORT_CONDITION("DSWA", 0x02, EQUALS, 0x00)
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Brake Switch") PORT_CONDITION("DSWA", 0x02, EQUALS, 0x02)
PORT_START("IN1")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Turbo")
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_TILT )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE2 ) PORT_NAME("Calibrate") // ?
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Shifter") PORT_TOGGLE
PORT_BIT( 0xe0, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_CUSTOM_MEMBER(DEVICE_SELF, taitoz_state, taitoz_pedal_r, "GAS") PORT_CONDITION("DSWA", 0x02, EQUALS, 0x00)
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Gas Switch") PORT_CONDITION("DSWA", 0x02, EQUALS, 0x02)
PORT_START("IN2") /* unused */
PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_START("UNK1") /* ??? */
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )
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 )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_START("UNK2") /* ??? */
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )
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 )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_START("UNK3") /* ??? */
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )
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 )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_START("UNK4") /* ??? */
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )
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 )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_START("STEER")
PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_MINMAX(0x20, 0xe0) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Steering Wheel") PORT_CONDITION("DSWA", 0x03, NOTEQUALS, 0x02)
PORT_BIT( 0xffff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(2) PORT_NAME("Steering Wheel") PORT_CONDITION("DSWA", 0x03, EQUALS, 0x02)
PORT_START("GAS")
PORT_BIT( 0x07, 0x00, IPT_PEDAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(1) PORT_NAME("Gas Pedal") PORT_CONDITION("DSWA", 0x02, EQUALS, 0x00)
PORT_START("BRAKE")
PORT_BIT( 0x07, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(25) PORT_KEYDELTA(1) PORT_NAME("Brake Pedal") PORT_CONDITION("DSWA", 0x02, EQUALS, 0x00)
INPUT_PORTS_END
static INPUT_PORTS_START( chasehqj )
PORT_INCLUDE(chasehq)
PORT_MODIFY("DSWA")
TAITO_COINAGE_JAPAN_OLD_LOC(SW A)
INPUT_PORTS_END
static INPUT_PORTS_START( enforce )
PORT_START("DSWA")
PORT_DIPUNUSED_DIPLOC( 0x01, 0x01, "SW A:1" )
PORT_DIPUNUSED_DIPLOC( 0x02, 0x02, "SW A:2" )
PORT_SERVICE_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW A:3" )
PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW A:4")
PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) // Says SHIFT HI in test mode !?
PORT_DIPSETTING( 0x08, DEF_STR( On ) ) // Says SHIFT LO in test mode !?
TAITO_COINAGE_WORLD_LOC(SW A)
PORT_START("DSWB")
TAITO_DIFFICULTY_LOC(SW B)
PORT_DIPUNUSED_DIPLOC( 0x04, 0x04, "SW B:3" )
PORT_DIPUNUSED_DIPLOC( 0x08, 0x08, "SW B:4" )
PORT_DIPNAME( 0x10, 0x00, "Background scenery" ) PORT_DIPLOCATION("SW B:5")
PORT_DIPSETTING( 0x10, "Crazy scrolling" )
PORT_DIPSETTING( 0x00, DEF_STR( Normal ) )
PORT_DIPUNUSED_DIPLOC( 0x20, 0x20, "SW B:6" )
PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "SW B:7" )
PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "SW B:8" )
PORT_START("IN0")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN2 )
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN1 )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE1 )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
PORT_START("IN1")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) /* Bomb */
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) /* Laser */
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_TILT )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
PORT_START("IN2") /* unused */
PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
INPUT_PORTS_END
static INPUT_PORTS_START( enforcej )
PORT_INCLUDE(enforce)
PORT_MODIFY("DSWA")
TAITO_COINAGE_JAPAN_OLD_LOC(SW A)
INPUT_PORTS_END
static INPUT_PORTS_START( enforceja )
PORT_INCLUDE(enforce)
PORT_MODIFY("DSWA")
TAITO_COINAGE_JAPAN_OLD_LOC(SW A)
PORT_MODIFY("DSWB")
PORT_DIPNAME( 0x30, 0x30, "3D Effects" ) PORT_DIPLOCATION("SW B:5,6")
PORT_DIPSETTING( 0x30, DEF_STR( Off ) )
PORT_DIPSETTING( 0x20, DEF_STR( On ) )
PORT_DIPSETTING( 0x10, "In Game Only" )
PORT_DIPSETTING( 0x00, "In Game Only" )
INPUT_PORTS_END
static INPUT_PORTS_START( bshark )
PORT_START("DSWA")
PORT_DIPNAME( 0x01, 0x01, "Mirror screen" ) PORT_DIPLOCATION("SW A:1") // manual says it must be off
PORT_DIPSETTING( 0x01, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPUNUSED_DIPLOC( 0x02, 0x02, "SW A:2" ) // manual says it must be off
PORT_SERVICE_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW A:3" )
PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW A:4")
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x08, DEF_STR( On ) )
TAITO_COINAGE_WORLD_LOC(SW A)
PORT_START("DSWB")
TAITO_DIFFICULTY_LOC(SW B)
PORT_DIPNAME( 0x0c, 0x04, "Speed of Sight" ) PORT_DIPLOCATION("SW B:3,4")
PORT_DIPSETTING( 0x0c, "Slow" )
PORT_DIPSETTING( 0x08, DEF_STR( Medium ) )
PORT_DIPSETTING( 0x04, "Fast" )
PORT_DIPSETTING( 0x00, "Fastest" )
PORT_DIPUNUSED_DIPLOC( 0x10, 0x10, "SW B:5" ) // manual says all these must be off
PORT_DIPUNUSED_DIPLOC( 0x20, 0x20, "SW B:6" )
PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "SW B:7" )
PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "SW B:8" )
PORT_START("IN0")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_TILT )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_START("IN1") /* unused */
PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_START("IN2") /* b2-5 affect sound num in service mode but otherwise useless (?) */
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1)
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(1)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) /* "Fire" */
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(1) /* same as "Fire" */
PORT_START("STICKX") /* values chosen to match allowed crosshair area */
PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_MINMAX(0x35, 0xcc) PORT_SENSITIVITY(20) PORT_KEYDELTA(4) PORT_REVERSE PORT_PLAYER(1)
PORT_START("X_ADJUST") /* declare as DIP SWITCH instead of VARIABLE REGISTER */
TAITO_Z_ANALOG_ADJUST( "Adjust Stick H (VARIABLE REGISTER)" )
PORT_START("STICKY") /* values chosen to match allowed crosshair area */
PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_MINMAX(0x32, 0xd5) PORT_SENSITIVITY(20) PORT_KEYDELTA(4) PORT_PLAYER(1)
PORT_START("Y_ADJUST") /* declare as DIP SWITCH instead of VARIABLE REGISTER */
TAITO_Z_ANALOG_ADJUST( "Adjust Stick V (VARIABLE REGISTER)" )
INPUT_PORTS_END
static INPUT_PORTS_START( bsharku )
PORT_INCLUDE(bshark)
PORT_MODIFY("DSWA")
TAITO_COINAGE_US_LOC(SW A)
INPUT_PORTS_END
static INPUT_PORTS_START( bsharkj )
PORT_INCLUDE(bshark)
PORT_MODIFY("DSWA")
TAITO_COINAGE_JAPAN_OLD_LOC(SW A)
INPUT_PORTS_END
static INPUT_PORTS_START( bsharkjjs )
PORT_START("DSWA")
PORT_DIPNAME( 0x01, 0x01, "Mirror screen" ) PORT_DIPLOCATION("SW A:1") // manual says it must be off
PORT_DIPSETTING( 0x01, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPUNUSED_DIPLOC( 0x02, 0x02, "SW A:2" ) // manual says it must be off
PORT_SERVICE_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW A:3" )
PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW A:4")
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x08, DEF_STR( On ) )
TAITO_COINAGE_JAPAN_OLD_LOC(SW A)
PORT_START("DSWB")
TAITO_DIFFICULTY_LOC(SW B)
PORT_DIPNAME( 0x0c, 0x04, "Speed of Sight" ) PORT_DIPLOCATION("SW B:3,4")
PORT_DIPSETTING( 0x0c, "Slow" )
PORT_DIPSETTING( 0x08, DEF_STR( Medium ) )
PORT_DIPSETTING( 0x04, "Fast" )
PORT_DIPSETTING( 0x00, "Fastest" )
PORT_DIPUNUSED_DIPLOC( 0x10, 0x10, "SW B:5" ) // manual says all these must be off
PORT_DIPUNUSED_DIPLOC( 0x20, 0x20, "SW B:6" )
PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "SW B:7" )
PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "SW B:8" )
PORT_START("IN0")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_TILT )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_START("IN1") /* unused */
PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_START("IN2")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Fire") PORT_PLAYER(1) /* "Fire" */
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Warp") PORT_PLAYER(1) /* Same as Fire, but called "Warp" in Service Mode */
INPUT_PORTS_END
static INPUT_PORTS_START( sci )
PORT_START("DSWA")
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW A:1")
PORT_DIPSETTING( 0x01, "Cockpit" )
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPUNUSED_DIPLOC( 0x02, 0x02, "SW A:2" ) /* Manual states "MUST REMAIN OFF" */
PORT_SERVICE_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW A:3" )
PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW A:4")
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x08, DEF_STR( On ) )
TAITO_COINAGE_WORLD_LOC(SW A)
PORT_START("DSWB")
TAITO_DIFFICULTY_LOC(SW B)
PORT_DIPNAME( 0x0c, 0x0c, "Timer Setting" ) PORT_DIPLOCATION("SW B:3,4")
PORT_DIPSETTING( 0x08, "70 Seconds" )
PORT_DIPSETTING( 0x04, "65 Seconds" )
PORT_DIPSETTING( 0x0c, "60 Seconds" )
PORT_DIPSETTING( 0x00, "55 Seconds" )
PORT_DIPNAME( 0x10, 0x10, "Turbos Stocked" ) PORT_DIPLOCATION("SW B:5")
PORT_DIPSETTING( 0x10, "3" )
PORT_DIPSETTING( 0x00, "5" )
PORT_DIPNAME( 0x20, 0x20, "Steering Radius" ) PORT_DIPLOCATION("SW B:6")
PORT_DIPSETTING( 0x00, "270 Degree" )
PORT_DIPSETTING( 0x20, "360 Degree" )
PORT_DIPNAME( 0x40, 0x40, "Clear Damage on Continue" ) PORT_DIPLOCATION("SW B:7")
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x40, DEF_STR( On ) )
PORT_DIPNAME( 0x80, 0x80, "Siren Volume" ) PORT_DIPLOCATION("SW B:8")
PORT_DIPSETTING( 0x80, DEF_STR( Normal ) )
PORT_DIPSETTING( 0x00, DEF_STR( Low ) )
PORT_START("IN0")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Gun Trigger")
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE1 )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Brake Switch")
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_START("IN1")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Turbo")
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_TILT )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE2 ) PORT_NAME("Center")
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Shifter") PORT_TOGGLE
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Gas Switch")
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_START("IN2") /* unused */
PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_START("STEER") /* steering */
PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_MINMAX(0x20, 0xe0) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Steering Wheel")
INPUT_PORTS_END
static INPUT_PORTS_START( sciu )
PORT_INCLUDE(sci)
PORT_MODIFY("DSWA")
TAITO_COINAGE_US_LOC(SW A)
INPUT_PORTS_END
static INPUT_PORTS_START( scij )
PORT_INCLUDE(sci)
PORT_MODIFY("DSWA")
TAITO_COINAGE_JAPAN_OLD_LOC(SW A)
INPUT_PORTS_END
static INPUT_PORTS_START( nightstr )
PORT_START("DSWA")
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW A:1")
PORT_DIPSETTING( 0x01, "Cockpit" )
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPUNUSED_DIPLOC( 0x02, 0x02, "SW A:2" ) // manual says it must be off
PORT_SERVICE_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW A:3" )
PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW A:4")
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x08, DEF_STR( On ) )
TAITO_COINAGE_WORLD_LOC(SW A)
PORT_START("DSWB")
TAITO_DIFFICULTY_LOC(SW B)
PORT_DIPNAME( 0x0c, 0x0c, "Bonus Shields" ) PORT_DIPLOCATION("SW B:3,4")
PORT_DIPSETTING( 0x08, "3" )
PORT_DIPSETTING( 0x04, "2" )
PORT_DIPSETTING( 0x0c, "1" )
PORT_DIPSETTING( 0x00, DEF_STR( None ) )
PORT_DIPNAME( 0x30, 0x30, "Shields" ) PORT_DIPLOCATION("SW B:5,6")
PORT_DIPSETTING( 0x00, "3" )
PORT_DIPSETTING( 0x10, "4" )
PORT_DIPSETTING( 0x30, "5" )
PORT_DIPSETTING( 0x20, "6" )
PORT_DIPNAME( 0x40, 0x40, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW B:7")
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x40, DEF_STR( On ) )
PORT_DIPNAME( 0x80, 0x80, "Trigger Turbo" ) PORT_DIPLOCATION("SW B:8")
PORT_DIPSETTING( 0x80, "7 Shots / Second" )
PORT_DIPSETTING( 0x00, "10 Shots / Second" )
PORT_START("IN0")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN2 )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE1 )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_TILT )
PORT_START("IN1") /* unused */
PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_START("IN2")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
PORT_START("STICKX")
PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_SENSITIVITY(60) PORT_KEYDELTA(15) PORT_PLAYER(1)
PORT_START("STICKY")
PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_SENSITIVITY(60) PORT_KEYDELTA(15) PORT_REVERSE PORT_PLAYER(1)
PORT_START("X_ADJUST") /* declare as DIP SWITCH instead of VARIABLE REGISTER */
TAITO_Z_ANALOG_ADJUST( "Adjust Stick H (VARIABLE REGISTER)" )
PORT_START("Y_ADJUST") /* declare as DIP SWITCH instead of VARIABLE REGISTER */
TAITO_Z_ANALOG_ADJUST( "Adjust Stick V (VARIABLE REGISTER)" )
INPUT_PORTS_END
static INPUT_PORTS_START( nghtstrj )
PORT_INCLUDE( nightstr )
PORT_MODIFY("DSWA")
TAITO_COINAGE_JAPAN_OLD_LOC(SW A)
INPUT_PORTS_END
static INPUT_PORTS_START( nghtstru )
PORT_INCLUDE( nightstr )
PORT_MODIFY("DSWA")
TAITO_COINAGE_US_LOC(SW A)
INPUT_PORTS_END
static INPUT_PORTS_START( aquajack )
PORT_START("DSWA")
PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW A:1")
PORT_DIPSETTING( 0x80, "Cockpit" )
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "SW A:2" ) /* Dip 2 shown as "Must Remain in "Off" Position" in manual */
PORT_SERVICE_DIPLOC( 0x20, IP_ACTIVE_LOW, "SW A:3" )
PORT_DIPNAME( 0x10, 0x10, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW A:4")
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x10, DEF_STR( On ) )
PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW A:6,5")
PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) )
PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) )
PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) )
PORT_DIPSETTING( 0x0c, DEF_STR( 1C_1C ) )
PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW A:8,7") /* The Romstar (US version) manual list this as "Continue Pricing" */
PORT_DIPSETTING( 0x03, DEF_STR( 1C_2C ) ) /* Same pricing as Coin A */
PORT_DIPSETTING( 0x01, DEF_STR( 1C_3C ) ) /* 1 Coin to Continue */
PORT_DIPSETTING( 0x02, DEF_STR( 1C_4C ) ) /* 2 Coins to Continue */
PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) /* 3 Coins to Continue */
PORT_START("DSWB")
PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW B:2,1")
PORT_DIPSETTING( 0x40, DEF_STR( Easy ) )
PORT_DIPSETTING( 0xc0, DEF_STR( Normal ) )
PORT_DIPSETTING( 0x80, DEF_STR( Hard ) )
PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) )
PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW B:4,3")
PORT_DIPSETTING( 0x00, "30k" )
PORT_DIPSETTING( 0x30, "50k" )
PORT_DIPSETTING( 0x10, "80k" )
PORT_DIPSETTING( 0x20, "100k" )
PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW B:6,5")
PORT_DIPSETTING( 0x08, "1" )
PORT_DIPSETTING( 0x04, "2" )
PORT_DIPSETTING( 0x0c, "3" )
PORT_DIPSETTING( 0x00, "5" )
PORT_DIPUNUSED_DIPLOC( 0x02, 0x02, "SW B:7" ) /* Dip 7 shown as "Do Not Touch" in manuals */
PORT_DIPUNUSED_DIPLOC( 0x01, 0x01, "SW B:8" ) /* Dip 8 */
/* The previous taito_z.c said ---
The Romstar (US version) manual list this as "Endless Game" - Has no effect on "World" version
--- , and declared it as unused switch.
*/
/* PORT_DIPNAME( 0x01, 0x01, "Endless Game" ) PORT_DIPLOCATION("SW B:8") */
/* PORT_DIPSETTING( 0x01, "Normal Game" ) */
/* PORT_DIPSETTING( 0x00, "Endless Game" ) */
PORT_START("IN0")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE1 )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_TILT )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_START("IN1")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_START("IN2") /* what is it ??? */
PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(50) PORT_KEYDELTA(10) PORT_PLAYER(1)
INPUT_PORTS_END
static INPUT_PORTS_START( aquajckj )
PORT_INCLUDE(aquajack)
PORT_MODIFY("DSWA")
PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW A:6,5")
PORT_DIPSETTING( 0x08, DEF_STR( 2C_1C ) )
PORT_DIPSETTING( 0x0c, DEF_STR( 1C_1C ) )
PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) )
PORT_DIPSETTING( 0x04, DEF_STR( 1C_2C ) )
PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW A:8,7")
PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) )
PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) )
PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) )
PORT_DIPSETTING( 0x01, DEF_STR( 1C_2C ) )
INPUT_PORTS_END
static INPUT_PORTS_START( spacegun )
PORT_START("DSWA")
PORT_DIPUNUSED_DIPLOC( 0x01, 0x01, "SW A:1" ) // Manual says Always Off
PORT_DIPNAME( 0x02, 0x02, "Always have gunsight power up" ) PORT_DIPLOCATION("SW A:2")
PORT_DIPSETTING( 0x02, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_SERVICE_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW A:3" )
PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW A:4")
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x08, DEF_STR( On ) )
TAITO_COINAGE_WORLD_LOC(SW A)
PORT_START("DSWB")
TAITO_DIFFICULTY_LOC(SW B)
PORT_DIPUNUSED_DIPLOC( 0x04, 0x04, "SW B:3" ) // Manual lists dips 3 through 6 and 8 as Always off
PORT_DIPUNUSED_DIPLOC( 0x08, 0x08, "SW B:4" )
PORT_DIPUNUSED_DIPLOC( 0x10, 0x10, "SW B:5" )
PORT_DIPUNUSED_DIPLOC( 0x20, 0x20, "SW B:6" )
PORT_DIPNAME( 0x40, 0x40, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW B:7")
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x40, DEF_STR( On ) )
PORT_DIPNAME( 0x80, 0x80, "Disable Pedal (?)" ) PORT_DIPLOCATION("SW B:8")
PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_START("IN0")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN2 )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE1 )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1)
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2)
PORT_START("IN1") /* unused */
PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_START("IN2")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_START( "EEPROMOUT" )
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE_MEMBER("eeprom", eeprom_serial_93cxx_device, cs_write)
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE_MEMBER("eeprom", eeprom_serial_93cxx_device, clk_write)
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE_MEMBER("eeprom", eeprom_serial_93cxx_device, di_write)
PORT_START("STICKX1")
PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_SENSITIVITY(25) PORT_KEYDELTA(13) PORT_CENTERDELTA(0) PORT_REVERSE PORT_PLAYER(1)
PORT_START("STICKY1")
PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(25) PORT_KEYDELTA(13) PORT_CENTERDELTA(0) PORT_PLAYER(1)
PORT_START("STICKX2")
PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_SENSITIVITY(25) PORT_KEYDELTA(13) PORT_CENTERDELTA(0) PORT_REVERSE PORT_PLAYER(2)
PORT_START("STICKY2")
PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(25) PORT_KEYDELTA(13) PORT_CENTERDELTA(0) PORT_PLAYER(2)
INPUT_PORTS_END
static INPUT_PORTS_START( spacegnj )
PORT_INCLUDE( spacegun )
PORT_MODIFY("DSWA")
TAITO_COINAGE_JAPAN_OLD_LOC(SW A)
INPUT_PORTS_END
static INPUT_PORTS_START( spacegnu )
PORT_INCLUDE( spacegun )
PORT_MODIFY("DSWA")
TAITO_COINAGE_US_LOC(SW A)
INPUT_PORTS_END
static INPUT_PORTS_START( dblaxle ) // Side by Side linkable versions
PORT_START("DSWA")
PORT_DIPUNUSED_DIPLOC( 0x01, 0x01, "SW A:1" )
PORT_DIPNAME( 0x02, 0x02, "Gear shift" ) PORT_DIPLOCATION("SW A:2")
PORT_DIPSETTING( 0x02, DEF_STR( Normal ) )
PORT_DIPSETTING( 0x00, "Inverted" )
PORT_SERVICE_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW A:3" )
PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW A:4")
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x08, DEF_STR( On ) )
TAITO_COINAGE_US_LOC(SW A)
PORT_START("DSWB")
TAITO_DIFFICULTY_LOC(SW B)
PORT_DIPNAME( 0x04, 0x00, "Network?" ) PORT_DIPLOCATION("SW B:3") // doesn't boot if on
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x04, DEF_STR( On ) )
PORT_DIPNAME( 0x08, 0x08, "Player Truck" ) PORT_DIPLOCATION("SW B:4")
PORT_DIPSETTING( 0x08, "Red" )
PORT_DIPSETTING( 0x00, "Blue" )
PORT_DIPNAME( 0x10, 0x10, "Back button" ) PORT_DIPLOCATION("SW B:5")
PORT_DIPSETTING( 0x10, DEF_STR( Normal ) )
PORT_DIPSETTING( 0x00, "Inverted" )
PORT_DIPUNUSED_DIPLOC( 0x20, 0x20, "SW B:6" ) // causes "Root CPU Error" on "Icy Road" (Tourniquet)
PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "SW B:7" )
PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "SW B:8" )
PORT_START("IN0")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Shifter") PORT_TOGGLE
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE1 )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Brake Switch")
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Reverse")
PORT_START("IN1")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Nitro")
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_TILT )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE2 ) PORT_NAME("Center")
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Gas Switch")
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_START("IN2") /* unused */
PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_START("STEER")
PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_MINMAX(0x40, 0xc0) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_NAME("Steering Wheel")
INPUT_PORTS_END
static INPUT_PORTS_START( dblaxles ) // Single player versions
PORT_INCLUDE(dblaxle)
PORT_MODIFY("DSWA")
PORT_DIPNAME( 0x01, 0x01, "Handle Pulse" ) PORT_DIPLOCATION("SW A:1")
PORT_DIPSETTING( 0x01, DEF_STR( Normal ) )
PORT_DIPSETTING( 0x00, "Fast" )
PORT_MODIFY("DSWB")
PORT_DIPNAME( 0x04, 0x00, "Back Gear" ) PORT_DIPLOCATION("SW B:3") // If set to NORMAL you need to keep REVERSE pressed to go forward
PORT_DIPSETTING( 0x04, DEF_STR( Normal ) )
PORT_DIPSETTING( 0x00, "No Back Gear" )
PORT_DIPNAME( 0x08, 0x08, "Vibration Mode" ) PORT_DIPLOCATION("SW B:4")
PORT_DIPSETTING( 0x08, "Partial Vibration" )
PORT_DIPSETTING( 0x00, "All The Time Vibration" )
PORT_DIPNAME( 0x10, 0x10, "Steering Wheel Vibration" ) PORT_DIPLOCATION("SW B:5")
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x10, DEF_STR( On ) )
PORT_DIPNAME( 0x20, 0x20, "Select Round" ) PORT_DIPLOCATION("SW B:6")
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x20, DEF_STR( On ) )
PORT_DIPNAME( 0x40, 0x40, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW B:7")
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x40, DEF_STR( On ) )
PORT_DIPNAME( 0x80, 0x00, "Buy-In" ) PORT_DIPLOCATION("SW B:8") // manual states "In countries except North America this setting should be ON"
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x80, DEF_STR( On ) ) // You buy truck upgrades like Big Tires, Engine and Nitro canisters before the race
INPUT_PORTS_END
static INPUT_PORTS_START( pwheelsj )
PORT_INCLUDE(dblaxle)
PORT_MODIFY("DSWA")
TAITO_COINAGE_JAPAN_OLD_LOC(SW A)
INPUT_PORTS_END
static INPUT_PORTS_START( racingb )
PORT_START("DSWA")
PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW A:1") // don't know what is what
PORT_DIPSETTING( 0x00, "Type 0" ) // free steering wheel
PORT_DIPSETTING( 0x01, "Type 1" ) // locked steering wheel
PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x02, "SW A:2" )
PORT_SERVICE_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW A:3" )
PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW A:4")
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x08, DEF_STR( On ) )
TAITO_COINAGE_WORLD_LOC(SW A)
PORT_START("DSWB")
PORT_DIPUNKNOWN_DIPLOC( 0x01, 0x01, "SW B:1" )
PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x02, "SW B:2" )
PORT_DIPNAME( 0x04, 0x04, "Steering Wheel Range" ) PORT_DIPLOCATION("SW B:3") // no function in Type 0 cabinet?
PORT_DIPSETTING( 0x04, DEF_STR( Normal ) )
PORT_DIPSETTING( 0x00, DEF_STR( High ) )
PORT_DIPNAME( 0x08, 0x08, "Steering Wheel Type" ) PORT_DIPLOCATION("SW B:4") // no function in Type 0 cabinet?
PORT_DIPSETTING( 0x00, "Free" )
PORT_DIPSETTING( 0x08, "Locked" )
PORT_DIPNAME( 0x10, 0x10, "Network" ) PORT_DIPLOCATION("SW B:5") // gives a LAN error
PORT_DIPSETTING( 0x10, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0x60, 0x60, "Player Car" ) PORT_DIPLOCATION("SW B:6,7")
PORT_DIPSETTING( 0x60, "Red" )
PORT_DIPSETTING( 0x40, "Blue" )
PORT_DIPSETTING( 0x20, "Green" )
PORT_DIPSETTING( 0x00, "Yellow" )
PORT_DIPUNKNOWN_DIPLOC( 0x80, 0x80, "SW B:8" ) // affects car color too?
PORT_START("IN0")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Shifter") PORT_TOGGLE
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE1 )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Brake Switch")
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_START("IN1")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Pit In")
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE2 ) PORT_NAME("Center")
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Gas Switch")
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_START("IN2") /* unused */
PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_START("STEER")
PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_NAME("Steering Wheel") PORT_CONDITION("DSWB", 0x08, EQUALS, 0x08)
PORT_BIT( 0xffff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_NAME("Steering Wheel") PORT_CONDITION("DSWB", 0x08, EQUALS, 0x00)
INPUT_PORTS_END
/***********************************************************
GFX DECODING
***********************************************************/
static const gfx_layout tile16x8_layout =
{
16,8, /* 16*8 sprites */
RGN_FRAC(1,1),
4, /* 4 bits per pixel */
{ 0, 8, 16, 24 },
{ 32, 33, 34, 35, 36, 37, 38, 39, 0, 1, 2, 3, 4, 5, 6, 7 },
{ 0*64, 1*64, 2*64, 3*64, 4*64, 5*64, 6*64, 7*64 },
64*8 /* every sprite takes 64 consecutive bytes */
};
static const gfx_layout tile16x16_layout =
{
16,16, /* 16*16 sprites */
RGN_FRAC(1,1),
4, /* 4 bits per pixel */
{ 0, 8, 16, 24 },
{ 32, 33, 34, 35, 36, 37, 38, 39, 0, 1, 2, 3, 4, 5, 6, 7 },
{ 0*64, 1*64, 2*64, 3*64, 4*64, 5*64, 6*64, 7*64,
8*64, 9*64, 10*64, 11*64, 12*64, 13*64, 14*64, 15*64 },
64*16 /* every sprite takes 128 consecutive bytes */
};
static const gfx_layout charlayout =
{
8,8, /* 8*8 characters */
RGN_FRAC(1,1),
4, /* 4 bits per pixel */
{ 0, 1, 2, 3 },
{ 2*4, 3*4, 0*4, 1*4, 6*4, 7*4, 4*4, 5*4 },
{ 0*32, 1*32, 2*32, 3*32, 4*32, 5*32, 6*32, 7*32 },
32*8 /* every sprite takes 32 consecutive bytes */
};
static const gfx_layout dblaxle_charlayout =
{
16,16, /* 16*16 characters */
RGN_FRAC(1,1),
4, /* 4 bits per pixel */
{ 0, 1, 2, 3 },
{ 1*4, 0*4, 5*4, 4*4, 3*4, 2*4, 7*4, 6*4, 9*4, 8*4, 13*4, 12*4, 11*4, 10*4, 15*4, 14*4 },
{ 0*64, 1*64, 2*64, 3*64, 4*64, 5*64, 6*64, 7*64, 8*64, 9*64, 10*64, 11*64, 12*64, 13*64, 14*64, 15*64 },
128*8 /* every sprite takes 128 consecutive bytes */
};
static GFXDECODE_START( gfx_taitoz )
GFXDECODE_ENTRY( "gfx2", 0x0, tile16x8_layout, 0, 256 ) /* sprite parts */
GFXDECODE_ENTRY( "gfx1", 0x0, charlayout, 0, 256 ) /* sprites & playfield */
GFXDECODE_END
/* taitoic.c TC0100SCN routines expect scr stuff to be in second gfx
slot, so 2nd batch of obj must be placed third */
static GFXDECODE_START( gfx_chasehq )
GFXDECODE_ENTRY( "gfx2", 0x0, tile16x16_layout, 0, 256 ) /* sprite parts */
GFXDECODE_ENTRY( "gfx1", 0x0, charlayout, 0, 256 ) /* sprites & playfield */
GFXDECODE_ENTRY( "gfx4", 0x0, tile16x16_layout, 0, 256 ) /* sprite parts */
GFXDECODE_END
static GFXDECODE_START( gfx_dblaxle )
GFXDECODE_ENTRY( "gfx2", 0x0, tile16x8_layout, 0, 256 ) /* sprite parts */
GFXDECODE_ENTRY( "gfx1", 0x0, dblaxle_charlayout, 0, 256 ) /* sprites & playfield */
GFXDECODE_END
/***********************************************************
MACHINE DRIVERS
CPU Interleaving
----------------
Chasehq2 needs high interleaving to have sound (not checked
since May 2001 - may have changed).
Enforce with interleave of 1 sometimes lets you take over from
the demo game when you coin up! Set to 10 seems to cure this.
Bshark needs the high cpu interleaving to run test mode.
Nightstr needs the high cpu interleaving to get through init.
Aquajack has it VERY high to cure frequent sound-related
hangs.
Dblaxle has 10 to boot up reliably but very occasionally gets
a "root cpu error" still.
Racingb inherited interleave from Dblaxle - other values not
tested!
Mostly it's the 2nd 68K which writes to road chip, so syncing
between it and the master 68K may be important. Contcirc
and ChaseHQ have interleave of only 1 - possible cause of
Contcirc road glitchiness in attract?
***********************************************************/
/***********************************************************
SAVE STATES
***********************************************************/
MACHINE_START_MEMBER(taitoz_state,bshark)
{
save_item(NAME(m_cpua_ctrl));
/* these are specific to various games: we ought to split the inits */
save_item(NAME(m_sci_int6));
save_item(NAME(m_ioc220_port));
}
MACHINE_START_MEMBER(taitoz_state,taitoz)
{
int banks = memregion("audiocpu")->bytes() / 0x4000;
membank("z80bank")->configure_entries(0, banks, memregion("audiocpu")->base(), 0x4000);
MACHINE_START_CALL_MEMBER(bshark);
}
MACHINE_START_MEMBER(taitoz_state,chasehq)
{
m_lamps.resolve();
MACHINE_START_CALL_MEMBER(taitoz);
}
MACHINE_RESET_MEMBER(taitoz_state,taitoz)
{
m_cpua_ctrl = 0xff;
m_sci_int6 = 0;
m_ioc220_port = 0;
}
/* Contcirc vis area seems narrower than the other games... */
void taitoz_state::contcirc(machine_config &config)
{
/* basic machine hardware */
M68000(config, m_maincpu, 12000000); /* 12 MHz ??? */
m_maincpu->set_addrmap(AS_PROGRAM, &taitoz_state::contcirc_map);
m_maincpu->set_vblank_int("screen", FUNC(taitoz_state::irq6_line_hold));
Z80(config, m_audiocpu, 16000000/4); /* 4 MHz ??? */
m_audiocpu->set_addrmap(AS_PROGRAM, &taitoz_state::z80_sound_map);
M68000(config, m_subcpu, 12000000); /* 12 MHz ??? */
m_subcpu->set_addrmap(AS_PROGRAM, &taitoz_state::contcirc_cpub_map);
m_subcpu->set_vblank_int("screen", FUNC(taitoz_state::irq6_line_hold));
MCFG_MACHINE_START_OVERRIDE(taitoz_state,taitoz)
MCFG_MACHINE_RESET_OVERRIDE(taitoz_state,taitoz)
TC0040IOC(config, m_tc0040ioc, 0);
m_tc0040ioc->read_0_callback().set_ioport("DSWA");
m_tc0040ioc->read_1_callback().set_ioport("DSWB");
m_tc0040ioc->read_2_callback().set_ioport("IN0");
m_tc0040ioc->read_3_callback().set_ioport("IN1");
m_tc0040ioc->write_4_callback().set(FUNC(taitoz_state::coin_control_w));
m_tc0040ioc->read_7_callback().set_ioport("IN2");
/* video hardware */
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
screen.set_refresh_hz(60);
screen.set_vblank_time(ATTOSECONDS_IN_USEC(0));
screen.set_size(40*8, 32*8);
screen.set_visarea(0*8, 40*8-1, 3*8, 31*8-1);
screen.set_screen_update(FUNC(taitoz_state::screen_update_contcirc));
screen.set_palette("palette");
GFXDECODE(config, m_gfxdecode, "palette", gfx_taitoz);
PALETTE(config, "palette").set_format(palette_device::xBGR_555, 4096);
MCFG_VIDEO_START_OVERRIDE(taitoz_state,taitoz)
TC0100SCN(config, m_tc0100scn, 0);
m_tc0100scn->set_gfx_region(1);
m_tc0100scn->set_tx_region(2);
m_tc0100scn->set_gfxdecode_tag(m_gfxdecode);
m_tc0100scn->set_palette_tag("palette");
TC0150ROD(config, m_tc0150rod, 0);
TC0110PCR(config, m_tc0110pcr, 0, "palette");
/* sound hardware */
SPEAKER(config, "front").front_center();
SPEAKER(config, "rear").rear_center();
SPEAKER(config, "subwoofer").subwoofer();
ym2610_device &ymsnd(YM2610(config, "ymsnd", 16000000/2));
ymsnd.irq_handler().set_inputline(m_audiocpu, 0);
ymsnd.add_route(0, "subwoofer", 0.20);
ymsnd.add_route(1, "2610.1.l", 2.0);
ymsnd.add_route(1, "2610.1.r", 2.0);
ymsnd.add_route(2, "2610.2.l", 2.0);
ymsnd.add_route(2, "2610.2.r", 2.0);
FILTER_VOLUME(config, "2610.1.r").add_route(ALL_OUTPUTS, "rear", 1.0);
FILTER_VOLUME(config, "2610.1.l").add_route(ALL_OUTPUTS, "front", 1.0);
FILTER_VOLUME(config, "2610.2.r").add_route(ALL_OUTPUTS, "rear", 1.0);
FILTER_VOLUME(config, "2610.2.l").add_route(ALL_OUTPUTS, "front", 1.0);
TC0140SYT(config, m_tc0140syt, 0);
m_tc0140syt->set_master_tag(m_subcpu);
m_tc0140syt->set_slave_tag(m_audiocpu);
}
void taitoz_state::chasehq(machine_config &config)
{
/* basic machine hardware */
M68000(config, m_maincpu, 12000000); /* 12 MHz ??? */
m_maincpu->set_addrmap(AS_PROGRAM, &taitoz_state::chasehq_map);
m_maincpu->set_vblank_int("screen", FUNC(taitoz_state::irq4_line_hold));
Z80(config, m_audiocpu, 16000000/4); /* 4 MHz ??? */
m_audiocpu->set_addrmap(AS_PROGRAM, &taitoz_state::z80_sound_map);
M68000(config, m_subcpu, 12000000); /* 12 MHz ??? */
m_subcpu->set_addrmap(AS_PROGRAM, &taitoz_state::chq_cpub_map);
m_subcpu->set_vblank_int("screen", FUNC(taitoz_state::irq4_line_hold));
MCFG_MACHINE_START_OVERRIDE(taitoz_state,chasehq)
MCFG_MACHINE_RESET_OVERRIDE(taitoz_state,taitoz)
TC0040IOC(config, m_tc0040ioc, 0);
m_tc0040ioc->read_0_callback().set_ioport("DSWA");
m_tc0040ioc->read_1_callback().set_ioport("DSWB");
m_tc0040ioc->read_2_callback().set_ioport("IN0");
m_tc0040ioc->read_3_callback().set_ioport("IN1");
m_tc0040ioc->write_4_callback().set(FUNC(taitoz_state::coin_control_w));
m_tc0040ioc->read_7_callback().set_ioport("IN2");
/* video hardware */
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
screen.set_refresh_hz(60);
screen.set_vblank_time(ATTOSECONDS_IN_USEC(0));
screen.set_size(40*8, 32*8);
screen.set_visarea(0*8, 40*8-1, 2*8, 32*8-1);
screen.set_screen_update(FUNC(taitoz_state::screen_update_chasehq));
screen.set_palette("palette");
GFXDECODE(config, m_gfxdecode, "palette", gfx_chasehq);
PALETTE(config, "palette").set_format(palette_device::xBGR_555, 4096);
MCFG_VIDEO_START_OVERRIDE(taitoz_state,taitoz)
TC0100SCN(config, m_tc0100scn, 0);
m_tc0100scn->set_gfx_region(1);
m_tc0100scn->set_tx_region(3);
m_tc0100scn->set_gfxdecode_tag(m_gfxdecode);
m_tc0100scn->set_palette_tag("palette");
TC0150ROD(config, m_tc0150rod, 0);
TC0110PCR(config, m_tc0110pcr, 0, "palette");
/* sound hardware */
SPEAKER(config, "front").front_center();
SPEAKER(config, "rear").rear_center();
SPEAKER(config, "subwoofer").subwoofer();
ym2610_device &ymsnd(YM2610(config, "ymsnd", 16000000/2));
ymsnd.irq_handler().set_inputline(m_audiocpu, 0);
ymsnd.add_route(0, "subwoofer", 0.20);
ymsnd.add_route(1, "2610.1.l", 1.0);
ymsnd.add_route(1, "2610.1.r", 1.0);
ymsnd.add_route(2, "2610.2.l", 1.0);
ymsnd.add_route(2, "2610.2.r", 1.0);
FILTER_VOLUME(config, "2610.1.r").add_route(ALL_OUTPUTS, "rear", 1.0);
FILTER_VOLUME(config, "2610.1.l").add_route(ALL_OUTPUTS, "front", 1.0);
FILTER_VOLUME(config, "2610.2.r").add_route(ALL_OUTPUTS, "rear", 1.0);
FILTER_VOLUME(config, "2610.2.l").add_route(ALL_OUTPUTS, "front", 1.0);
TC0140SYT(config, m_tc0140syt, 0);
m_tc0140syt->set_master_tag(m_subcpu);
m_tc0140syt->set_slave_tag(m_audiocpu);
}
void taitoz_state::enforce(machine_config &config)
{
/* basic machine hardware */
M68000(config, m_maincpu, 12000000); /* 12 MHz ??? */
m_maincpu->set_addrmap(AS_PROGRAM, &taitoz_state::enforce_map);
m_maincpu->set_vblank_int("screen", FUNC(taitoz_state::irq6_line_hold));
Z80(config, m_audiocpu, 16000000/4); /* 4 MHz ??? */
m_audiocpu->set_addrmap(AS_PROGRAM, &taitoz_state::z80_sound_map);
M68000(config, m_subcpu, 12000000); /* 12 MHz ??? */
m_subcpu->set_addrmap(AS_PROGRAM, &taitoz_state::enforce_cpub_map);
m_subcpu->set_vblank_int("screen", FUNC(taitoz_state::irq6_line_hold));
MCFG_MACHINE_START_OVERRIDE(taitoz_state,taitoz)
MCFG_MACHINE_RESET_OVERRIDE(taitoz_state,taitoz)
config.m_minimum_quantum = attotime::from_hz(600);
TC0040IOC(config, m_tc0040ioc, 0);
m_tc0040ioc->read_0_callback().set_ioport("DSWA");
m_tc0040ioc->read_1_callback().set_ioport("DSWB");
m_tc0040ioc->read_2_callback().set_ioport("IN0");
m_tc0040ioc->read_3_callback().set_ioport("IN1");
m_tc0040ioc->write_4_callback().set(FUNC(taitoz_state::coin_control_w));
m_tc0040ioc->read_7_callback().set_ioport("IN2");
/* video hardware */
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
screen.set_refresh_hz(60);
screen.set_vblank_time(ATTOSECONDS_IN_USEC(0));
screen.set_size(40*8, 32*8);
screen.set_visarea(0*8, 40*8-1, 2*8, 31*8-1);
screen.set_screen_update(FUNC(taitoz_state::screen_update_contcirc));
screen.set_palette("palette");
GFXDECODE(config, m_gfxdecode, "palette", gfx_taitoz);
PALETTE(config, "palette").set_format(palette_device::xBGR_555, 4096);
MCFG_VIDEO_START_OVERRIDE(taitoz_state,taitoz)
TC0100SCN(config, m_tc0100scn, 0);
m_tc0100scn->set_gfx_region(1);
m_tc0100scn->set_tx_region(2);
m_tc0100scn->set_gfxdecode_tag(m_gfxdecode);
m_tc0100scn->set_palette_tag("palette");
TC0150ROD(config, m_tc0150rod, 0);
TC0110PCR(config, m_tc0110pcr, 0, "palette");
/* sound hardware */
SPEAKER(config, "lspeaker").front_left();
SPEAKER(config, "rspeaker").front_right();
ym2610_device &ymsnd(YM2610(config, "ymsnd", 16000000/2));
ymsnd.irq_handler().set_inputline(m_audiocpu, 0);
ymsnd.add_route(0, "lspeaker", 0.25);
ymsnd.add_route(0, "rspeaker", 0.25);
ymsnd.add_route(1, "2610.1.l", 20.0);
ymsnd.add_route(1, "2610.1.r", 20.0);
ymsnd.add_route(2, "2610.2.l", 20.0);
ymsnd.add_route(2, "2610.2.r", 20.0);
FILTER_VOLUME(config, "2610.1.r").add_route(ALL_OUTPUTS, "rspeaker", 1.0);
FILTER_VOLUME(config, "2610.1.l").add_route(ALL_OUTPUTS, "lspeaker", 1.0);
FILTER_VOLUME(config, "2610.2.r").add_route(ALL_OUTPUTS, "rspeaker", 1.0);
FILTER_VOLUME(config, "2610.2.l").add_route(ALL_OUTPUTS, "lspeaker", 1.0);
TC0140SYT(config, m_tc0140syt, 0);
m_tc0140syt->set_master_tag(m_subcpu);
m_tc0140syt->set_slave_tag(m_audiocpu);
}
void taitoz_state::bshark_base(machine_config &config)
{
/* basic machine hardware */
M68000(config, m_maincpu, 12000000); /* 12 MHz ??? */
m_maincpu->set_addrmap(AS_PROGRAM, &taitoz_state::bshark_map);
m_maincpu->set_vblank_int("screen", FUNC(taitoz_state::irq4_line_hold));
M68000(config, m_subcpu, 12000000); /* 12 MHz ??? */
m_subcpu->set_addrmap(AS_PROGRAM, &taitoz_state::bshark_cpub_map);
m_subcpu->set_vblank_int("screen", FUNC(taitoz_state::irq4_line_hold));
MCFG_MACHINE_START_OVERRIDE(taitoz_state,bshark)
MCFG_MACHINE_RESET_OVERRIDE(taitoz_state,taitoz)
config.m_minimum_quantum = attotime::from_hz(6000);
TC0220IOC(config, m_tc0220ioc, 0);
m_tc0220ioc->read_0_callback().set_ioport("DSWA");
m_tc0220ioc->read_1_callback().set_ioport("DSWB");
m_tc0220ioc->read_2_callback().set_ioport("IN0");
m_tc0220ioc->read_3_callback().set_ioport("IN1");
m_tc0220ioc->write_4_callback().set(FUNC(taitoz_state::coin_control_w));
m_tc0220ioc->read_7_callback().set_ioport("IN2");
/* video hardware */
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
screen.set_refresh_hz(60);
screen.set_vblank_time(ATTOSECONDS_IN_USEC(0));
screen.set_size(40*8, 32*8);
screen.set_visarea(0*8, 40*8-1, 2*8, 32*8-1);
screen.set_screen_update(FUNC(taitoz_state::screen_update_bshark));
screen.set_palette("palette");
GFXDECODE(config, m_gfxdecode, "palette", gfx_taitoz);
PALETTE(config, "palette").set_format(palette_device::xBGR_555, 4096);
MCFG_VIDEO_START_OVERRIDE(taitoz_state,taitoz)
TC0100SCN(config, m_tc0100scn, 0);
m_tc0100scn->set_gfx_region(1);
m_tc0100scn->set_tx_region(2);
m_tc0100scn->set_gfxdecode_tag(m_gfxdecode);
m_tc0100scn->set_palette_tag("palette");
TC0150ROD(config, m_tc0150rod, 0);
/* sound hardware */
SPEAKER(config, "lspeaker").front_left();
SPEAKER(config, "rspeaker").front_right();
ym2610_device &ymsnd(YM2610(config, "ymsnd", 16000000/2));
//ymsnd.irq_handler().set_inputline(m_audiocpu, 0); // DG: this is probably specific to Z80 and wrong?
ymsnd.add_route(0, "lspeaker", 0.25);
ymsnd.add_route(0, "rspeaker", 0.25);
ymsnd.add_route(1, "2610.1.l", 28.0);
ymsnd.add_route(1, "2610.1.r", 28.0);
ymsnd.add_route(2, "2610.2.l", 28.0);
ymsnd.add_route(2, "2610.2.r", 28.0);
FILTER_VOLUME(config, "2610.1.r").add_route(ALL_OUTPUTS, "rspeaker", 1.0);
FILTER_VOLUME(config, "2610.1.l").add_route(ALL_OUTPUTS, "lspeaker", 1.0);
FILTER_VOLUME(config, "2610.2.r").add_route(ALL_OUTPUTS, "rspeaker", 1.0);
FILTER_VOLUME(config, "2610.2.l").add_route(ALL_OUTPUTS, "lspeaker", 1.0);
}
void taitoz_state::bshark(machine_config &config)
{
bshark_base(config);
adc0809_device &adc(ADC0809(config, "adc", 500000)); // clock unknown
adc.eoc_ff_callback().set_inputline("maincpu", 6);
adc.in_callback<0>().set_ioport("STICKX");
adc.in_callback<1>().set_ioport("X_ADJUST");
adc.in_callback<2>().set_ioport("STICKY");
adc.in_callback<3>().set_ioport("Y_ADJUST");
}
void taitoz_state::bsharkjjs(machine_config &config)
{
bshark_base(config);
m_maincpu->set_addrmap(AS_PROGRAM, &taitoz_state::bsharkjjs_map);