ND Relocatable Format: Difference between revisions

From NDWiki
Jump to navigation Jump to search
(Beginning of NRF format explanation)
 
(Control numbers are octal, so mark them as such.)
 
(One intermediate revision by one other user not shown)
Line 12: Line 12:
! Control Number !! Mnemonic !! Trailing info !! Brief description
! Control Number !! Mnemonic !! Trailing info !! Brief description
|-
|-
| 0 || NUL || N || Symbol ignored
| 0<sub>8</sub> || NUL || N || Symbol ignored
|-
|-
| 1 || BEG || N || Beginning of module
| 1<sub>8</sub> || BEG || N || Beginning of module
|-
|-
| 2 || END || N || End of module
| 2<sub>8</sub> || END || N || End of module
|-
|-
| 3 || MSA || N || Main start address
| 3<sub>8</sub> || MSA || N || Main start address
|-
|-
| 4 || LIB || N, S || Library
| 4<sub>8</sub> || LIB || N, S || Library
|-
|-
| 5 || DEF || N, S || Program symbol definition
| 5<sub>8</sub> || DEF || N, S || Program symbol definition
|-
|-
| 6 || REF || N, S || Program reference
| 6<sub>8</sub> || REF || N, S || Program reference
|-
|-
| 7 || LRF || N, S || Library reference
| 7<sub>8</sub> || LRF || N, S || Library reference
|-
|-
| 10 || DDF || N, S || Data symbol definition
| 10<sub>8</sub> || DDF || N, S || Data symbol definition
|-
|-
| 11 || DRF || N, S || Data symbol reference
| 11<sub>8</sub> || DRF || N, S || Data symbol reference
|-
|-
| 12 || RMV || N, S || Remove symbol
| 12<sub>8</sub> || RMV || N, S || Remove symbol
|-
|-
| 13 || SLA || N, S || Set load address
| 13<sub>8</sub> || SLA || N, S || Set load address
|-
|-
| 14 || AJS || N || Adjust
| 14<sub>8</sub> || AJS || N || Adjust
|-
|-
| 15 || PMO || N || Set progam mode
| 15<sub>8</sub> || PMO || N || Set progam mode
|-
|-
| 16 || DMO || N || Set data mode
| 16<sub>8</sub> || DMO || N || Set data mode
|-
|-
| 17 || FMO || N, S || Set free mode
| 17<sub>8</sub> || FMO || N, S || Set free mode
|-
|-
| 20 || REP || N || Repeat
| 20<sub>8</sub> || REP || N || Repeat
|-
|-
| 21 || LDI || N || Load immediately
| 21<sub>8</sub> || LDI || N || Load immediately
|-
|-
| 22 || ADI || N || Add immediately
| 22<sub>8</sub> || ADI || N || Add immediately
|-
|-
| 23 || APA || N || Add program address
| 23<sub>8</sub> || APA || N || Add program address
|-
|-
| 24 || ADA || N || Add data address
| 24<sub>8</sub> || ADA || N || Add data address
|-
|-
| 25 || IHB || N || Execution inhibit (compiler errors)
| 25<sub>8</sub> || IHB || N || Execution inhibit (compiler errors)
|-
|-
| 26 || EOF || N || End of file
| 26<sub>8</sub> || EOF || N || End of file
|-
|-
| 27 || DBG || N || Debug
| 27<sub>8</sub> || DBG || N || Debug
|-
|-
| 30 || LBB || N, S || Library module bytepointer
| 30<sub>8</sub> || LBB || N, S || Library module bytepointer
|-
|-
| 31 || MSG || N, S || Message
| 31<sub>8</sub> || MSG || N, S || Message
|-
|-
| 32 || MIS || N || Miscellaneous
| 32<sub>8</sub> || MIS || N || Miscellaneous
|-
|-
| || || || 0 GCR0 Start of compound group
| || || || 0 GCR0 Start of compound group
Line 78: Line 78:
| || || || 5 DIV Divide by referenced value
| || || || 5 DIV Divide by referenced value
|-
|-
| 33 || LDN || N || Load N bytes immediately
| 33<sub>8</sub> || LDN || N || Load N bytes immediately
|-
|-
| 34 || IL1 || Illegal
| 34<sub>8</sub> || IL1 || Illegal
|-
|-
| 35 || IL2 || Illegal
| 35<sub>8</sub> || IL2 || Illegal
|-
|-
| 36 || IL3 || Illegal
| 36<sub>8</sub> || IL3 || Illegal
|-
|-
| 37 || IL4 || Illegal
| 37<sub>8</sub> || IL4 || Illegal
|}
|}
[[Category:Glossary]]

Latest revision as of 10:07, 25 May 2016

ND-500(0) compilers and the ND-500 assembler generate NRF files consisting of one or more NRF modules. The modules contain NRF control groups, which are NRF control numbers plus additional information.

NRF Control Numbers

  • N: Numeric Field
  • S: Symbolic Field
Summary of NRF control numbers
Control Number Mnemonic Trailing info Brief description
08 NUL N Symbol ignored
18 BEG N Beginning of module
28 END N End of module
38 MSA N Main start address
48 LIB N, S Library
58 DEF N, S Program symbol definition
68 REF N, S Program reference
78 LRF N, S Library reference
108 DDF N, S Data symbol definition
118 DRF N, S Data symbol reference
128 RMV N, S Remove symbol
138 SLA N, S Set load address
148 AJS N Adjust
158 PMO N Set progam mode
168 DMO N Set data mode
178 FMO N, S Set free mode
208 REP N Repeat
218 LDI N Load immediately
228 ADI N Add immediately
238 APA N Add program address
248 ADA N Add data address
258 IHB N Execution inhibit (compiler errors)
268 EOF N End of file
278 DBG N Debug
308 LBB N, S Library module bytepointer
318 MSG N, S Message
328 MIS N Miscellaneous
0 GCR0 Start of compound group
1 CGR1 End of compound group
2 ADD Add reference value
3 SUB Subtract reference value
4 MUL Multiply by referenced value
5 DIV Divide by referenced value
338 LDN N Load N bytes immediately
348 IL1 Illegal
358 IL2 Illegal
368 IL3 Illegal
378 IL4 Illegal