WRLONG
Instruction: Write a long to main memory.
WRLONG Value, < # > Address
- Value (d-field) is the register containing the 32-bit value to write to main memory.
- Address (s-field) is a register or a 9-bit literal whose value is the main memory address to write to.
Opcode Table:
–INSTR– ZCRI –CON– –DEST– –SRC– | Z Result | C Result | Result | Clocks |
000010 000i 1111 ddddddddd sssssssss | — | — | Not Written | 8..23 |
Concise Truth Table:
In | Out | ||||||
Destination | Source | Z | C | Effects | Destination1 | Z2 | C |
$----_----; - | $----_----; - | - | - | wz wc | n/a | 0 | 0 |
1 Destination Out doesn't exist since including a WR effect would turn WRLONG into a RDLONG instruction.
2 The Z flag is always cleared (0) since the main memory address (bits 13:2) is always on a long boundary.
Explanation
WRLONG synchronizes to the Hub and writes the long in Value to main memory at Address.
The WR effect can not be used with WRLONG as that would change it to a RDLONG instruction.
WRLONG is a hub instruction. Hub instructions require 8 to 23 clock cycles to execute depending on the relation between the cog's hub access window and the instruction's moment of execution. See Hub for more information.
Unless otherwise noted, content on this site is licensed under the
Creative Commons Attribution-ShareAlike 4.0 International License.