Gottlieb System 80

pinmame.gts80

controllers/pinmame/gts80.json
2
Machines
0
Author ready
5
Address groups

Polarity is already normalised

PinMAME reports logical active state on this platform. A consumer must not invert again. Whether a real switch is normally closed stays recorded per device as a physical fact, so a recreation can build the right hardware without changing what the emulator reports.

Address groups

Dedicated slam, sound-test and video inputs, the 8x8 strobe/return switch matrix, and the synthetic flipper-button column

pinmame.input.switch

Switch
Legal addresses
  • -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
Transports
  • 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.

CPU-board switches S1-S32 and the sound-board option banks

pinmame.input.dip

DIP switch
Legal addresses
  • 1 … 4242 slots
Transports
  • libpinmamechannel=dip
Technical details for CPU-board switches S1-S32 and the sound-board option banksSource-derived address behavior and exceptions

Addressing

MDRV_DIPS(42) declares 42 DIP bits. A public DIP address is bank * 8 + bit + 1 (core_getDip).

Addresses Bank Consumer
1-32 0-3 the CPU board's switches S1-S32 (GTS80_DIPS ports 1-2), read by riot6532_0a_r through core_getDip((riot2b>>4)&0x03) while RIOT U5 port B bit 7 is set, bit-reversed by core_revbyte
33-40 4 the sound/speech board's bank (GTS80_SNDDIPS "SS:S1-S8"), read once by gts80ss_init (src/wpc/gts80s.c)
41-42 5, bits 0-1 the sound-only board's two switches ("S:S1", "S:S2"), read once by gts80s_init

Which switch does what is game documentation; a definition cites its own manual.

Nine solenoid drivers, the synthetic game-on and tilt relay states, and synthetic flipper outputs

pinmame.output.solenoid

Solenoid
Legal addresses
  • 1 … 1111 slots
  • 45 … 484 slots
Transports
  • libpinmamechannel=solenoid
  • controller_plugingroup_id=1 · contract_revision=a6f6d7266d30
Technical details for Nine solenoid drivers, the synthetic game-on and tilt relay states, and synthetic flipper outputsSource-derived address behavior and exceptions

Address map

Addresses Behavior
1-8 riot6532_2a_w: RIOT U6 port A, inverted. Bits 0-1 select one of solenoids 1-4 while bit 5 enables them, and bits 2-3 one of 5-8 while bit 6 enables them, so at most one of 1-4 and one of 5-8 is on at a time.
9 Port A bit 7 drives solenoid 9 directly.
10 Synthetic game-on state: for GEN_GTS80 and GEN_GTS80A, GTS80_vblank publishes relays == 0x01, lamp 0's driver state (the Q, game-over relay) while lamp 1 (the T, tilt relay) is off. The same bit is the flipEn argument of core_updateSw.
11 Synthetic tilt-relay state: lamp 1's driver state (the T relay).
12-44 Not published: core_getSol reads coreGlobals.solenoids for 1-32 on every non-WPC generation, where System 80 sets only bits 0-10, and returns 0 for 33-44, whose branches serve other generations.
45-48 Synthetic lower-flipper outputs.

The same port byte also carries the sound command: on every write except on SNDBRD_GTS80B boards, GTS80_sndCmd_w sends the inverted byte's low four bits while its bit 4 is set (0 otherwise), plus 0x10 while lamp 9 (Sound 16) is on.

Synthetic flipper outputs 45-48

No System 80 driver declares FLIP_SOL, so core_updateSw fabricates flipper state in coreGlobals.solenoids2 from the right (112) and left (114) button bits while the game-on bit (solenoid 10) is set: 45/46 follow the right button and 47/48 the left. There is no driver-board output behind them.

Physical-output mode

In PinMAME's physical-output mode riot6532_2a_w also writes solenoids 1-9 to the physical lamp outputs 52-60 (see the lamp group).

When physical or modulated solenoid output is enabled (CORE_MODOUT_ENABLE_PHYSOUT_SOLENOIDS or CORE_MODOUT_ENABLE_MODSOL), core_getSol reads 1-32 from physicOutputState, and vp_getChangedSolenoids reports the same slots. System 80 writes slots 1-9 from riot6532_2a_w, slot 10 with the game-on state on every GTS80_vblank solenoid update, and slot 11 with lamp 1's latch bit whenever riot6532_2b_w writes the first lamp latch, so in that mode 10 and 11 carry the same states as in binary mode, through MACHINE_INIT(gts80)'s two-state integration (on when pulsed, off after 60 ms without a high state). 12-44 read 0 in that mode as well. CORE_MODOUT_FORCE_ON alone keeps the binary read, and a binary read returns 0 or 1. The synthetic flipper outputs 45-48 come from coreGlobals.solenoids2 in every mode, because System 80 declares no modulated flippers.

Earlier revisions

At 97aa922b the physical read also applied with CORE_MODOUT_FORCE_ON alone, a binary read returned the masked bit (coreGlobals.solenoids & CORE_SOLBIT(n)) rather than 1, and System 80 wrote physical slots only for solenoids 1-9, so 10 and 11 read 0 in physical-output mode and a consumer took game on from lamp 0 on with lamp 1 off and the tilt state from lamp 1. The binary-mode states of 10 and 11 are the same at both revisions for GEN_GTS80 and GEN_GTS80A. Evidence recorded at 97aa922b, such as harness traces, keeps that revision's behaviour.

Twelve latched lamp columns, the inverted twelfth column, and the physical-output solenoid mirrors

pinmame.output.lamp

Lamp
Legal addresses
  • 0 … 6364 slots
Transports
  • libpinmamechannel=lamp
  • controller_plugingroup_id=512 · contract_revision=a6f6d7266d30
Technical details for Twelve latched lamp columns, the inverted twelfth column, and the physical-output solenoid mirrorsSource-derived address behavior and exceptions

Addressing

RIOT U6 port B selects one of twelve 4-bit lamp latches (bits 4-7, columns 1-12) and carries its four lamp states (bits 0-3, riot6532_2b_w). The latches are not strobed: each holds its value. MDRV_LAMP_CONV(GTS80_lamp2m, GTS80_m2lamp) makes the public lamp number the factory's "L" number: vp_getLampIndex(n) is lamp2m(n) - 8 = n, so public n is bit n%8 of lampMatrix[n/8], and lamp 0 exists.

Public Source
0-47 the twelve latches, four lamps each, in order
48-51 lampMatrix[6] = data ^ 0x0f of the twelfth latch: the inverted state of lamps 44-47, the System 80 driver board's inverted latch outputs
52-63 binary mode: constant 0. Physical-output mode: 52-60 mirror solenoids 1-9 (riot6532_2a_w), 61-63 stay 0

MACHINE_INIT(gts80) sets coreGlobals.nLamps = 64 + hw.lampCol * 8, and every System 80 game declares lampCol = 0.

Platform-wide lamp roles

GTS80_vblank treats lamp 0 as the GameOn relay (published as solenoid 10) and lamp 1 as the Tilt relay (solenoid 11) for GEN_GTS80 and GEN_GTS80A, and MACHINE_INIT(gts80) types lamps 0, 1 and 4 as CORE_MODOUT_LEGACY_SOL_2_STATE two-state outputs: on when pulsed and off after 60 ms without a high state. At 97aa922b they were CORE_MODOUT_SOL_2_STATE, whose fast-on path writes a changed slot into the solenoid words at bit (index - CORE_MODOUT_SOL0) & 0x1F. For these lamp slots that is solenoids 17, 18 and 21, so whenever PinMAME integrated lamp outputs (CORE_MODOUT_FORCE_ON or CORE_MODOUT_ENABLE_PHYSOUT_LAMPS) a change of lamp 0, 1 or 4 could set those solenoid bits until the next GTS80_vblank solenoid update rewrote the word. The legacy type has no fast-on path, and the lamp values themselves integrate the same way. riot6532_2a_w adds lamp 9 to the sound command as bit 4 (Sound 16) on every board except SNDBRD_GTS80B, which takes lampMatrix[0] & 0x10 (lamp 4) instead. What the other lamp outputs drive, including the relays and coils that games run from lamp drivers, is game documentation.

One physical-output-mode GI channel that models the tilt relay's GI contact

pinmame.output.gi

General illumination
Legal addresses
  • 01 slot
Transports
  • libpinmamechannel=gi
  • controller_plugingroup_id=256 · contract_revision=a6f6d7266d30
Technical details for One physical-output-mode GI channel that models the tilt relay's GI contactSource-derived address behavior and exceptions

MACHINE_INIT(gts80) declares one GI output (coreGlobals.nGI = 1) of type CORE_MODOUT_BULB_44_6_3V_AC_REV, a #44 bulb fed through a relay inverter, so a driver state of 1 is off and 0 is on. riot6532_2b_w writes lamp 1's latch bit (the T, tilt relay) to it whenever the first lamp latch is written, with the source comment "Duplicate lamp 1 (Tilt relay) to GI string: the playfield GI goes through the relay's normally closed contact": the modelled bulb is lit while the tilt relay is released. A TODO beside it notes that on Panthera, Haunted House and Raven the controlled playfield lamps' +6V DC also runs through that relay, so they go dark while it is energized, and that this is not emulated. The channel carries state only in PinMAME's physical-GI mode (CORE_MODOUT_ENABLE_PHYSOUT_GI); in binary mode vp_getGI returns coreGlobals.gi[0], which System 80 never writes, so it is constant 0. LibPinMAME's PinmameGetGI and PinmameGetChangedGIs both integrate every GI slot (core_update_pwm_gis) before reading.

At 97aa922b the same channel copied lamp 0's latch bit (the Q, game-over relay) instead, with the comment "Duplicate lamp 0 to GI string as it drives the Tilt relay that in turn drives the main GI". PinmameGetGI then integrated only slot CORE_MODOUT_GI0 + giNo - 1, and only with CORE_MODOUT_FORCE_ON or CORE_MODOUT_ENABLE_PHYSOUT_GI set (src/libpinmame/libpinmame.cpp lines 1511-1520 at that revision), so a read of GI 0 integrated the slot before GI 0's and returned GI 0 as some other call, such as PinmameGetChangedGIs, last integrated it.

Whether a game's general illumination follows lamp 0, lamp 1 or other relays is game documentation.

Evidence

  • Reference

    https://github.com/vpinball/pinmame

    Source locations

    Pinned baseline. src/wpc/gts80.c lines 15-16 (solenoid 10/11 header), 77-107 GTS80_vblank (lines 94-96 relays, gameOn and the solenoid 10/11 bits, line 97 the solenoid 10 physical output, line 106 core_updateSw(gameOn & 0x01)), 357 riot6532_2a_w, 388-435 riot6532_2b_w (line 407 lamp 1 to GI 0, line 408 lamp 1 to the solenoid 11 physical output), 624-629 MACHINE_INIT(gts80) nGI, nLamps and nSolenoids, 644-646 lamps 0, 1 and 4 as CORE_MODOUT_LEGACY_SOL_2_STATE; src/wpc/core.h lines 405-407 output slot layout, 413 and 416 CORE_MODOUT_SOL_2_STATE and CORE_MODOUT_LEGACY_SOL_2_STATE; src/wpc/core.c lines 1793-1990 core_updateSw (1839-1846 fabricated flipper outputs), 2456-2517 core_getSol (2463-2464 solenoids 1-32), 2598 core_getAllPhysicSols, 3165-3196 core_update_pwm_output_sol_2_state and its fastOn push, 3392-3404 core_set_pwm_output_type two-state cases; src/wpc/vpintf.c lines 50 vp_getSolenoid, 59-65 vp_getGI, 132 vp_getChangedSolenoids, 174 vp_getChangedGI; src/libpinmame/libpinmame.cpp lines 1624-1633 PinmameGetGI and 1639-1652 PinmameGetChangedGIs. Between 97aa922b and this revision gts80.c changed in 9787d542 (GTS80 fixes: solenoids 10 and 11 as physical outputs, GI following the T relay, solenoid 11 on 80B) core.c's core_getSol in df7bcbf6, and libpinmame.cpp's PinmameGetGI in c7a36b70; gts80.h and gts80games.c are unchanged

    src/wpc/gts80.c:15src/wpc/core.h:405src/wpc/core.c:1793src/wpc/vpintf.c:50src/libpinmame/libpinmame.cpp:1624lines 15-16 (solenoid 10/11 header), 77-107 GTS80_vblank (lines 94-96 relays, gameOn and the solenoid 10/11 bits, line 97 the solenoid 10 physical output, line 106 core_updateSw(gameOn & 0x01)), 357 riot6532_2a_w, 388-435 riot6532_2b_w (line 407 lamp 1 to GI 0, line 408 lamp 1 to the solenoid 11 physical output), 624-629 MACHINE_INIT(gts80) nGI, nLamps and nSolenoids, 644-646 lamps 0, 1 and 4 as CORE_MODOUT_LEGACY_SOL_2
    rev
    46e1a01a0f73
  • Reference

    https://github.com/vpinball/pinmame

    Source locations

    src/wpc/gts80.c (switch numbering header, GTS80_vblank solenoid 10/11 synthesis and core_updateSw(gameOn & 0x01), GTS80_sw2m/GTS80_m2sw, GTS80_lamp2m/GTS80_m2lamp, SWITCH_UPDATE(GTS80), riot6532_0a_r/riot6532_0b_w switch matrix, slam_sw_r, riot6532_2a_w solenoids 1-9 and sound command, riot6532_2b_w lamp latches and the inverted 13th column, MACHINE_INIT(gts80) nGI/nLamps/nSolenoids and output types, MACHINE_DRIVER_START(gts80) MDRV_DIPS(42), MDRV_SWITCH_CONV, MDRV_LAMP_CONV); src/wpc/gts80.h (GTS80_COMPORTS, GTS80VID_COMPORTS, GTS80_DIPS, GTS80_SNDDIPS, GTS80_SWSLAMTILT); src/wpc/gts80games.c (INITGAME, INIT_S80, INIT_S80D7, INIT_S80A: hw.flippers 0, zero invSw, lampCol 0); src/wpc/gts80s.c (gts80s_init core_getDip(5), gts80ss_init core_getDip(4)); src/wpc/core.c (core_updateSw, core_getSol, core_getDip, CORE_MODOUT_BULB_44_6_3V_AC_REV); src/wpc/core.h (CORE_FLIPPERSWCOL, CORE_SWLRFLIPBUTBIT, CORE_SWLLFLIPBUTBIT, CORE_FIRSTLFLIPSOL); src/wpc/vpintf.c (vp_getLampIndex, vp_getLamp, vp_getChangedLamps, vp_getGI)

    rev
    97aa922bf8e4
  • Reference

    https://github.com/vpinball/pinmame

    src/libpinmame/libpinmame.cpp SetupMsgApi group definitions

    rev
    a6f6d7266d30

Something wrong or missing?

Address ranges, transports and normalisation rules live in one profile file. If PinMAME exposes a group this profile does not describe — or describes wrongly — the fix belongs there.

Cite a source for anything you change — a manual page, a line in a working VPX script, PinMAME source, or a reading from the machine's own service menu. Claims without provenance cannot be validated.

Machines on this platform

All 2 machines