# The 80C88 and what the board needs from i8086-python ## What the Portfolio has (DOC) - "an 80C88 MPU ... the CMOS static version which allows the MPU clock to be halted when no processing is taking place"; 4.9152 MHz; **minimum mode**, "so bus lock cannot be used" (TRG 2.1.1). The clock has a 50 % duty cycle and stops in halt mode (CCLK "high" during halt, TRG 2.6.2). - The TRG points expansion designers at "a microprocessor data sheet, ideally OKI MSM80C88ARS-2" (2.6.2). One secondary page names an Oki 80C88 in the machine (search result, not fetched; HYPOTHESIS until a board photo is seen). The OKI sheet (OKI Microprocessor Data Book 1988, `reference/docs/oki-mpu-1988.pdf`, book p.125-) says: the same processing speed as the NMOS 8088, "directly compatible with MSM80C86A software", DC to 5 MHz (-2: 8 MHz), static design, "4-bytes of instruction stream can be queued", bus-hold circuitry on the pins. - MAME 0.285 models it as its "Intel 8088" device at 4,915,200 Hz (`-listxml`, OBSERVED). ## The family's core `i8086-python` (`../i8086-python`, Phase 0 only, head `6dd7152`) is the CPU core: one execution model for 8086/8088/V20/V30, the 8088 as a constructor parameter (4-byte queue, 1-byte hole, 8-bit bus, every word access two bus cycles: ibmpc-python `docs/cpu-8088.md`, item 3). **No new core is needed.** What the Portfolio asks of it: 1. **The 8088 row, instruction level.** Intel's table timings with the 8088's +4 clocks per word transfer (i8086-python `docs/timing.md`) are enough for everything known to run on a Portfolio: no software is known to depend on bus-cycle timing, there is no DMA, no refresh (static RAM), no CRTC whose timing the CPU sees. The BIU rung ibmpc-python asks for (its open decision 1) is **not** needed here first. 2. **CMOS 80C88 behaviour = NMOS 8088 behaviour until evidence says otherwise (HYPOTHESIS, U1).** The hardware-captured corpora: SingleStepTests/8088 is an AMD D8088 (NMOS); SingleStepTests/8086 is an Intel P80C86A-2, a CMOS part (i8086-python `docs/undocumented-behavior.md`). No capture of a CMOS 8088 is known. The undocumented corners (flags of undefined results, `POP CS`, `SETMO`, REP + IDIV, the 60-6F aliases) could differ on a CMOS mask; where the 8088 and 80C86 corpora agree, the board takes the shared answer; where they differ, the 8088 row stands and the case is listed. 3. **HLT with a stopped clock.** The ASIC stops the clock when the CPU idles and "a custom chip interrupt will cause the clock to restart" (TRG 2.4.1). For the core this is an ordinary `HLT` plus `INTR`; for the board it means idle time costs nothing (domains.md). Whether the stop is triggered by `HLT` itself or by an ASIC register write (U6) is open; the 10-second MAME run executed no `HLT` (OBSERVED: the boot delay loop is a `LOOP`). 4. **Minimum mode.** No `LOCK` effect, no 8087 (no RQ/GT pins in minimum mode), no 8288. INTA is the CPU's own pin (IACK on the expansion port); the vector comes from the ASIC. 5. **HOLD/HLDA** reach the expansion port (HLDI, HLDO, HLDA): a peripheral may take the bus (TRG 2.6.2). No known peripheral does; a socket hook, not a Phase 1 feature. ## What the core already promises that the Portfolio uses `step()` returning table cycles, `set_intr()` with a vector callback, `set_nmi()`, a 20-bit memory and 16-bit port host interface (`read_byte`, `write_byte`, `read_port`, `write_port`). The Portfolio's ports sit at 8000-807F, so the 16-bit port space is used in full.