Dedicated slam, sound-test and video inputs, the 8x8 strobe/return switch matrix, and the synthetic flipper-button column
pinmame.input.switch
- -8 … -18 slots
- 0 … 78 slots
- 10 … 178 slots
- 20 … 278 slots
- 30 … 378 slots
- 40 … 478 slots
- 50 … 578 slots
- 60 … 678 slots
- 70 … 778 slots
- 111 … 1188 slots
- libpinmamechannel=switch
- controller_plugingroup_id=1 · contract_revision=a6f6d7266d30
Technical details for Dedicated slam, sound-test and video inputs, the 8x8 strobe/return switch matrix, and the synthetic flipper-button columnSource-derived address behavior and exceptions
Matrix conversion
MACHINE_DRIVER_START(gts80) in src/wpc/gts80.c installs its own converters, MDRV_SWITCH_CONV(GTS80_sw2m, GTS80_m2sw), so a public System 80 switch number is the factory's two-digit matrix number: the tens digit is the strobe and the units digit the return, as in the game manuals' "SW.nn" cells.
| Public | Internal | Meaning |
|---|---|---|
n in 0-77 (units digit 0-7) |
column (n+1)%10, row (n+1)/10 |
strobe n/10, return n%10 |
-8 to -1 |
column 0, row n+8 |
dedicated inputs outside the matrix |
111-118 |
column 11, row n%10-1 |
PinMAME's flipper switch column |
The ROM strobes one row per scan through RIOT U4 port B (riot6532_0b_w) and riot6532_0a_r returns swMatrix[1..8] for the strobed row, so it can read only internal columns 1-8: public x0-x7 for strobes 0-7. Numbers whose units digit is 8 or 9, and columns 9 and 10, are never read.
Return 7 and the cabinet
Internal column 8 is return 7. When PinMAME's own keyboard handling is on, SWITCH_UPDATE(GTS80) rewrites its six low rows from GTS80_COMPORTS on every update: 07 Test, 17 Coin 1, 27 Coin 2, 37 Coin 3, 47 Start and 57 Tilt (src/wpc/gts80.h). With keyboard handling off, as under LibPinMAME and VPinMAME, the host writes these addresses directly. The ROM reads return 7 like any other column; 67 and 77 are not in the port. Which cabinet switch is wired to which return-7 position is game documentation.
Dedicated inputs
| Address | Source | Hardware |
|---|---|---|
-1 |
GTS80_SWSLAMTILT, port bit 0x8000 "Slam Tilt" |
the slam switch, read on RIOT U5 port A bit 7 (slam_sw_r), never through the matrix |
-4 |
port bit 0x1000 "Sound Test" |
the sound board's test button: SWITCH_UPDATE(GTS80) passes swMatrix[0] & 0x10 to sndbrd_0_diag |
-8 to -5 |
port bits 0x0100-0x0800 (GTS80VID_COMPORTS) |
Caveman's video joystick; published only on GTS80_DISPVIDEO drivers |
-3 and -2 are not written by any port.
The slam input is published active-high: SWITCH_UPDATE(GTS80) presents RIOT U5 PA7 to the ROM as invPattern (0) while core_getSw(-1) is set and as 0xff otherwise, and System 80 games' per-game invSw is zero. So public -1 = 1 means the slam contact is open (slammed), and a consumer holds -1 at 0 for a machine at rest.
Flipper buttons
System 80 flippers are switched by the cabinet buttons through relay contacts and the CPU never reads the buttons. PinMAME still keeps its flipper switch column at internal column 11 (CORE_FLIPPERSWCOL), which GTS80_sw2m's no >= 96 branch publishes at 111-118: CORE_SWLRFLIPBUTBIT is public 112 and CORE_SWLLFLIPBUTBIT public 114. The INIT_S80, INIT_S80D7 and INIT_S80A game macros in src/wpc/gts80games.c set hw.flippers to 0, so core_updateSw copies the buttons into no matrix switch and models no end-of-stroke or upper-button bit; it uses 112 and 114 only to fabricate the synthetic flipper outputs (see the solenoid group). 111, 113 and 115-118 carry nothing.
Polarity
Every INIT_S80/INIT_S80D7/INIT_S80A game declares a zero invSw, and riot6532_0a_r returns swMatrix bits unmodified, so a matrix switch's public 1 is the closed contact the ROM reads.