Toshiba AS311 Benutzerhandbuch

Seite von 66
60
 
ASCII Interface Module (AS311) 
 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 
address) is designated by operand B. 
• 
The transfer size (number of words) is 
designated by operand B+1. 
 
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    
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       20 
 
 
 Buffer memory 
 
 
 
RW011       16 
 
 
 
  20   1234   
 
READ   
D0100     1234 
 
 
 
  35   5678   
           16 words   
D0115     5678 
Input Action Output 
ERF 
OFF No 
execution 
OFF 
 
ON Normal 
execution 
ON 
 
 
Error (see Note 2) 
ON 
ON