Programming Example - GE DATANET-30 Programming Reference Manual

Hide thumbs Also See for DATANET-30:
Table of Contents

Advertisement

T for
T for
Inst.
Y1
Yz
Command
Command
Handler Number
Word 1
Word 3
WTD
0
2
WTB
2
3
0
0
1
.RTD
0
4
1
0
2
RTB
2
5
2
0
4
RBD
1
4
3
1
0
RBB
3
5
4
2
1
RWD
2
0
5
2
2
WEF
0
2
6
2
4
BKW
1
6
7
3
0
The above tables can be used when setting up the three command words. Before issuing the
command words to the tape controller, the command words are first transferred to memory
locations 3, 4, and 5.
A SEL instruction executes the transfer of the command words to the
magnetic tape controller.
When the command word instructions are coded, the above octal
coding is used as the operand.
Programming Example
The following example shows how to write 64-word records on magnetic tape handler 2 out of ,
location 500:
Symbol
OPR
Operand
Remarks
WTB
CSR
1
GET STATUS tINES
NBZ
READY
TAPE READY?
BZE
*-2
NO, GO BACK
LDB
lSTWD
GET COMMAND WORD 1
STB
3
STORE IN LOCATION 3
LDD
WD2,3
GET WORDS 2 AND 3
STD
4
STORE IN LOCATIONS 4 AND 5
SEL
SELECT PERIPHERAL
NIS
7
SELECT DONE?
BZE
~~-1
NO GO, WAIT
BRU
WTB
READY
OCT
000001
BIT 1 TO TEST READY
lSTWD
OCT
000201
COMMAND WORD 1
WD2,3
OCT
300500
COMMAND WORD 2
OCT
200100
COMMAND WORD 3
[ID£1f&~~lf CJ~®------------
V-49

Advertisement

Table of Contents
loading

Table of Contents