Chapter 8 Register Structure
Sample program 8
To read Status Register
Slot No.
0 1
2
(for EHV-CPU)
EH-ETH2
- -
*
When SCRW is executed at R100=1, the value of Status Register will be putting on WM100 to WM10C.
R0
(00001)
To set s parameter area
The request of Status Register getting
(without handshake)
To set the target area (Unit 0, slot2)
To configure WM100 as the starting area of
source
To configure 13 words for sending size
R7E3
(00003)
(00002)
R100
To set execution bit by setting R0=1
SCRW command execution
Normal end procedure
Abnormal end procedure
SCRW (WR000, R100)
SR read
Request bit
R100
WR003 = H2
WR004 = H22F
DR005 = ADR (WM100)
WR007 = 13
R103
R101
R102
Normal
End flag
Execute
flag
Abnormal
end flag
Execute
flag
During
execution
R100
R104
R101
R102
Normal
end
R105
R101
R102
Abnormal
end
R0 = 0
:
Normal end procedure
:
R104
R0 = 0
:
Abnormal end procedure
:
R105
Normal
end
Abnormal
end
(00004)
(00005)
(00006)
(00007)
To detect SCRW command status
The process is normal completion
SCRW is in status of wait for instruction.
The process is abnormal completion
SCRW is in status of wait for instruction.
8-19