Destination register: Difference between revisions

From NDWiki
Jump to navigation Jump to search
(Destination Register description (for ROP instructions)))
 
(Fixed MAC mnemonics (cut&paste error))
 
Line 6: Line 6:
! [[MAC]] mnemonic !! Register name !! Value !! Octal value to add to ROP instruction
! [[MAC]] mnemonic !! Register name !! Value !! Octal value to add to ROP instruction
|-
|-
| SD || D register || 1 || 1<sub><small>8</small></sub>
| DD || D register || 1 || 1<sub><small>8</small></sub>
|-
|-
| SP || Program counter || 2 || 2<sub><small>8</small></sub>
| DP || Program counter || 2 || 2<sub><small>8</small></sub>
|-
|-
| SB || B register || 3 || 3<sub><small>8</small></sub>
| DB || B register || 3 || 3<sub><small>8</small></sub>
|-
|-
| SL || L register || 4 || 4<sub><small>8</small></sub>
| DL || L register || 4 || 4<sub><small>8</small></sub>
|-
|-
| SA || A register || 5 || 5<sub><small>8</small></sub>
| DA || A register || 5 || 5<sub><small>8</small></sub>
|-
|-
| ST || T register || 6 || 6<sub><small>8</small></sub>
| DT || T register || 6 || 6<sub><small>8</small></sub>
|-
|-
| SX || X register || 7 || 7<sub><small>8</small></sub>
| DX || X register || 7 || 7<sub><small>8</small></sub>
|}
|}



Latest revision as of 08:29, 14 February 2019

Destination register (abbr. <dr>) is encoded in bits 2..0 of Register Operation (ROP) instructions.

The destination registers are specified as follows:

MAC mnemonic Register name Value Octal value to add to ROP instruction
DD D register 1 18
DP Program counter 2 28
DB B register 3 38
DL L register 4 48
DA A register 5 58
DT T register 6 68
DX X register 7 78

If no destination register is specified (value: 0) the instruction is normally transformed to a NOP (no-operation). EXIT, EXR, RDIV, MIX3 are exceptions to this and RADD clears the carry indicator (C) only.

References