Statuses
| Status | Meaning | Which encodings |
|---|---|---|
documented | An encoding the sources read define | 85 mnemonics (fifteen branch names, NOP, 69 others) |
reserved | The bytes decode, but a field has no defined meaning | LDSR and STSR with a system register number other than 0 to 7, 24 and 25 (reserved in the NEC manual). SETF with bit 4 of the operand set is documented: the manual says the highest bit is ignored (until 2026-11-19 the viewer called it reserved) |
illegal | Undefined: the CPU takes the invalid-opcode exception (0xFFFFFF90) | Opcodes 0x1B, 0x32, 0x36; bit-string sub-opcodes 0x04–0x07 and 0x10–0x1F; extended sub-opcodes 0x01 and 0x0D–0x3F |
Counted over every first halfword with one second halfword (all 64 sub-opcodes for opcode 0x3E): 71,680 documented, 1,408 reserved, 56,960 illegal (before 2026-11-19, with SETF bit 4 counted as reserved: 71,168 and 1,920).
What the checks found
- Written tables (
test-v810-tables.mjs): the two hand-written tables agree with each other and with the decoder on 247,808 pairs: 1,465,856 checks, 0 failures. - The site’s small disassembler (
emulators.org/debugger/src/cpus/v810.js,test-v810-debugger.mjs): 271,360 pairs, 0 unexplained differences. Counted differences that are its choices: it prints.wordfor 69,248 undefined encodings (including the bit-string sub-opcodes0x10–0x1F); it callsSETFcondition 5Rand condition 13 nothing (oursTandF): 128; it printsXBandXHwith two operands: 2,048; it keeps bit 0 of an odd branch or jump displacement in the target: 12,032. - The site’s Virtual Boy core (
vb-core.js,test-v810-core.mjs): 313,206 instructions run from random states, 3,476,945 checks, 0 failures. Known difference: it does not clear bit 0 of an odd target (16,276 runs). The core does not model bit-strings, floating point,CAXI,TRAP,RETI,HALT, division by zero or the undefined opcodes, so those are checked by the tables only; its PSW is simplified, soLDSR/STSRof the PSW are not run. It is not an independent third party: it was written for the same site. - The demo ROM (
test-v810-demo.mjs): the 28 instructions and the reset vector of the 1 KiB program decode to what its assembler source says: 89 checks. - The effect lists of the multiply and divide instructions put the high word or the remainder in
r30(the core and the Mednafen summary agree). An early draft of our table said OV is always cleared byMUL; the Mednafen summary says it is set when the product does not fit, and the table was corrected.
Not described
Known, not yet covered
- Clock counts of the bit-string instructions: NEC Tables 5-12 (searches) and 5-13 and 5-14 (arithmetic types) depend on the string and the boundary conditions; they are not tabulated by the viewer. The other instructions’ counts (Table 5-11) are shown as the minimum with a cache hit, no hazard and no wait, with ranges where the manual gives them.
- The flags of
XB XH REV MPYHW: the Beetle core changes none; the NEC manual does not contain these four (their opcodes are-in Appendix B), and the Sacred Tech Scroll was not read. - Denormal handling in detail: the manual says a denormal operand raises the reserved-operand exception and that rounding is toward nearest; nothing beyond that is described.
Unknown
- The Sacred Tech Scroll. The NEC V810 Family 32-Bit Microprocessor Architecture User’s Manual (U10082EJ1V0UM00, 1995; the public PDF) has now been read as text and the opcodes, formats, flags, registers, cycle counts and exception tables here come from it. The Scroll link returned an HTML page and was not read, so
XB XH REV MPYHW(not in the NEC manual) andCLI/SEIdetails rest on the Beetle VB core. - No third-party disassembler. GNU binutils here has only the V850 family (
-m v810is refused) and llvm has no V810 target, so no independent V810 disassembler exists on this machine. The comparisons are against a table transcribed from the Beetle core, the site’s own debugger and core, and tables written by the same author. - NVC against V810. Whether the Virtual Boy’s NVC lacks or adds instructions compared with the plain V810 is not stated in the sources read (the Mednafen core enables
XB XH REV MPYHWonly in its Virtual Boy mode). The decoder has one variant. - What the silicon does with a non-zero unused field: the manual says an unused field “is reserved for future expansion and must be fixed to 0” (section 5.1); it does not say what happens otherwise. The decoder accepts any value there (the extended case adds a note).