Appendix
A.2 Specification of the WRITE instruction
FUN 238 Special module data write (WRITE)
Writes designated range of data into the special module.
Input | Execution output |
[ A WRITE B → | C ] |
Function
•This instruction transfers data stored in T3’s registers starting with operand A into the buffer memory of the special module that is designated by operand C.
• The destination address (buffer memory |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||
|
|
|
| Input |
|
|
| Action |
|
|
| Output |
| ERF | |||||||||||||||||||||
address) is designated by operand B. |
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||||||||||||
|
|
|
| OFF |
| No execution |
|
|
|
|
| OFF |
|
|
|
| |||||||||||||||||||
• The transfer size (number of words) is |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||||||||||||
|
|
|
| ON |
| Normal execution |
|
| ON |
|
|
|
| ||||||||||||||||||||||
designated by operand B+1. |
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||||||||||||
|
|
|
|
|
|
|
| Error (see Note 2) |
|
| ON |
|
| ON | |||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||||
Operand |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Index | |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Constant |
| |||
|
|
|
|
|
| Device |
|
|
|
|
|
|
|
|
|
|
| Register |
|
|
|
|
|
|
|
|
|
| |||||||
Opr | Name | X | Y | S | L | R | Z | T. | C. | I | O | XW | YW | SW | LW | RW | W | T | C |
| D | F | IW | O | I | J |
| K |
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| W |
|
|
|
|
|
| |
A | Top register |
|
|
|
|
|
|
|
|
|
| √ |
| √ |
| √ |
| √ |
| √ | √ | √ | √ |
| √ | √ |
|
|
|
|
|
|
|
| √ |
| of source |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
B | Transfer |
|
|
|
|
|
|
|
|
|
| √ |
| √ |
| √ |
| √ |
| √ | √ | √ | √ |
| √ | √ |
|
|
|
|
|
|
|
|
|
| parameter |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
C | Special |
|
|
|
|
|
|
|
|
|
| √ |
| √ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| √ | √ |
| module |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Program example
R0000
[ D0100 WRITE RW010 →
•When R0000 is ON, the register data of the size indicated by RW011, starting with D0100, are transferred to the buffer memory starting with the address indicated by RW010 of the special module allocated to YW002.
•The maximum number of words to be transferred is 256 words.
RW010 320 RW011 150
T3 | YW002 special module |
Buffer memory
D0100 1234
D0249 5678
WRITE | 320 | 1234 | |
|
|
|
|
150 words | 469 | 5678 |
62 ASCII Interface Module (AS311)