87 extensions

From NDWiki
Jump to navigation Jump to search

The ND-5000 '87 extension is a set of 25 instructions that the ND-500 Reference Manual (ND-05.009.4, June 1987 edition) labels ('87 extension). They came with the ND-5000. The manual says they also run on ND-500/1 and ND-500/2 CPUs. The ND-5000 otherwise uses the same instructions as the ND-500.

Counts

Instructions Opcode entries Distinct opcodes
ND-500 base (not labelled '87) 229 1063 1033
'87 extension, already in the emulator's instruction data 23 34 34
All of the emulator's instruction data today 252 1097 1067
'87 extension, according to the manual 25 not counted 46
ND-5000 total, according to the manual (base + all '87) 254 not counted 1079

Opcode entries are the entries of the emulator's instruction data (what the emulator's tables call variants); distinct opcodes count each opcode value once, because some entries share an opcode. The base row assumes the instruction data holds every other instruction of the manual; that was not checked. Counts as of 2 November 2026.

The 25 instructions

Manual section Instruction What it does Manual page Opcodes (manual) Privileged
10.36 AMODB Integer modulo 158 0xFFBC to 0xFFC7 not stated
10.37 ENTIER SIMULA Entier function 159 0xFDC7, 0xFDC8 not stated
15.15 PLCCN Convert PLANC descriptor to ND-500 descriptor 268 0xFFFD not stated
15.16 NCPLC Convert ND-500 descriptor to PLANC descriptor 269 0xFFFE not stated
15.17 CLINIT Initialize local clock 270 0xFF1E yes
15.18 CLREAD Read local clock 271 0xFF1F not stated
16.11 DDIRT Dump 'Dirty' 285 0xFFFA not stated
16.26.1 RHOLE Read from NUCLEUS hole 301 0xFE9E not stated
16.26.2 WHOLE Write to NUCLEUS hole 302 0xFE9D not stated
16.26.3 SEND Send to port 303 0xB6 not stated
16.26.4 RECVE Receive from port 304 0xB7 not stated
16.27.1 SREGBL Save register block 307 0xFFF7 not stated
16.27.2 LREGBL Load register block 308 0xFFF6 not stated (see Notes)
16.27.3 SCNTXT Save context block 309 0xFFF9 yes
16.27.4 LCNTXT Load context block 310 0xFFF8 yes
16.28 REXT Read from device external to CPU 311 0xFFE8, 0xFFE9, 0xFFEA, 0xFFEB yes
16.29 WEXT Write to device external to CPU 312 0xFFEC, 0xFFED, 0xFFEE, 0xFFEF yes
16.30 TOSSP Special load of TOS 313 0xFE9F not stated
16.31 RPHS Read from physical segment 314 0xFFF5 yes
16.32 WPHS Write to physical segment 315 0xFFF4 yes
16.33 CAD Load CAD 316 0xFDBA yes
16.34 JUMPS Call supervisor 317 0xB9 not stated
16.35 SVERS Store microprogram version 318 0xFFFB not stated
16.36 SCPUNO Store CPU number 319 0xFFFC not stated
16.37 PHYLADR Get physical address 320 0xFFF0, 0xFFF1, 0xFFF2, 0xFFF3 not stated

Formats

As printed in the manual. In /r/W the letter after the first slash is the access (r = read, w = write) and the last is the data type (W = word). See the manual's section on operand notation.

  • AMODB: tn AMODB <operand1/r/t>,<operand2/r/t>
  • ENTIER: t ENTIER <source/r/t1>,<destination/w/w>
  • PLCCN: W PLCCN <source/r/W>,<destination/w/W>
  • NCPLC: W NCPLC <source/r/W>,<destination/w/W>
  • CLINIT: no format line in the manual; assembly notation CLINIT
  • CLREAD: no format line in the manual; assembly notation CLREAD
  • DDIRT: no format line in the manual; assembly notation DDIRT
  • RHOLE: BY RHOLE (<hole/r/by/I1>,<string/w/by/I2>)
  • WHOLE: BY WHOLE <string/r/by/I1>, <hole/w/by/I2>
  • SEND: W1 SEND <hole number/r/W>
  • RECVE: W1 RECVE <hole number/r/W>,<number of bytes/w/W>
  • SREGBL: SREGBL {mask/r/W}, {address/r/W}
  • LREGBL: LREGBL <mask/r/W>, <address/r/W>
  • SCNTXT: SCNTXT <mask/r/W>, <address/r/W>
  • LCNTXT: LCNTXT <mask/r/W>,<address/r/W>,<process number/r/W>
  • REXT: Wn REXT <device/r/W>
  • WEXT: Wn WEXT <device/r/W>
  • TOSSP: TOSSP := <operand/r/W>
  • RPHS: RPHS <domain number/r/W>
  • WPHS: WPHS <domain number/r/W>
  • CAD: CAD := <operand/r/W>
  • JUMPS: JUMPS <address/r/W>
  • SVERS: SVERS <destination/w/w>
  • SCPUNO: SCPUNO <destination/w>
  • PHYLADR: tn PHYLADR <operand/aa/W>

Notes

  • The manual's hex code column has misprints in places (could be OCR errors): FFCOH for AMODB (letter O; the octal column gives 0xFFC0), FF7CCH for SCPUNO (the octal column, 177774B, gives 0xFFFC), and WEXT without the trailing H. The octal column is used here.
  • The manual names some instructions differently in its contents list and code table than in the section headings: SNCTX and LNCTX for SCNTXT and LCNTXT, NPLC for NCPLC, RECV for RECVE. The section headings are used here.
  • "Not stated" in the Privileged column means the manual's entry has no "Privileged instruction" line. It does not mean the instruction is allowed in user mode. LREGBL is a special case: the manual says that in non-privileged mode it cannot change ST2, PS, CED, CAD, CTE, MTE and TEMM.
  • DDIRT is given as 0xFFFA by the manual. The assembler tables that came from the NDIX-C assembler have it at 0xFE1E, and the ND-5000 microcode maps both to the same routine (DCDUMP).
  • On the ND-5000 microcode used for study (MICRO-5800-B30) there is no routine for RHOLE, and the opcode of AMODB leads to the illegal-instruction stub.
  • PLCCN takes two operands in the manual. The June 1986 PLANC-500 assembler (version G) accepted it only with exactly three operands (measured by assembling test lines). Which is right for the ND-5000 is not settled.

Source

ND-500 Reference Manual ND-05.009.4, June 1987 edition; full manual text per instruction: https://retrocorelabs.github.io/nd500x/docs/ND5000-87-EXTENSION-INSTRUCTIONS/