![Appendix](/images/new-backgrounds/149884/149884123x1.webp)
Appendix
A.1 Specification of the READ instruction
FUN 237 Special module data read (READ)
Reads designated range of data from the special module.
Input | Execution output |
[ A READ B → | C ] |
Function
•This instruction reads data from the buffer memory of the special module that is designated by operand A, and stores them in T3’s registers starting with operand C.
• The transfer source 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 | Special |
|
|
|
|
|
|
|
|
|
| √ |
|
| √ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| √ | √ |
| module |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
B | Transfer |
|
|
|
|
|
|
|
|
|
| √ |
|
| √ |
| √ |
| √ |
| √ | √ | √ | √ |
| √ | √ |
|
|
|
|
|
|
|
|
|
| parameter |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
C | Top register |
|
|
|
|
|
|
|
|
|
|
|
|
| √ |
| √ |
| √ |
| √ | √ | √ | √ |
| √ | √ |
|
|
|
|
|
|
|
| √ |
| of destination |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Program example |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||
| R0000 | [ XW000 READ RW010 → | D0100 ] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
•When R0000 is ON, the buffer memory data of the size indicated by RW011, starting with the address indicated by RW010 of the special module allocated to XW000, are read and stored in D0100 and after.
•The maximum number of words to be read is 256 words.
XW000 special module | T3 |
| RW010 |
Buffer memory | RW011 |
20
16
201234
355678
READ | D0100 | 1234 |
|
|
|
16 words | D0115 |
|
5678 |
60 ASCII Interface Module (AS311)