Bally MPU AS-2518-17

pinmame.by17

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

Diagnostic inputs, switch matrix and core flipper buttons

pinmame.input.switch

Switch
Legal addresses
  • -7 … -53 slots
  • 1 … 4848 slots
  • 81 … 888 slots
Transports
  • libpinmamechannel=switch
  • controller_plugingroup_id=5 · contract_revision=46e1a01a0f73
Technical details for Diagnostic inputs, switch matrix and core flipper buttonsSource-derived address behavior and exceptions

GEN_BY17 uses the shared by35 module. PIA0:B reads selected returns directly with no BY35HW_REVSW. Physical matrix numbering is 8 times the zero-based strobe plus the one-based return. PIA0:A bits 0-4 select 1-40. The shared driver also accepts a sixth strobe on PIA1:B bit 7 by default. Check the particular game's harness before treating 41-48 as fitted. The core applies the per-game inversion mask on the public switch boundary. Keyboard handling rewrites 6, 7, 9-11, 16 and diagnostics. Diagnostics -7, -6 and -5 respectively feed the self-test PIA line, CPU NMI and sound-board diagnostic hook. Core column 11 publishes 81-88. Lower cabinet buttons use 82 right and 84 left. The CPU cannot select core column 11. The core copies button state into the matrix only for a flipper whose FLIP_SWNO field is nonzero. Cabinet-wired EOS contacts are local to the physical flipper circuits. The current plugin enumerates its core-sized switch set separately from this semantic envelope.

MPU option switches S1-S32

pinmame.input.dip

DIP switch
Legal addresses
  • 1 … 3232 slots
Transports
  • libpinmamechannel=dip
  • controller_plugingroup_id=6 · contract_revision=46e1a01a0f73
Technical details for MPU option switches S1-S32Source-derived address behavior and exceptions

Four eight-position banks. BY35HW_DIP4 permits the last bank on PIA0 CB2. The LibPinMAME API reads or writes bank bytes 0-3, with physical ordinal n at bank (n - 1) / 8 and bit (n - 1) modulo 8. Plugin device n addresses zero-based bit n - 1.

Momentary drives, continuous lines and synthetic flipper states

pinmame.output.solenoid

Solenoid
Legal addresses
  • 1 … 1515 slots
  • 17 … 204 slots
  • 45 … 484 slots
Transports
  • libpinmamechannel=solenoid
  • controller_plugingroup_id=1 · contract_revision=46e1a01a0f73
Technical details for Momentary drives, continuous lines and synthetic flipper statesSource-derived address behavior and exceptions

With CB2 low, public 1-15 are PIA1:B selector values 0-14 plus one. Selector 15 is idle. The inverted PIA1:B high nibble publishes 17-20, including unfitted lines. The momentary and continuous states are smoothed at vblank. The core gates cabinet-wired flipper state with public 19 and publishes 45/46 (right) and 47/48 (left) in pairs while each button is held. These are synthetic states with no winding or EOS timing. Outside these ranges the native API can expose padded zero positions. The plugin's normal solenoid group uses the core mapping, with the legacy VPM-compatible view in group 8.

A5 lamp driver decoder outputs

pinmame.output.lamp

Lamp
Legal addresses
  • 1 … 1515 slots
  • 17 … 3115 slots
  • 33 … 4715 slots
  • 49 … 6315 slots
Transports
  • libpinmamechannel=lamp
  • controller_plugingroup_id=3 · contract_revision=46e1a01a0f73
Technical details for A5 lamp driver decoder outputsSource-derived address behavior and exceptions

Public address is 16 times the data line index plus the zero-based decoder selector plus one. by35_lampStrobe skips selector 15, leaving impossible positions 16, 32, 48, 64 in the 64-slot interface. The shared driver strobes an auxiliary board only when the per-game lampCol is nonzero. Plugin device IDs use the driver's lamp converter. Transformer-fed general illumination does not appear in the lamp matrix.

Evidence

  • Reference

    https://github.com/vpinball/pinmame

    Source locations

    src/wpc/by35.c by35_lampStrobe, pia0b_r, pia1b_w, by35_vblank, MACHINE_INIT(by35), SWITCH_UPDATE(by35); src/wpc/by35.h BY35_COMPORTS and by35_mBY17; src/wpc/by35games.c dispBy6, dispBy7 and INITGAME fields; src/wpc/core.c core_updateSw, core_swSeq2m, core_m2swSeq, core_getSol; src/wpc/core.h CORE_FLIPPERSWCOL and flipper bit definitions

    rev
    46e1a01a0f73
  • Reference

    https://github.com/vpinball/pinmame

    src/libpinmame/PinMAMEPlugin.h PMPI_GROUP definitions; src/libpinmame/libpinmame.cpp SetupMsgApi device enumeration and PinmameGetDip/PinmameSetDip; src/wpc/vpintf.c native interface

    rev
    46e1a01a0f73

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