Gottlieb System 3 (GEN_GTS3)

pinmame.gts3

controllers/pinmame/gts3.json
4
Machines
0
Author ready
3
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

Cabinet test inputs, Gottlieb-numbered switch matrix, and synthetic flipper column

pinmame.input.switch

Switch
Legal addresses
  • -8 … -54 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
  • 80 … 878 slots
  • 90 … 978 slots
  • 100 … 1078 slots
  • 110 … 1178 slots
  • 140 … 1478 slots
Transports
  • libpinmamechannel=switch
Technical details for Cabinet test inputs, Gottlieb-numbered switch matrix, and synthetic flipper columnSource-derived address behavior and exceptions

Matrix conversion

MACHINE_DRIVER_START(gts3) in src/wpc/gts3.c registers MDRV_SWITCH_CONV(gts3_sw2m, gts3_m2sw), so public switch numbers are Gottlieb's own decimal notation: the tens digit is the strobe (matrix column) and the units digit the return (row).

Function Definition
gts3_sw2m(no) (no / 10 + 1) * 8 + no % 10, or -1 when no % 10 > 7
gts3_m2sw(col, row) row - 8 for internal column 0, otherwise (col - 1) * 10 + row

A number whose last digit is 8 or 9 has no switch: gts3_sw2m returns -1, and core_setSw/core_getSw do not bounds-check the index they then use, so never write one.

Switch matrix

The CPU strobes up to twelve columns with the same 12-bit shift register that strobes the lamp matrix (xvia_0_b_w, LDATA/LSTRB), and reads the eight returns on VIA U4 port A through xvia_0_a_r, which returns ~core_getSwCol(GTS3locals.lampColumn). The public matrix is therefore 0-7, 10-17, ..., 110-117 (internal columns 1-12). The read is complemented in hardware, so public 1 is the closed-contact reading the CPU sees. No INITGAME* macro in src/wpc/gts3games.c sets an inverted-switch mask, so PinMAME normalizes nothing per game: a switch the ROM treats as active at public 1 has a contact that rests open.

With PinMAME keyboard handling on, SWITCH_UPDATE(GTS3) also rewrites the low bits of internal column 1 (public 0-7) from the cabinet port, and the port layout follows the game's INITGAME* macro (src/wpc/gts3.h):

Macro Port flag Public addresses rewritten
INITGAME2 (GTS32_COMPORTS) 0x8000 0 Coin 2, 1 Coin 1, 2 Coin 3, 3 Coin 4, 4 Start, 5 Tournament (toggle), 6 Coin Door (toggle)
INITGAME1 (GTS31_COMPORTS) and INITGAME_IC (GTS3_IC_COMPORTS) 0x4000 0 Coin 2, 1 Coin 1, 2 Coin 3, 3 Coin 4, 4 Start
INITGAME (GTS3_COMPORTS) none 0 Coin 2, 1 Coin 1, 2 Coin 3, 3 Start, 4 Left Advance, 5 Right Advance

The port labels are emulator key names, not the game's switch names; take those from the game's own switch test. With keyboard handling off, every one of these addresses keeps what the host writes.

Cabinet test inputs

Internal column 0 is not part of the matrix. SWITCH_UPDATE(GTS3) reads four of its bits back through core_getSw into dedicated latches every update (GTS3_SWDIAG, GTS3_SWTILT, GTS3_SWSLAM, GTS3_SWPRIN in src/wpc/gts3.h):

Address Constant CPU read path
-8 GTS3_SWDIAG Test (diagnostic) switch: VIA U4 PB3 on the DMD generation and the second alpha generation, VIA U4 CA1 on the first alpha generation
-7 GTS3_SWTILT Tilt: VIA U4 PB4
-6 GTS3_SWSLAM Slam tilt: VIA U4 CA1 (on the first alpha generation PB3)
-5 GTS3_SWPRIN Printer present: the communications adapter status aux1_r returns

dmd_u4_pb_r and alpha_u4_pb_r copy the latches without inversion (the source comments say NOT INVERTED!). With keyboard handling on, the cabinet port rewrites them from the Diagnostic, Ball Tilt, Slam Tilt and Printer keys; with it off they keep the host's writes. Bits -4 to -1 are never read.

Flipper column

core_updateSw (src/wpc/core.c) keeps the cabinet flipper buttons in internal column 15 for GEN_GTS3 (its flipSwCol test), not in CORE_FLIPPERSWCOL. gts3_m2sw(15, row) publishes that column at 140-147:

Address Bit Position
140 CORE_SWLRFLIPEOSBIT Lower right end-of-stroke
141 CORE_SWLRFLIPBUTBIT Lower right button
142 CORE_SWLLFLIPEOSBIT Lower left end-of-stroke
143 CORE_SWLLFLIPBUTBIT Lower left button
144 CORE_SWURFLIPEOSBIT Upper right end-of-stroke
145 CORE_SWURFLIPBUTBIT Upper right button
146 CORE_SWULFLIPEOSBIT Upper left end-of-stroke
147 CORE_SWULFLIPBUTBIT Upper left button

Every pinned System 3 driver declares its flippers with FLIP_SWNO(l, r) (two alpha games with FLIP_SW(FLIP_L)), never FLIP_SOL, FLIP_EOS or an upper FLIP_SW, so locals.flipMask holds only the two lower button bits. With keyboard handling off, core_updateSw reads 141 and 143 as the host wrote them, copies them into the game's FLIP_SWNO matrix switches on every update (overwriting any direct write there), and fabricates the synthetic flipper outputs 45-48 from them while the game-on relay (solenoid 32) is energized. The ROM cannot read column 15: the 12-bit strobe reaches internal columns 1-12 only. The VPinMAME library GTS3.VBS names the same addresses swLRFlip = 141, swLLFlip = 143, swURFlip = 145 and swULFlip = 147.

Driver-board outputs, relays, and synthetic flipper outputs

pinmame.output.solenoid

Solenoid
Legal addresses
  • 1 … 3232 slots
  • 45 … 484 slots
Transports
  • libpinmamechannel=solenoid
Technical details for Driver-board outputs, relays, and synthetic flipper outputsSource-derived address behavior and exceptions

Physical outputs

solenoid_w (src/wpc/gts3.c, CPU writes to 0x2030-0x2033) stores four bytes into coreGlobals.pulsedSolState, so bit n-1 is public solenoid n for 1-32. GTS3_interface_update copies that state into coreGlobals.solenoids every GTS3_SOLSMOOTH (4) video frames, so a pulse shorter than that window can be lost or stretched in the binary solenoid stream. A game's own Relay & Solenoid Test names each output, so take the pairing from that game's test rather than a sibling's: Stargate's displays the driver number counted from 0, one less than the public address that fires.

gts3dmd_init and GTS3_alpha_common_init set the platform's relay conventions, which the games' tests corroborate by name:

Public Platform role
26 'A' relay: lightbox insert (backbox) lamps
31 'T' relay: playfield general illumination (the tilt relay)
32 'Q' relay: game on; GTS3_interface_update passes its state to core_updateSw as the flipper enable

coreGlobals.nGI = 0: there is no separate general-illumination channel, and the relays are ordinary solenoid outputs. The per-game strncasecmp blocks in the two init functions only choose PWM brightness models (CORE_MODOUT_BULB_89_20V_DC_GTS3, CORE_MODOUT_LED, ...) for flasher and LED outputs; they model brightness, not fitment.

Synthetic flipper outputs

No System 3 driver sets FLIP_SOL, so core_updateSw fabricates the lower flipper outputs from the flipper-column buttons 141/143 while 32 is energized. core_getAllSol, which feeds LibPinMAME's changed-solenoid reports outside physical-output mode, publishes 45/46 for the lower right button and 47/48 for the lower left one, both bits of a pair together. In physical-output (modulated) mode vp_getChangedSolenoids reads physicOutputState instead, which System 3 never writes above 32. The upper-flipper range 33-36, the 37-44 extension range and the simulator outputs 49-50 carry nothing on this platform.

Gottlieb-numbered lamp matrix and auxiliary driver board outputs

pinmame.output.lamp

Lamp
Legal addresses
  • 0 … 78 slots
  • 10 … 178 slots
  • 20 … 278 slots
  • 30 … 378 slots
  • 40 … 478 slots
  • 50 … 578 slots
  • 60 … 678 slots
  • 70 … 778 slots
  • 80 … 878 slots
  • 90 … 978 slots
  • 100 … 1078 slots
  • 110 … 1178 slots
  • 120 … 1278 slots
Transports
  • libpinmamechannel=lamp
Technical details for Gottlieb-numbered lamp matrix and auxiliary driver board outputsSource-derived address behavior and exceptions

Lamp matrix

MACHINE_DRIVER_START(gts3) also registers MDRV_LAMP_CONV(gts3_sw2m, gts3_m2sw), and vp_getChangedLamps reports internal lamp column c (0-based), row r as gts3_m2sw(c + 1, r), that is c * 10 + r. Public lamp numbers are therefore Gottlieb's decimal lamp numbers and start at 0: 0-7, 10-17, ..., 110-117.

xvia_0_b_w shifts a 12-bit column strobe (two 74HC164s, the same strobe the switch matrix uses) and lds_w (0x2040) latches the eight row outputs, so the matrix is twelve columns by eight rows. The emulation accumulates a frame until the strobe restarts at the first column.

Auxiliary driver board

When a game declares hw.lampCol > 4 (the last argument of its INITGAME* macro), xvia_1_b_w writes VIA U5 port B (DX0-DX7, connector A1P6) into coreGlobals.lampMatrix[12], published at 120-127. The source calls these "flashers driven by auxiliary board". Games with hw.lampCol = 4 use the same port for an extra LED display or nothing, and publish nothing at 120-127. coreGlobals.nLamps = 64 + hw.lampCol * 8, so a definition narrows this ceiling to its own game's declaration.

There is no general-illumination lamp channel: G.I. is switched by the 'T' and 'A' relays on the solenoid outputs.

Evidence

  • Reference

    external:pinmame-review-artifacts/vpm-script-libs/gts3.vbs

    VPinMAME script library GTS3.VBS: GameOnSolenoid = 32, swCoin1-4 = 00-03, swDiagnostic = -8, swTilt = -7, swSlamTilt = -6, swLRFlip = 141, swLLFlip = 143, swURFlip = 145, swULFlip = 147, and the vpmKeyDown/vpmKeyUp handlers that write them

    external:pinmame-review-artifacts/vpm-script-libs/gts3.vbs
    rev
    sha256:66c32
  • Reference

    https://github.com/vpinball/pinmame

    Source locations

    src/wpc/gts3.c (xvia_0_a_r, alpha_u4_pb_r, dmd_u4_pb_r, xvia_0_b_w lamp/switch strobe, xvia_1_b_w auxiliary board, GTS3_interface_update, SWITCH_UPDATE(GTS3), gts3_sw2m/gts3_m2sw, GTS3_alpha_common_init and gts3dmd_init output sizing and relay conventions, solenoid_w, lds_w, GTS3_readmem/GTS3_writemem, MACHINE_DRIVER_START(gts3) MDRV_SWITCH_CONV/MDRV_LAMP_CONV); src/wpc/gts3.h (GTS3_COMPORTS, GTS31_COMPORTS, GTS32_COMPORTS, GTS3_IC_COMPORTS, GTS3_SWDIAG/GTS3_SWTILT/GTS3_SWSLAM/GTS3_SWPRIN, GTS3_SOLSMOOTH); src/wpc/gts3games.c (INITGAME, INITGAME_IC, INITGAME1, INITGAME2 and every game's FLIP_SWNO and lampCol argument); src/wpc/core.c (core_updateSw flipSwCol and synthetic lower-flipper outputs, core_getSwCol, core_setSw/core_getSw, core_getAllSol); src/wpc/core.h (CORE_FIRSTLFLIPSOL, CORE_SW*FLIP*BIT, CORE_*FLIPSOLBITS); src/wpc/vpintf.c (vp_getChangedLamps, vp_getChangedSolenoids); src/wpc/gen.h and src/libpinmame/libpinmame.h (GEN_GTS3 / PINMAME_HARDWARE_GEN_GTS3 = 0x0020000000000)

    rev
    97aa922bf8e4

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 4 machines