C# (RetroCore) sync backlog¶
The single ledger of nd500x changes not yet mirrored to the RetroCore C#
emulator. The per-fix detail docs are docs/SYNC-*.md in this repo and the
numbered items in the shared rolling file
$ND500_TESTDATA/retrocore-mon-fixes.md (C#-bound MON/CPU notes go THERE,
never as new docs inside the RetroCore repo).
Rules:
- APPEND one line here at the time of every nd500x commit that changes
CPU, MMU, trap, or MON behavior. Status starts as
open. - Mark
done(with the RetroCore commit) when the C# side has the fix; do not delete lines. - This file is the answer to "how far behind is C#" - if it cannot answer that, it has not been maintained.
Format: | date | nd500x commit | what changed | detail doc / shared-file item | status |
Ledger¶
| Date | nd500x commit | Change | Detail | Status |
|---|---|---|---|---|
| (pre-2026-08-08) | various | Float arithmetic fixes | docs/SYNC-FLOAT-ARITHMETIC-FIXES.md | done in C#, checked 2026-08-17 - the rebased codec (ReadOperandAsIeeeFloat/WriteOperandFromIeeeFloat) is used by 13 ND-500 files and every ARITHMETIC file is committed; no longer a name-level guess |
| (pre-2026-08-08) | various | Float native bias-256 rebase | docs/SYNC-FLOAT-NATIVE-REBASE.md | done in C#, checked 2026-08-17 - same codec, same files; the doc's "not yet committed pending regen" note is stale |
| (pre-2026-08-08) | various | MON 257B FOPEN present in SINTRAN L | docs/SYNC-MON-257B-FOPEN-PRESENT-IN-SINTRAN-L.md | done in C#, checked 2026-08-17 - MON_257_FOPEN.cs really searches file numbers 64..127 and writes FileNo/AccessCode/DevNo. Both emulators have since replaced the status-based MOINF with the SAME carved L07 MCTAB table, so the doc's step 1 (flip a status flag so MOINF reports 257B present) is superseded on BOTH sides |
| (pre-2026-08-08) | various | STRING wrong-instruction fixes | docs/SYNC-STRING-WRONG-INSTRUCTION-FIXES.md | done in C#, checked 2026-08-17 - Sscan/Sspan/Smatch/Scopt committed in a72d1f33f and Scpuno in 1defdb121; that later commit also shares one descriptor-address helper, which settles the doc's OPEN VERIFICATION ITEM (effective_address vs ReadOperandValue). The doc's "DONE (subagent), uncommitted" note is stale |
| 2026-08-08 | ndmonlib 97a2a22 + pointer bump |
MON 113B CLOCK returned tm_year % 100; now writes the full year. INFERRED, not proven |
shared-file item 13 | done - MON_113_CLOCK.cs:100 writes now.Year and carries the same "INFERRED, not proven" note |
| 2026-08-06 | 8a46aaf, 712ba00 |
SOLO/TUTTI: the 256-cycle DT timeout, DE on a non-ignorable trap inside PSD, and ignorable traps suppressed inside PSD | this file, SOLO/TUTTI section below | done in C# - RetroCore 13e9c0ef7: all four rules ported (repeat-SOLO no longer traps immediately and does not restart the clock; the 256-cycle DT timeout now exists at all - ProcessSwitchTimeoutCounter was written in two places and read in none; DE alongside a non-ignorable trap; ignorable traps suppressed while PSD). Timeout check runs BEFORE the ignorable check, mirroring cpu.c:768. Builds clean, full ND500 suite 2090 passed / 15 failed, all 15 pre-existing Windows-absolute-path lookups (E:\, D:\) that cannot resolve from WSL |
| 2026-08-09 | ea4ed54 |
nd500x bugs found by using the ND-5000 microcode as the oracle: a repeated SOLO restarted the timeout; TUTTI wrongly required privilege while SOLO did not; two blocks of invented prose in Solo.c. All fixed, test_solo_traps 12 -> 19 cases |
docs/SPEC-CORPUS-SOLO-TUTTI-DT-DE.md |
done (nd500x) |
| 2026-08-11 | ndmonlib 300B/301B | MON 300B EUSEL and 301B DUSEL implemented against ND-860228-2 p.442/p.490, and moved off the same NOT_IMPLEMENTED hard stop. The body pages settle an architecture split the overview tables get backwards: 300B/301B are the ND-100 form, 405B USTBRK the ND-500 form of one facility, over one per-terminal state |
shared-file item 18 | done in C# - RetroCore 33359efb8: both implemented against the same per-terminal state 405B uses, registered with parameter lists and status InProgress (the async ESCAPE->transfer is still undelivered on both sides). 405B's own status corrected Validated -> InProgress in the same commit. Builds clean |
| 2026-08-11 | ndmonlib 34f034d + registry status |
MON 405B USTRK implemented, and its registry entry moved off MON_STATUS_NOT_IMPLEMENTED, which mon_dispatch.c:173 enforces BEFORE the handler runs - the working handler was unreachable and 405B hard-stopped. Verified with ND500X_MONLOG=1: SUCCESS, and Nll: commands complete |
shared-file item 17 | done - C# handler already matched; SintranEmulation.Definitions.cs:313 corrected Validated -> InProgress. Open question in item 17: C# gates only on Handler == null and never consults the status flag, so the two dispatchers enforce different rules |
| 2026-08-17 | ndmonlib 2cddec3 + nd500x ccaff3c |
MON 50B/43B: a sequential-write (access 0) open resets this session's max byte pointer and CLOSE truncates the host file to it, carved from the SINTRAN L file system segment (SOFT@066123B sets it to -1 for access 0 alone; FCL2@070132B stores it into object entry word 62B). Open still does NOT truncate - mode is "r+b", never "wb". Also: three write handlers (2B, 24B, 504B) did not maintain the length, and the exit close-all path applied no length at all |
shared-file item 19 | done and VERIFIED in C# - RetroCore 80d107f12 on ethernet-ii-controller-fixes: builds with 0 errors, ND500 Sintran tests 152 passed / 0 failed. C# DID have the data-loss bug: OpenFileTable.GetFileOpenParams mapped access 0 to FileMode.Create. Now OpenOrCreate/ReadWrite plus a SeqWriteLength flag applied by the close-time SetLength that already served SMAX; WriteByte (which 2B/24B/504B all funnel through) and 120B WFILE both call the new OpenFileTable.NoteWrite. CloseAllForExit already routed through entry.Close(), so C# needed no separate exit-path fix. Two WSL traps found on the way, worth knowing for any future C# sync from this side: dotnet test cannot restore in WSL because the repo's NuGet configuration lists a Windows-only fallback folder (C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages), so run dotnet vstest against the built assembly instead; and an Access-denied writing into obj/ is transient locking by a Windows-side build, not a permission problem - a retry cleared it |
| 2026-08-17 | ndmonlib 7cdaff1 + nd500x 5c0d1ec |
Regression tests for the three bugs found today: MON 50B reporting 076B (not 056B) for a quoted create over an existing file; 2B OUTBT writes surviving the close-time truncation (a write path that forgets mon_file_note_write cuts its output to zero); and mon_console_take_pushback handing back the byte the ESCAPE poll peeked. Each proven to FAIL without its fix |
this file | both sides now - nd500x tests run green (ctest 39/39); the C# equivalents are RetroCore 44b74908f + 22890c6ca and they COMPILE AND PASS from WSL - 43/43, and the truncation case was checked by putting the bug back. C# coverage: all four SOLO/TUTTI rules, the access-0 open/close truncation semantics including the segment-mapped exemption, and MON 300B/301B with the stored-address-survives-OFF assertion |
| 2026-08-09 | n/a - corpus defect | tutti_Default expects IIC. TUTTI is not privileged; the expectation comes from a SYSTEM-class catch-all at ComprehensiveSystemGenerator.cs:805 and contradicts RetroCore's own Tutti.cs and TrapConditionSpec.cs:621. Quarantined in test_conformance.c |
docs/SPEC-CORPUS-SOLO-TUTTI-DT-DE.md |
fixed in C#, COMPILES (RetroCore e5d0bd3b5, verified in 365959a74): the SYSTEM catch-all now consults an explicit unprivileged set (TUTTI only - instructions.json has no privilege flag, so anything else would be a guess). CLOSED 2026-08-17: corpus regenerated from WSL and installed (nd500x e7a684e), and the set was completed to all four affected instructions - dcc, pcc and ddirt had the same catch-all expectation, with manual/control-store evidence that nd500x's quarantine already carried (RetroCore 672b89e0a). conformance_quarantine[] is now EMPTY; test_conformance reports 40,082 passed / 0 failed / 0 quarantined |
| 2026-09-15 | (this change, uncommitted at writing) | Monitor shell runs OLD-FORMAT domains (:PSEG+:DSEG via DESCRIPTION-FILE:DESC) directly: ndlib_load_old_domain stages them as a :DOM image; values reproduce CONVERT-DOM-A03 output byte for byte on two conversions; ENABLEINT->OTE is <<9 / >>23 from ONE non-zero witness |
docs/SYNC-OLD-FORMAT-DOMAIN-LOADER.md | open - C# reads :DOM only |
| 2026-09-18 | 22e855d |
Data status bits an instruction does not name are now reset (manual 6.5.1): the Z/S helpers clear C and O; "/", ABS, IXI, MUL4, DIV4, PWCONV, WPCONV, TSET, STZ, CLEBI, SETBI, PCOMP given the missing reset; SHR keeps K; float TEST clears C. Found by the corpus flag-preset twins (RetroCore 7c0170554) |
shared-file item 22 | ported |
| 2026-09-18 | 654d6d7 a23301c 486b367 053ef24 |
Microcode sweep findings, ruled on the manual and the B30 listing: DIV4 BY/H remainder zero-filled; F/D divide rounds by 7.2.7; float -0 store Z from the bit pattern, TEST -0 is Z only; SFILLN/SMOVN typed elements and Z=1 on m done, SFILL/SFILLN F/D fill from A/E:A, DR trap (new) on a start outside the string; string descriptors keep all 32 count bits. Corpus from RetroCore d21cd2bef |
shared-file item 23 | ported |
| 2026-09-18 | cb233b5 c594c1b |
Decimal instructions (chapter 17) rewritten from the manual: descriptor SGN 26-24 / SC 23-16 signed / FW 15-0 (was SC 23-18, FW 17-13), exact 31-digit arithmetic, scaling, rounding, BO keeping signed low digits, IVO on bad digits/signs and the scaling-difference restriction, DR on FW=0; 374 manual-derived vectors (RetroCore 0bad65b87) |
shared-file item 24 | ported |
| 2026-09-18 | 63ea9b4 |
FREEB takes the element's address (LADDR), not the word at it; register/constant element is IOS | shared-file item 25 | ported |
| 2026-09-18 | 4fa9f67 5192061 233c4cb ad812c8 29f4cf4 |
Found by the new manual-derived cases: CLR resets C/S/O; F INT/INTR read A (were reading I) and compute exactly; AXI 0**-n is IOV with the largest number (was IVO, 0); PSUM C is the adder carry (was set for every negative result); SMVWH Z=1 on source empty / dest full; SLOCA resets C/O | shared-file item 26 | ported |
| 2026-09-18 | ed40151 |
Special register stores/loads (CED CAD PS TOS THA OTE MTE CTE TEMM P =:, A1..A4 :=/=:) reset C and O; P=: stores the address of the P=: instruction | shared-file item 27 | ported |
| 2026-09-19 | 14a9000 |
F/D ADD SUB MUL DIV MULAD (all operand forms) exact with manual 7.2.7 rounding (were host IEEE); FO stores the largest value, FU a signed zero; exponent-0 divisor is DZ; MULAD two rounded steps; F COMP and F/D COMP2 are float compares (COMPF/COMP2F/COMP2D): Z/S from the exact difference, C=0, FU/FO cleared | shared-file item 28 | ported |
| 2026-09-19 | 2128f1f |
F SIN COS TAN ASIN ACOS ATAN ATAN2 EXP ALOG ALOG2 ALOG10 computed as the B30 microcode does (was host maths); SQRT exactly rounded; IVO exits per microcode; trap_invalid_operation sets the IVO status bit | shared-file item 29 | ported |
| 2026-09-19 | 74160d6 |
W WDUS is 0xFEE0..3 (was the H opcodes); PHYLADR ST,SAVA (Z,S; C,O reset) and IOS on a register operand; RWIP/RPGU reset S,C,O; RetroCore assembler encoded every RDUS as BI and WDUS H/W as BY | shared-file item 30 | ported |
| 2026-09-19 | 391fda5 |
SREGBL/LREGBL/SCNTXT/LCNTXT mask bits: bit 16 = STS (ST1+ST2), 17-23 = PS TOS LL HL THA CED CAD, 24 MIC, 25-28 OTE CTE MTE TEMM (were one bit too high from PS up); SREGBL does not reduce the mask | shared-file item 31 | ported |
| 2026-09-19 | e55ad84 |
LCNTXT: a nonzero address is the context block itself; only address 0 means (process+1)*400B + OS base (was always added) | shared-file item 31 | ported |
| 2026-09-19 | 7ef4249 |
SVERS stores the B30 version 0x00002E9A with ST,SAVA (was 0x00010000, C/O kept) | shared-file item 31 | ported |
| 2026-09-19 | a7bc95d |
PS := privileged, keeps PS high 16 bits, takes operand low 16, no status (was: all 32 bits, Z/S, any mode) | shared-file item 31 | ported |
| 2026-09-19 | 34c14b7 |
RPHS/WPHS status ST,SAVA on I1 (Z, S; C, O reset; was Z only) | shared-file item 31 | ported |
| 2026-09-19 | 9a1d2b4 |
D SIN COS TAN ASIN ACOS ATAN ATAN2 EXP ALOG ALOG2 ALOG10 computed as the B30 microcode does (was host maths): two-part argument reduction XREDU_D, POLLYD/RAPPD polynomials, exact DIV_64; one implementation for F and D; D SQRT confirmed correctly rounded | shared-file item 32 | ported |
| 2026-09-20 | f258df5 |
CPU reset clears the trap handler bookkeeping (in_trap_handler and the saved trap fields); a RETT after a reset was accepted as a handler return | shared-file item 34 | ported |
| 2026-09-20 | db5f731 |
Integer divide by zero as B30 DIV_INT leaves it, for / DIV2 DIV3 DIV4 UDIV: quotient = greatest value with the dividend's sign, 0 for 0/0 (was greatest positive), stored by all five (DIV2 DIV3 DIV4 UDIV stored nothing); Z S C O reset, then DZ with S or Z; DIV4 and UDIV remainder 0 | shared-file item 34 | ported |
| 2026-10-03 | 86c77be |
The five ACCP commands that return data answered with the measured bytes: RASTS, RSSYSPAR, PRGMVERS, RECO, READSELFT | this file | open - RetroCore already has these; nd500x was the side missing them |
| 2026-10-03 | 9a46727 |
ALIVE (037B) answered from the microprogram flip-flop in the dispatcher, not from the guard table, because the real card naks 7 from a hardware alive signal | this file | open - ported FROM RetroCore AccpCommandGuards.cs:75 |
| 2026-10-03 | a9406bc |
BMOVE must not abort on the host's run_flag. Only a trap or an aborted instruction stops the copy; testing run_flag made BMOVE a no-op whenever the embedding had not set it, and the swapper's copy wrote nothing | this file | open - RetroCore tests the trap state, so this closes a gap on the nd500x side only |
| 2026-10-03 | ba28998 |
Read ONE physical segment table, not two. Both MMU walks now agree on cpu->PSTP != 0 as the published-table test, so the PSN-rooted walk no longer fell back to the shadow table while the other walk used the guest's |
this file | open |
| 2026-10-03 | 8f0328c |
Diagnostic only, no behaviour change: NDBUS_POOL_WWATCH_BYTE names every non-CPU writer of an MPM-5 pool cell. Reads the environment directly, which the settings_no_getenv gate forbids in src/cpu and src/machine but does not cover in src/ndbus | this file | open - belongs in Nd500Settings if it stays |
| 2026-10-03 | 7b38055 |
ndbus_micfu_is_continue() / ndbus_micfu_is_start_class(): 3MONCO and 3TRACO resume the loaded process, 3START and MSG_STARTP0 never do. A monitor stop leaves through CALL_MON -> SET_IDLE, so the IDLE loop at 0o24724-25 skips CNTXTSAVE and CNTXTLOAD reads the block SINTRAN just filled |
this file | open - the RULE comes FROM RetroCore Nd5000CpuProcessBridge.cs, where it is env-gated as RETROCORE_ND5000_START_NOPROC; nd500x states it unconditionally |
Backlog state as of 2026-08-09 - AUDITED¶
The old "C# is far behind on CPU/MON fixes" claim is WRONG and has been withdrawn. It was recorded in 2026-07 and was never re-checked. RetroCore has been tracking nd500x closely and has its own explicit porting commits, for example "MON port: add the 27 handlers nd500x has and C# did not, plus the 46-vs-24 sweep" and "ND-500 SINTRAN: port the monitor calls nd500x implements, and CHAIN's IOV" (both 2026-07-30/08-03).
What the audit did¶
Took the 203 nd500x commits since 2026-07-01 touching src/cpu/instructions,
nd500_mmu.c, cpu.c, cpu_instr.c, nd500_domain.c, src/libmon or
external/ndmonlib. Dropped the ones with no distinctive identifier and the
NDIX/Windows/tty/debug-only ones, leaving 142. For each, checked whether its
distinctive tokens (instruction mnemonics, MON numbers) appear anywhere in the
RetroCore log since 2026-06-25. 124 of 142 matched. The 18 that did not
were then grepped against the RetroCore ND-500 source directly.
SOLO/TUTTI - read line by line against the manual, and it goes BOTH ways¶
An earlier version of this section claimed C# "only resets a counter" and had
no PSD at all. That was wrong - it came from grepping for
ProcessSwitchTimeoutCounter and missing regs.ST.PSD = true. Corrected
2026-08-09 by reading Solo.cs, Tutti.cs, every .PSD and every DT/DE
write in the solution, and checking each rule against
docs/ND-05.009.4 EN ND-500 Reference Manual.md ch.16.1-16.2 and ch.6.5.4
rather than against either emulator.
Both sides set PSD in SOLO and clear it in TUTTI. The differences:
| Manual rule (ch.16.1 / 6.5.4) | nd500x | C# |
|---|---|---|
| ">256 cycles with PSD set -> DT", privileged unlimited | yes, check_solo_timeout() cpu.c:1397, counts macroinstruction cycles per ch.16.1's ND-5000 wording |
no - ProcessSwitchTimeoutCounter is set to 0 in Solo.cs:66 / Tutti.cs:54 and read nowhere; nothing increments it |
| "Non-ignorable and fatal traps cause a disable process switch error trap" (DE) | yes, cpu.c:1266, raised alongside the provoking trap |
no - the only TrapCondition.DE in the solution is a test setting the flag |
| "Ignorable trap conditions are ignored in SOLO-TUTTI sequences regardless of enabling" | yes, check_pending_traps() returns early on PSD, cpu.c:1462 |
no - PSD is never read on the trap path |
| "Disable process switch timeout occurs if unprivileged users attempt to repeat SOLO's" | fixed ea4ed54 - the timer is no longer restarted, so the repeat trips the original deadline |
wrong - Solo.cs:53-58 raises DT immediately on a nested SOLO |
| TUTTI is not privileged | fixed ea4ed54 - the guard is gone |
correct - Tutti.cs never enforced it |
Settled by the ND-5000 control store, 2026-08-09, after this section first
got the repeat-SOLO rule wrong in both directions. SOLO_0 (004524) arms the
region by OR-ing a modus-register bit (004531/004532) and TUTTI_0 clears it
unconditionally (004536). An OR is a level set and there is NO counter reset
anywhere in the SOLO path, so the timer runs from the FIRST SOLO of a region -
ch.16.1's repeat sentence is that consequence, not a separate check. So:
- C# is wrong to trap immediately on the nested SOLO: that fires two cycles into a region the manual allows to run 256. Replace it with "do not restart the timer", which needs the timeout from row 1 to exist first.
- nd500x was wrong the other way and re-stamped its start marker on every SOLO, so unprivileged code could hold the process switch disabled forever. Fixed.
- Neither instruction is privileged (manual marks privileged ones with an
explicit "Privileged instruction" line; 16.1 and 16.2 have none, and TUTTI_0
has no PIA test). nd500x wrongly guarded TUTTI while leaving SOLO open -
fixed. C#'s code is right here; only its
Tutti.cscomment is wrong.
Full derivation, the microwords, and the corpus cases:
docs/SPEC-CORPUS-SOLO-TUTTI-DT-DE.md.
Spot-checked and genuinely mirrored¶
Of the other 17 no-token-match commits, these were read in the C# source and
are present, several citing the C fix by date:
IFKGO (Instructions/BRANCH/Ifkgo.cs branches from fi.StartAddress and
its comment names the 2026-07-09 C fix), ENTB
(Instructionset.BuddySystem.cs), MON 71B/72B DESCF/EESCF, MON 144B
MAGTP, MON 263B GDEVT, MON 321B UEADM, and MON 113B (above).
Limits of this audit - read before trusting a row¶
- A name match proves the subject was touched, not that the behavior agrees. That was the state of this audit on 2026-08-09: rows read "present in C# (name-level)", meaning the identifier existed in RetroCore and nothing more. Superseded 2026-08-17 - there are no name-level rows left. The four that carried that marker were opened and checked: the float rows against the actual codec calls and their commits, MON 257B against the handler body (and both MOINF implementations, which have since converged on the same carved L07 MCTAB), and the STRING row against five committed files plus the later refactor that settled its open verification item. Two of those docs still say the C# side is "uncommitted" or "pending regen"; both notes are stale, and the ledger rows now say so rather than the docs.
- Grepping for one identifier is not reading the code. The first version
of the SOLO/TUTTI finding was wrong in both directions - it claimed C# had
no PSD (it does) and missed that C# implements a rule nd500x lacks. The
error came from searching for
ProcessSwitchTimeoutCounterand treating three hits as the whole story. Open the file. - Not covered, because C# has no equivalent subsystem and should not: the
NDIX MON 600 front-end (
fecall,FE_READ,RETK), nd500x debug knobs (ND500X_NO_INVALID00,UDATADBG) and nd500x-only performance work (theTSBtranslation cache, decoder indexing). - Three MMU/CPU items were neither token-matched nor read, and are genuinely
unknown:
94a603cdemand-grow in PS_ADI mode,41cc67fscntxt/lcntxt accessing the context block physically, and43104bethe translation cache (which RetroCore has only noted as a "TLB aliasing hazard"). - RetroCore was audited at
ed00a037con branchethernet-ii-controller-fixes.
2026-09-25 - three flag defects found by the ND-5000 microword engine¶
The ND-5000 status-register unification (shared ledger item 82, in the rolling file named at the top of this document) made ST,LOAD the real macro-status write. Three flag rules in nd500x are wrong against both the decoded B30 control store and our own hand-written manual notes. All three are flag-only; no instruction's VALUE changes.
GETBFmust set Z = (extracted field == 0) and S = the field's LEFTMOST bit (bit fieldSize-1), and must CLEAR C and O. Today nd500x leaves the flags alone.docs/instructions/asm/getbf.mdalready states the rule.PUTBFS is the leftmost bit of the STORED FIELD, not the positioned field's bit 31.docs/instructions/asm/putbf.mdalready states the rule.st1 :=(load ST1) must load the condition flags out of the loaded word - Z bit 5, C bit 6, S bit 7, O bit 9 - because ST1 IS the status register. The store formst1 =:correctly leaves them alone (manual 16.8).
Also unported, and confirmed by audit on 2026-09-24 to need NO nd500x change: ledger items 39-81 are microword-engine internals (microword field decode, AAP delivery, EXUC sneak cycles, control-store addressing) with no counterpart in this repo's functional C.
Inline user buffer for the output monitor calls (2026-10-04)¶
Ported FROM the C# side, not to it - the reference already had this and this emulator did not, which is the whole of the string-corruption symptom. Nothing is owed to the C# side for the port itself.
One thing IS owed. The reference's perform_block_copy equivalent computes
high_half from the DESTINATION parity and then uses it to pick the SOURCE
half, in the odd-trailing-byte tail. That is a real one-byte defect and it is
shared by both emulators. It is not the string corruption - that was the
missing inline copy - but it is still wrong and still unfixed on both sides.
DDIRT at the manual's opcode 0xFFFA (2026-10-30)¶
nd500x now also runs DDIRT at 0xFFFA (ND-500 Reference Manual ND-05.009.4, section 16.11),
with the same handler as 0xFE1E (the opcode in the NDIX-C assembler tables). Rows added in
src/cpu/nd500_instructions.c; the handler is unchanged (a no-op without a cache). The
ND-5000 microcode maps both opcodes to the routine DCDUMP; which one the hardware uses is an
open question for the CPU designer. The C# emulator is owed the same second opcode, if it
does not have it (not checked).
PLCCN and ENTIER, settled parts only (2026-10-30)¶
nd500x now runs PLCCN (0xFFFD) and ENTIER (0xFDC7 F, 0xFDC8 D) from the manual's opcodes
(ND-05.009.4 sections 15.15 and 10.37). Rows and dispatch entries in
src/cpu/nd500_instructions.c, handlers in src/cpu/instructions/SYSTEM/Plccn.c and
src/cpu/instructions/FLOAT_MATH/Entier.c, and the decoder in src/cpu/cpu_instr.c
(operand_data_type) addresses the ENTIER destination as a word. PLCCN: N = u-l+1 (0 when
negative), A = a + 4*l, Z from N, S from N, O and C reset. ENTIER: floor, O when outside 32
bits (result clamped, no trap). Unsettled and marked in the handlers: PLCCN descriptor byte
offsets and S, ENTIER value on overflow. The C# emulator is owed the same, if it does not have
it (not checked). Test: test/test_plccn_entier.c.
allowedModes of instructions.json (2026-11-01)¶
docs/instructions/instructions.json: the allowedModes lists of 927 entries (1493 lists) went
from 6 modes to the 10 modes of the manual's Figure 29 (ND-05.009.4 8.2.1), by adding
LOCAL_POST_INDEXED, LOCAL_INDIRECT, LOCAL_INDIRECT_PI and ABSOLUTE_PI. The lists now equal the
output of nd500-opcodes. RIOM, RPHS and WPHS were left as they were (see items 9 and 10 in
docs/ND5000-87-EXTENSION-PLAN.md). Nothing else in the file changed. If the C# side reads
allowedModes, it is owed the same four modes on those operands (not checked).
C# emulator and the '87 extension, checked 2026-11-02¶
Searched the RetroCore checkout (Emulated.HW/ND/CPU/ND500/Instructions and the ND5000 and ND500UC packages). The functional CpuND500 has Clinit.cs, Clread.cs, Rext.cs, Wext.cs, Ddirt.cs, Rphs.cs and Wphs.cs, and has NO PLCCN and NO ENTIER (no source file, no dispatch entry). Emulated.Tests.ND500 Instructions/TestND500_GenerateComprehensiveTests.cs lists both in Extension1987Mnemonics, so the generators skip them and the shared corpus never had a case for them. Also found there: the comment in Instructions/SYSTEM/Pcc.cs gives PCC as hex 0xFFFD; the manual's PCC is 0xFF14 and 0xFFFD is PLCCN (not changed, not checked further). The C# side was owed PLCCN, ENTIER and DDIRT at 0xFFFA; all three are now added there (2026-11-02).
tools/gen_87_cases.py adds 35 cases named Ext87_* to test/nd500-conformance.json (PLCCN,
F and D ENTIER, DDIRT at 0xFFFA, CLINIT, CLREAD, and the privilege trap of REXT and WEXT), the same
way tools/gen_float_const_cases.py adds FConst_*. A corpus regenerated from the C# generators
would drop them; run both scripts again afterwards. test_corpus_coverage baselines: instructions
241 -> 247, opcodes 495 -> 509.