# The Signetics 2650: programmer's model, bus, timing, interrupts Citations: **UM** the Signetics 2650 Microprocessor manual (1975; the scan and its OCR, page numbers as printed on the pages), **DM83** the Signetics MOS Microprocessor Data Manual (January 1983, section 5), **ERR** Amigan's erratum, **GUIDE** Amigan Software's coding guide (community, tier 3 where it says a behaviour was seen on a real machine, otherwise an emulator author's notes). See [sources.md](sources.md). ## Registers (UM 21-27) - **R0** and two banks of **R1-R3** (R1-R3 and R1'-R3'), chosen by PSL.RS: seven 8-bit general registers. R0 is the implied operand of the "Z" (register-zero) forms. - **IAR**: the 15-bit instruction address register. Memory is 32 KB in four 8 KB **pages**; address arithmetic for sequential fetch and for relative and indexed operands wraps inside the current page (UM 27-28, "Memory Organization"; negative relative addresses "wrap around the memory, modulo 8,192", UM 44). Only absolute branches and indirect addresses carry the page bits. The exact wrap rule per addressing mode is a rung-1 test list, not a guess (**U1** until each is cited). - **Return address stack (RAS)**: 8 levels of 15 bits on chip, addressed by PSU.SP, a 3-bit wraparound counter (UM 21, 45). A call increments SP, then stores; a return reads, then decrements (UM 45). Overflow wraps silently. - **PSW** (UM 22): PSU = S (sense, 7, read-only: the SENSE pin), F (flag, 6: drives the FLAG pin), II (interrupt inhibit, 5), bits 4-3 unused on the 2650/2650A, SP (2-0). PSL = CC (7-6), IDC (5), RS (4), WC (3), OVF (2), COM (1), C (0). - CC: 01 positive, 00 zero, 10 negative for loads and arithmetic; compares give 01 for greater, 00 equal, 10 less; COM chooses a logical (unsigned) or arithmetic compare (UM 13 notes 1, 3, 4). - WC: whether carry enters additions, subtractions and rotates (UM 22). - The **2650B** adds PSU bits 4 and 3 as user flags UF1 and UF2 (GUIDE's PSW table: "2650B only"); no Signetics document pinned here says so (**U2**). ## Instructions - One to three bytes; 2, 3 or 4 **processor cycles**, each cycle 3 clock periods (UM 13, 35: "2650 cycle time, 3 clock periods = 2.4 us minimum"); indirect addressing adds 2 cycles (UM's instruction pages; seen in MAME's traces as 15- and 18-period instructions). - Addressing modes (UM 47-51): register (Z), immediate (I), relative (R, 7-bit displacement, bit 7 of the operand byte = indirect), absolute (A, 13-bit address in page, with index control bits: indexed, auto-increment, auto-decrement; the index register is the instruction's register field), absolute branch (15 bits, indirect bit), and the "E" forms (PSW, zero-page branches ZBRR/ZBSR/BXA/BSXA: BXA and BSXA index with R3 only, UM 13 note 5). - The opcode byte is `oooo oo rr` for most instructions: the top six bits the operation and mode, the bottom two the register (UM 12-13 Table 2). Some register-field values are special: `ANDZ R0` (40) is **HALT**, `STRZ R0` (C0) is **NOP**, and for `LODZ R0` "the operation code is changed to 60 by the assembler. The instruction, 00000000, yields indeterminate results" (UM, the LODZ page in "Detailed Processor Instructions"). What opcode 00 does on a real part is **U3**; MAME runs it as some defined operation, a detector value only. - Opcodes that Table 2 does not define (for example the 90/91, B6/B7, C4-C7 holes as the MAME disassembler leaves them) have no documented behaviour; GUIDE lists "exactly what happens when the CPU executes each of the undocumented CPU instructions" among its unresolved questions (**U4**). - Decimal adjust (DAR) uses IDC and C (UM's DAR page); the CC after DAR is "meaningless" (UM 13 note 2): the core must pick a value and tag it. - **I/O**: REDC/REDD/WRTC/WRTD (one byte, the D/C line as a 1-bit port address), REDE/WRTE (a port byte on ADR0-7), plus memory-mapped I/O (UM 41-42). SENSE and FLAG are one-bit pins in the PSW; a FLAG change "will be set or cleared during the last cycle of the instruction that changes it" (UM 41). ## The bus (UM 29-37) - One external operation per processor cycle: OPREQ out, OPACK back; the CPU **waits** until OPACK arrives (UM 35-36: asynchronous memory). OPACK must fall 100 ns before the end of T2 not to slow the CPU (UM 35). This is the board's wait-state hook: an instruction's cycle count is a minimum. - Signals: ADR0-12, ADR13/E-NE and ADR14/D-C multiplexed (UM 36, Table 6), M/IO, R/W, WRP (write pulse), INTACK, RUN/WAIT (an **output**: ERR corrects UM's pin list), PAUSE (stops the processor at the end of an instruction), ADREN/DBUSEN (bus float). - **Prefetch:** "The last cycle of instruction A fetches the first byte of instruction B" (UM 44, Figure 12): every instruction's last cycle is the next opcode fetch. A bus-exact core must model that the opcode read belongs to the previous instruction's last cycle. - Clock: 400 ns minimum high and low phases, 800 ns period (1.25 MHz) on the original part (UM 37, preliminary AC table); the consoles run theirs near 0.89 MHz (Arcadia 895 kHz, VC 4000 886.7 kHz: MAME's device clocks, OBSERVED) and the arcade boards up to 3.58 MHz (MAME `laserbat`). ## Interrupts (UM 43-44) Single level, vectored. INTREQ is sampled; the processor finishes the current instruction, sets II, jams the first byte of **ZBSR** into the instruction register, and fetches the second byte from the device during INTACK. The byte is a relative address from page 0 byte 0 (+63/-64, wrapping modulo 8,192) with bit 7 meaning indirect; an all- zero byte calls 0000. The jammed ZBSR pushes the RAS like any call. RETE returns and clears II; RETC returns without. II is also cleared by RESET, CPSU and LPSU (UM 43). The cycle at which INTREQ must arrive to interrupt a given instruction: "prior to the last cycle" (UM 44); a rung-3 test. ## Reset (UM 46) Hold RESET at least three clock periods; on release the processor fetches from page 0 byte 0. If INTREQ is held with RESET, it starts with the interrupt sequence instead. II is cleared. What RESET does to SP, the rest of the PSW, the registers and the RAS is not stated (**U5**); GUIDE says the chips "may be in any state after a reset" for the Arcadia's RAM, which is not the CPU. ## Variants | Part | Difference | Source | Status | | --- | --- | --- | --- | | 2650 | the original (1975) | UM | | | 2650A | the part in the consoles (DM83 sheet; GUIDE: "2650 or 2650A") | DM83 | differences from the 2650 not stated in any pinned document (**U6**) | | 2650A-1 | faster grade | DM83 ordering table | clock limits to read from the DM83 AC table | | 2650B | UF1/UF2 in PSU, possibly more | GUIDE | no Signetics 2650B sheet found (Amigan's `2650B.rar` link returns an HTML page, 2026-11-26): **U2** |