# Inputs: controllers, coins, DIP switches, outputs Citation keys (including `[HYPOTHESIS: was wiki Page]`) as in [system-rom.md](system-rom.md); **[CTRL f:L]** is MAME 0.285 `src/devices/bus/neogeo_ctrl/`. Gathered 2026-11-12. ## The registers | Address | Bits (active low unless stated) | Source | | --- | --- | --- | | `$300000` P1, `$340000` P2 | 0 up, 1 down, 2 left, 3 right, 4 A, 5 B, 6 C, 7 D. On the MVS the JAMMA edge and the DA-15 port are ANDed | [SNK p11], [MAME 899-917] | | `$300001` (MVS) | hardware DIPs: 0 settings mode at boot, 1 coin chutes, 2 mahjong panel, 3-4 link cabinet number, 5 link enable, 6 free play, 7 freeze; 6 and 7 act live, the rest are read at power-up. **Writes kick the watchdog** | [MAME 1818-1841], [SNK p116] | | `$300081` | 7 test button; 6 board sense (C26: MAME reads 0 on 1-slot JAMMA boards and 1 on multi-slot; 0 = 2-slot, 1 = 4/6-slot is [HYPOTHESIS: was wiki Memory mapped registers]) | [MAME 1859-1880] | | `$320001` | 0 coin 1, 1 coin 2, 2 service, 3 coin 3, 4 coin 4 (coins 3/4 on multi-slot only), 5 4/6-slot sense, 6 calendar TP, 7 calendar data | [MAME 1849-1857, 1883-1887] | | `$380000` | 0 P1 start, 1 P1 select, 2 P2 start, 3 P2 select; 4-5 card detect (0 = in); 6 card write protect; 7 **0 = AES, 1 = MVS** (not active-low: a type bit). MAME wires the MVS select buttons as "next/previous game" | [SNK p11-12], [MAME 1843-1847, 1869-1872] | | `$380001` write | 0-2 P1 OUT1-3, 3-5 P2 OUT1-3 (open collector, negative logic; that the MV1B/MV1C 8-pin header outputs are not inverted is [HYPOTHESIS: was wiki Output port]) | [SNK p11], [MAME 929-946] | The board reads these through the controller-port devices and the machine row (an AES has no DIPs, coins, test or calendar: its `$320001` low bits read 0 in MAME except bits 3-4, which the Universe BIOS uses to tell AES from MVS and whose physical meaning is unknown [MAME 1898-1901]). ## Controller-port devices | Device | How it works | Source | | --- | --- | --- | | joypad (default) | 4 directions, A-D; start/select at `$380000`. A standard pad loops OUT3 to D (MAME clears D while OUT3 is set [CTRL joystick.cpp:88-91]); that this is how the system ROM detects it is [HYPOTHESIS: was wiki Joypad] | [CTRL joystick.cpp:88-91] | | mahjong panel | OUT1-3 select matrix rows (A-G, H-N, PON/CHI/KAN/RON/REACH); detected by OUT3 looped to SELECT [CTRL mahjong.cpp:158-160]. That the home ROM checks either port and the MVS ROM only P1 with DIP bit 2 is [HYPOTHESIS: was wiki Mahjong controller] | [CTRL mahjong.cpp], [MAME 1818-1841] | | NEO-FTC1B 4-player adapter (kizuna4p; MV1B/MV1C) | OUT1 selects the P1/P2 or P3/P4 pair; OUT3 fakes a button for detection; hard DIP 2 switches 2/4 players | [CTRL kizuna4p.cpp:122-142], [MAME 3003-3009] | | irrmaze trackball (cabinet control, own system ROM `236-bios.sp1`) | `$300000` gives the X or Y counter by OUT1 bit 0; buttons in `$340000` bits 4-7; OUT bits 1-3 drive a 16-bit lamp shift register | [CTRL irrmaze.cpp:89-127] | | popbounc dial | OUT1 bit 0 = 1 reads the joystick, 0 the 8-bit dial | [CTRL dial.cpp:96-107] | ## Coins, counters, lockouts, LEDs - The system ROM samples the coin and service edges in `SYSTEM_IO` and keeps its state in backup RAM (`$D00020-$D00025`) [HYPOTHESIS: was wiki Backup RAM]. - Coin counters and lockouts are NEO-I0 outputs addressed by **writes of any value**: `$380061/3` release counter 1/2, `$3800E1/3` drive them; `$380065/7` release lockout 1/2, `$3800E5/7` drive them [MAME 963-969]. Which state means "coins rejected" is open (C27: that driving the coil accepts coins is [HYPOTHESIS: was wiki Memory mapped registers]; MAME treats the `$3800E5/7` writes as lockout and asserts it at reset [MAME 966, 1681]). The board exposes them as output lines and draws no conclusion. - LEDs and the EL slot display: `$380031` falling edges latch (bit 3 EL panel, 4 LED1, 5 LED2) the byte written to `$380041` (inverted) [MAME 986-994, 1169-1213]. - The test button opens the setup menu [SNK p117]; that it does so at power-on and gives credits without counting coins is [HYPOTHESIS: was wiki Test button]. ## What the frontend sees A machine row lists its ports and inputs; a host maps keys to the joypad bits, start/select, coins, service and test. For tests the input is a scripted sequence per frame (as the family's other boards do), so the system ROM can be driven through its menus without a person.