Data East/Sega System

pinmame.dataeast

controllers/pinmame/data-east.json
31
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

Data East service buttons, the 8x8 switch matrix, and PinMAME's flipper column

pinmame.input.switch

Switch
Legal addresses
  • -7 … -62 slots
  • 1 … 6464 slots
  • 81 … 888 slots
Transports
  • libpinmamechannel=switch
  • controller_plugingroup_id=1 · contract_revision=a6f6d7266d30
Technical details for Data East service buttons, the 8x8 switch matrix, and PinMAME's flipper columnSource-derived address behavior and exceptions

Public matrix addresses

Data East uses PinMAME's sequential, column-major 1-64 switch namespace inherited by MACHINE_DRIVER_START(s11) from MACHINE_DRIVER_START(PinMAME). The registered conversion is core_swSeq2m(n)=n+7, so column=((n-1)/8)+1 and row=((n-1)%8)+1 for public address n (src/wpc/core.c core_swSeq2m/core_m2swSeq; src/wpc/s11.c MACHINE_DRIVER_START(s11)). It is not WPC's column-times-ten notation.

Data East matrix strobes are one-hot. pia4b_w keeps only the first asserted strobe bit when locals.deGame is true, and pia4a_r passes that selected column to core_getSwCol (src/wpc/s11.c). Public address numbering remains sequential; this hardware detail matters when interpreting traces with malformed multi-bit strobes.

Cabinet column and diagnostics

DE_COMPORTS supplies ordinary column 1 at public addresses 1-8: tilt=1, ball tilt=2, start=3, coin 1-3=4-6, slam tilt=7, and no defined cabinet input at 8 (src/wpc/s11.h). These are part of the same switch namespace as the playfield matrix. A game using S11_MUXSW2 may overwrite public switch 2 with the live mux-relay state in SWITCH_UPDATE(s11); identify switch 2 from the game-specific driver and manual rather than assuming it is always a physical ball-tilt switch.

Only two negative service addresses exist on Data East hardware:

Address PinMAME constant Driver behavior
-7 DE_SWADVANCE Black Advance button; s11_irqline presents its asserted public state inverted to PIA2 CA1.
-6 DE_SWUPDN Green Up/Down button; presented directly to PIA2 CB1.

Williams-only CPU and sound diagnostic addresses -5 and -4 are not part of the Data East contract. DE_COMPORTS2 changes the later green button from toggling to momentary input behavior, but its public address remains -6 (src/wpc/s11.h).

Flipper column

PinMAME keeps the cabinet flipper buttons in its own flipper switch column, CORE_FLIPPERSWCOL (internal column 11, src/wpc/core.h). The same core_swSeq2m(n)=n+7 conversion publishes that column at 81-88:

Address Bit Position
81 CORE_SWLRFLIPEOSBIT (0x01) Lower right end-of-stroke
82 CORE_SWLRFLIPBUTBIT (0x02) Lower right button
83 CORE_SWLLFLIPEOSBIT (0x04) Lower left end-of-stroke
84 CORE_SWLLFLIPBUTBIT (0x08) Lower left button
85 CORE_SWURFLIPEOSBIT (0x10) Upper right end-of-stroke
86 CORE_SWURFLIPBUTBIT (0x20) Upper right button
87 CORE_SWULFLIPEOSBIT (0x40) Upper left end-of-stroke
88 CORE_SWULFLIPBUTBIT (0x80) Upper left button

No pinned Data East driver sets FLIP_SOL: each declares FLIP_SWNO(l,r) or no flipper bits at all, so the flippers are cabinet-wired and the CPU drives no flipper coil. core_updateSw (src/wpc/core.c) then does three things on every update:

  • With keyboard handling off (the LibPinMAME default), it reads the two lower button bits from this column as the host wrote them; no driver on this platform sets an invSw bit in column 11.
  • It copies 82 into matrix switch r and 84 into matrix switch l through core_setSw, so a host write to l or r itself is overwritten on the next update. A driver that declares no switch number for a side (a zero in FLIP_SWNO, or no flipper bits) gets no copy for that side.
  • While the switched-solenoid enable is on (public 23, which s11.c passes to core_updateSw as locals.ssEn), it fabricates the synthetic flipper outputs 45/46 from 82 and 47/48 from 84 (CORE_LRFLIPSOLBITS, CORE_LLFLIPSOLBITS).

A consumer that wants a flipper button to reach the ROM drives 82/84, never the matrix address the game's manual prints for it. The addresses and the copy are identical to the System 9/11 profile's, because Data East runs on the same s11 driver and the same core_updateSw.

locals.flipMask gains an end-of-stroke bit only from FLIP_EOS (implied by FLIP_SOL) and an upper button bit only from FLIP_SW(FLIP_UR)/FLIP_SW(FLIP_UL). No pinned driver on this platform sets either, so core_updateSw never copies 81, 83 or 85-88 anywhere and PinMAME models no end-of-stroke switch here. A host write to them survives in the column, but the ROM cannot read it there: s11.c's pia4a_r reads the matrix only through core_getSwCol with an eight-bit column strobe, which reaches columns 1-8. A definition enumerates 81-88 and states which of them its own driver uses.

Inversion and extensions

The profile's inversion_applied_by_emulator field means consumers use the public LibPinMAME state as delivered and do not perform a second inversion. It does not assert that every game has a nonzero invSw mask. The common INITGAMES11 Data East initializer zero-initializes that mask; custom drivers must be checked individually. A nonzero hw.swCol adds game-specific columns above the base 1-64 range and must be declared by that machine rather than inferred from this base rule.

Shared-driver DIP-style configuration input

pinmame.input.dip

DIP switch
Legal addresses
  • 01 slot
Transports
  • libpinmamechannel=dip
Technical details for Shared-driver DIP-style configuration inputSource-derived address behavior and exceptions

Shared configuration input

The inherited System 11 machine driver exposes one DIP-style configuration bit at public address 0; pia2a_r returns core_getDip(0)<<7 (src/wpc/s11.c, MACHINE_DRIVER_START(s11)). This establishes an emulator configuration path, not the fitment of a physical country jumper on every Data East machine. S11_COMPORTS declares a Country input, while DE_COMPORTS and DE_COMPORTS2 do not (src/wpc/s11.h). A game's own CPU schematic must establish its physical input, jumper or fixed level; do not carry the Williams Country/W7 identity onto Data East hardware from this inherited handler alone.

Data East coil, flasher, relay, special-solenoid, auxiliary-output, and virtual flipper states

pinmame.output.solenoid

Solenoid
Legal addresses
  • 1 … 6464 slots
Transports
  • libpinmamechannel=solenoid
  • controller_plugingroup_id=1 · contract_revision=a6f6d7266d30
Technical details for Data East coil, flasher, relay, special-solenoid, auxiliary-output, and virtual flipper statesSource-derived address behavior and exceptions

Address map

The public namespace is a platform-sized outer bound; a machine definition must mark its actual populated, virtual, and unused addresses from its own driver, manual, and trace.

Addresses Data East behavior
1-8 Eight momentary A-side drivers written by latch2200.
9-16 Eight controlled drivers written by PIA0:B; INITGAMES11 assigns mux relay K1 to public 10.
17-22 Six special-solenoid public states, gated by public enable 23; see the permutation below.
23 S11_GAMEONSOL / CORE_SSFLIPENSOL, a public virtual enable state for the flipper and switched-solenoid supply. It is not a playfield coil.
24 Reserved gap; no shared driver writes a device state here.
25-32 Relay-selected C-side aliases of the eight physical drivers at 1-8; see the mux rule below.
33-36 Generic upper-flipper range from the cross-platform API. core_getSol has no Data East implementation for it, so these addresses are always zero.
37-44 Shared-driver auxiliary-output range. DMD-family initializers that pass S11_PRINTERLINE as hw.gameSpecific1 publish pia2b_w's printer-line byte here; alpha initializers reviewed for this profile do not enable S11_SNDOVERLAY. Check each game's initializer, source, and runtime evidence before declaring the range populated or unused.
45-48 Virtual lower-flipper power/hold states derived from the cabinet flipper button bits at public 82 (right) and 84 (left) while output 23 enables flippers: right power=45, right hold=46, left power=47, left hold=48.
49 Cross-platform simulator ball-shooter state, not a physical Data East driver-board output.
50 Reserved gap.
51-64 Game-specific custom outputs, present only when the driver declares hw.custSol and a getSol hook.

Data East general illumination is not a separate LibPinMAME GI channel. The shared driver types the appropriate per-game ordinary solenoid output as an AC bulb/relay; most Data East games use output 11, but the exact populated outputs and electrical types come from the game's own MACHINE_INIT(s11) name block and manual. Bind those devices to pinmame.output.solenoid with machine output kind gi.

Special-solenoid permutation

PIA-driven special solenoids are active-low at the PIA handler and gated by locals.ssEn. Data East selects ssSolNo[1]={3,4,5,1,0,2} in setSSSol, producing this exact handler-to-public mapping (src/wpc/s11.c):

PIA handler Handler slot Public address
pia1ca2_w 0 20
pia1cb2_w 1 21
pia3ca2_w 2 22
pia3cb2_w 3 18
pia4ca2_w 4 17
pia4cb2_w 5 19

Do not infer SP1-SP6 physical labels from those public numbers. When a game instead populates sxx.ssSw, the VBLANK path indexes those slots sequentially as public 17+ii and does not apply the PIA permutation. Manual circuit identity, PIA handler, sxx.ssSw slot, and public output address remain separate facts until a game-specific trace reconciles them.

K1 A/C mux

updsol() detects the game-specific mux relay—public 10 for the common INITGAMES11 Data East initializer—and, while it is active, copies the low driver byte from public 1-8 into public 25-32 instead. These are alternate circuits behind the same eight transistors and K1 relay contacts, not sixteen independent drivers. The machine's manual and working VPX script decide which A-side or C-side device is physically wired to each pair. Playboy 35th sets S11_MUXDELAY, so pia0b_w processes the previous controlled-driver byte and delays the mux decision by one IRQ; traces must preserve that timing rather than expecting same-callback switching.

Auxiliary outputs and flippers

For Data East DMD generations whose initializer sets S11_PRINTERLINE, pia2b_w writes an eight-bit printer-line/auxiliary byte into internal PWM slots 41-48; core_getSol, core_getAllSol, and core_getAllPhysicSols expose those slots as public 37-44. The 128x16 path inverts that byte, while the 128x32/192x64 path does not. The reviewed alpha initializers do not enable S11_SNDOVERLAY. Never infer a physical device, availability, or polarity from the shared range alone.

The common Data East driver macros use FLIP_SWNO(...) without FLIP_SOL(...). core_updateSw therefore fabricates public 45-48 from the left/right cabinet button bits at public 84/82 (the switch group's flipper column) only while public 23 enables the flippers. They are useful controller states for a recreation but do not identify four independently controlled driver-board transistors or prove the physical EOS/power-winding polarity.

Data East 8x8 lamp matrix and optional game-specific columns

pinmame.output.lamp

Lamp
Legal addresses
  • 1 … 6464 slots
Transports
  • libpinmamechannel=lamp
  • controller_plugingroup_id=512 · contract_revision=a6f6d7266d30
Technical details for Data East 8x8 lamp matrix and optional game-specific columnsSource-derived address behavior and exceptions

Standard matrix

MACHINE_INIT(s11) publishes 64 + hw.lampCol*8 lamp states. The standard Data East matrix is public 1-64, numbered column-major with the same sequential conversion as switches: column=((n-1)/8)+1, row=((n-1)%8)+1. pia1a_w supplies active-low rows and pia1b_w supplies columns to core_write_pwm_output_lamp_matrix (src/wpc/s11.c).

A nonzero hw.lampCol adds game-specific columns above 64; this base profile does not silently claim them. General illumination is not part of this lamp group or a separate GI channel on this driver—it is represented by the game's ordinary solenoid/relay output.

Evidence

  • Reference

    https://github.com/vpinball/pinmame

    Source locations

    src/wpc/s11.c (s11_irqline, SWITCH_UPDATE(s11), pia1a_w/pia1b_w/pia2a_r/pia2b_w/pia4a_r/pia4b_w, setSSSol, updsol, pia0b_w/pia0cb2_w, MACHINE_INIT(s11), MACHINE_DRIVER_START(s11)); src/wpc/s11.h (DE_COMPORTS/DE_COMPORTS2, DE_SWADVANCE/DE_SWUPDN, S11_GAMEONSOL and hardware flags); src/wpc/degames.c (INITGAMES11, FLIP_SWNO constants and Data East game initializers); src/wpc/core.c (core_swSeq2m/core_m2swSeq, core_updateSw, core_getSol/core_getAllSol/core_getAllPhysicSols); src/wpc/core.h (public solenoid constants and core_tGameData sxx fields); src/wpc/gen.h (GEN_DE/GEN_DEDMD16/GEN_DEDMD32/GEN_DEDMD64/GEN_ALLS11)

    rev
    4ec52ff0ac13
  • 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 31 machines