# Its own core, or an architecture-version axis on arm7tdmi-python? The first question this Phase 0 was asked. arm7tdmi-python (`../arm7tdmi-python`, ARMv4T, built; rungs 0-4 pass, 2,192,923 SingleStepTests cases gated, 15 hardware test ROMs; its README and docs/status.md, read 2026-11-26) already specifies a 3-stage-pipeline ARM with one bus and N/S/I/C cycles. The ARM7 is the ARM6's direct successor, so the gap is much smaller than the one arm946es-python weighed for the ARM9 (`../arm946es-python/docs/core-choice.md`): same pipeline, same bus classification, nearly the same cycle table. Could the ARM60 be `ARM7TDMI(arch="v3")`? **Recommendation: its own repository, `arm60-python`, in arm7tdmi-python's shape, sharing no code, with arm7tdmi-python as a differential detector on the common subset.** Alternative A below is closer than it was for the ARM9 and is listed in Open decisions. ## What differs (each row cited; isa-v3.md and timing.md hold the detail) | Area | ARM7TDMI (ARMv4T) | ARM60 (ARMv3) | Source | | --- | --- | --- | --- | | Thumb | T bit, BX, a second decoder and pipeline width | none: no T bit, no BX (its encoding is in the PSR-transfer/undefined space) | ARM60 DS 4.1; DDI 0100E A1 (DOC) | | Halfword and signed loads | LDRH, STRH, LDRSB, LDRSH (`1SH1` in bits 7:4) | none: those encodings sit in the multiply/SWP space; the data sheet says some undefined codes "do not cause the Undefined instruction trap" and their action is unstated | ARM60 DS 4.1 note (DOC); behaviour HYPOTHESIS (isa-v3.md U2) | | Long multiplies | UMULL, UMLAL, SMULL, SMLAL | none (ARMv3M added them) | DDI 0100E A1 (DOC) | | Multiplier | 8-bit Booth steps with early termination: m = 1-4 from Rs's sign-extended bytes; MLA one more I cycle | 2-bit Booth, terminating when the shifted multiplier is zero: m = 1-16 from Rs; MUL and MLA cost the same | ARM60 DS 7.3, table 23; arm7tdmi-python docs/timing.md (from ARM's TRM) (DOC) | | Modes | 7 modes incl. System; M4 always 1 | 6 32-bit modes **and** 4 26-bit modes (User26, FIQ26, IRQ26, SVC26) with R15 holding PC and PSR, TEQP/TSTP/CMPP/CMNP, the address exception (vector 0x14) and vector exceptions | ARM610 DS 16.0; DDI 0100E A8 (DOC) | | Configuration inputs | BIGEND; abort model fixed (base updated) | BIGEND, **LATEABT** (early abort: base not written back), **PROG32**, **DATA32**, changeable while running | ARM60 DS 2.0, 3.1 (DOC) | | Data widths on the bus | 8, 16, 32 (MAS[1:0]) | 8, 32 (nBW) | ARM60 DS 2.0 (DOC) | | Cycle table | as table 10-22 | the same rows and counts for data processing, LDR, STR, LDM, STM, SWP, B, SWI; differs for MUL/MLA and for MRC/MCR (the two summaries swap MRC's and MCR's I counts) | ARM60 DS table 23 vs arm7tdmi-python docs/timing.md (from ARM's TRM) (DOC); timing.md C2 | | Coprocessors on the 3DO | (GBA: none) | none: every coprocessor instruction takes the undefined trap | 3DO devnotes (wiki, tier 3); MAME trace: 0 coprocessor instructions (OBSERVED) | ## The options weighed **A. An `arch` axis in arm7tdmi-python** (`ARM7TDMI` with a variant record: Thumb off, halfword and long-multiply rows off, the ARM6 multiplier, LATEABT, PROG32/DATA32 and the 26-bit modes on). For: the bus schedule, the per-cycle callback contract, the decode generator, the tools (disassembler, debugger, console, trace) and the 2.19 M-case gate are reused, and the variant gate is the same harness. Against: - the 26-bit modes are not a subtraction: they change how R15 is read (Rn gives PC only, Rm gives PC and PSR), how it is written (S-bit data processing and `LDM ^` restore the PSR bits through R15), mode switching, exception entry (link register gets the PSR bits), address checking and four new instructions; that touches the PSR module, every data-processing handler and the exception path of a certified core; - a variant test in the hot handlers is carried into arm7tdmi-rust and arm7tdmi-rust-fast, which the GBA board needs fast (its measured headroom is 34-40 M instructions/s native, arm7tdmi-rust docs/status.md), for a CPU (12.5 MHz) that needs no speed; - the readability contract (one chip per line; the hardware reason on the line) breaks where one handler documents two chips' multipliers and abort models; - the chip rule gives every CPU its own core; the ARM60 is a different chip. **B. Its own repository, written from the ARM60, ARM610 and DDI 0100E documents in arm7tdmi-python's shape.** Same tooling bar, same docs layout, same bus contract (one callback per cycle, N/S/I/C), decode tables generated from the data sheet's encoding summary. About 1,500 of arm7tdmi-python's 4,513 source lines are instruction semantics (arm946es-python's count); the ARMv3 subset of those is written again. **Recommended.** **C. Its own repository importing pure helpers from a pinned arm7tdmi-python** (barrel shifter, condition codes, register banking). Cheapest, but it couples two chips through underscore modules (`_alu`, `_modes`, `_psr`), so an ARM7 fix silently changes the ARM60 and 26-bit banking would bend the ARM7's. Not recommended. ## What B keeps from arm7tdmi-python - Its **shape**, tools and bus contract, so a board author meets one interface for both ARM cores of the family's older generation, and `nds-python`/`gba-python` habits carry over. - A **differential detector** (tier 5, two of our own specifications): arm7tdmi-python's SingleStepTests corpus, filtered to ARM-state cases whose instruction exists on ARMv3 and whose mode is not System, run through both cores, comparing results and bus cycles except MUL/MLA timing. Every disagreement must be on isa-v3.md's list of differences. It catches transcription slips in the shared subset cheaply. The corpus is read from `../arm7tdmi-python/reference/` (not re-fetched here: 840 MB). - Its **corners as questions, not answers**: where arm7tdmi-python records an ARM7TDMI behaviour (the LDM^ glitch, unaligned LDR rotation, MSR mode-change timing U14), the ARM60 answer is looked up afresh; on several only the ARM60 data sheet speaks. ## A second consumer An Acorn board (RiscPC: ARM610 under RISC OS 3.5-3.7, which runs in 26-bit modes; A5000 and earlier: ARM2/ARM3, ARMv2) would use this core's 26-bit modes; the ARM610 adds a cache, an MMU and CP15, which would be sockets or a variant here. No such board is planned.