# The configurations: NVC (Virtual Boy) and µPD70732 (PC-FX) Keys as in [start-here.md](start-here.md). ## NVC, the Virtual Boy's CPU "A modified NEC V810 CPU called NVC" (DOC: STS "Specifications"): 16-bit bus, 20.0 MHz, 1 KiB instruction cache, made for Nintendo, 1995. "A handful of instructions were added by Nintendo, but otherwise the processor is the same as the stock V810." | Addition | Encoding | STS clocks | What (DOC: STS "Nintendo") | | --- | --- | --- | --- | | CLI | opcode 010110, format II | 12 | PSW.ID = 0 | | SEI | opcode 011110, format II | 12 | PSW.ID = 1 | | XB | VII sub-op 001000 | 6 | swap the two low bytes of reg2 | | XH | VII sub-op 001001 | 1 | swap the halfwords of reg2 | | REV | VII sub-op 001010 | 22 | reverse the bits (STS: "reg2 = ReverseBits(reg1)", and its prose says "the order of the bits in reg2": C6) | | MPYHW | VII sub-op 001100 | 9 | reg2 = reg2 x (reg1's low 17 bits sign-extended), 32-bit signed result | | sysreg 29 | | | 32 bits, read/write, meaning unknown | | sysreg 30 | | | read-only, 00000004h | | sysreg 31 | | | read/write; reads give the absolute value of the last word written | | PIR | | | 00005346h (ARCH 2.2.5 gives 0000810Xh for the family: C2) | - STS notes that NEC's V830 (1997) later used the CLI/SEI opcodes for EI/DI with 2-clock timing; and that "one source" says XB/XH need r0 in reg1, while no misbehaviour has been seen with other values (HYPOTHESIS: reg1 ignored). - **I/O instructions alias memory** on the Virtual Boy ("The I/O bus is mapped to the memory bus": STS). That is the board's decode (it ignores MRQ's memory/I-O distinction), not a CPU change: the core still issues IN/OUT as I/O-kind bus transactions. - The Virtual Boy's timer, game pad, link port and wait controller: STS describes them as separate "system components"; whether they sit on the NVC die is not stated (they stay in the board either way). ## µPD70732, the PC-FX's CPU The PC-FX uses an NEC V810 (DOC: PGN "V810 CPU"; trap15's pages link the V810 data sheet; the PC-FX_Info repository files the µPD70732 data sheet under the main board's parts). MAME 0.285 lists `maincpu` as "NEC V810 @ 21.47 MHz" (OBSERVED). PGN says "roughly 21MHz". 21.47727 MHz is 6 x 3.579545 MHz (the NTSC colour-burst multiple the PC Engine family uses); the exact crystal and divider are U17 (a board photo or the main-board schematic, not found tonight, would settle it). - **Stock instruction set**: no Nintendo additions are expected; what the PC-FX's CPU does with the NVC's opcodes is U7 (the invalid-instruction exception is the documented answer). - **Bus width: not established** (U4). The PC-FX's main RAM is 2 MB (DOC: PGN memory map); its DRAM parts (uPD424260, 256K x 16, in PC-FX_Info's main-board data sheets) would make a 32-bit bus with two chips per bank plausible (HYPOTHESIS). The core supports both modes, chosen by the board at reset, so the choice does not block the build. - **I/O space is used**: the PC-FX's chips sit in the V810's I/O map at 000-FFFh, with a memory-mapped alias at 80000000h and A0000000h-BFFFFFFFh (DOC: PGN "I/O Map", trap15 "Memory Map"). ## Elsewhere The V810 family (V805 with a 16-bit bus, V810, V820, V821; ARCH 1.2's product chart) shares this architecture; the V830 is a later, different pipeline. No configuration beyond the two above is built until a board asks (YAGNI).