SVC 47 (0A2F)

STIMER macro and STIMERM macro (SET option) is type 2, gets local and dispatcher locks.

For STIMER macro, GTF data is:
R15
No applicable data (old format only). Exit routine address (new format only).
R0
Contents:
Bytes
Contents
0
STIMER option byte, as follows:
     
0... .... Indicates old format parameters.
1... .... Indicates new format parameters.
.000 .... TUINTVL option.
.001 .... BINTVL option.
.010 .... MICVL option.
.011 .... DINTVL option.
.110 .... GMT option.
.111 .... TOD option.
.... 1... ERRET option. Control is returned because of errors. Register 15 is set to 8.
.... .0.. STIMER macro present.
.... ..00 Task request. Decrease the interval only when the task is active.
.... ..01 Wait request. Decrease the interval continuously and put the task in a wait state until the interval expires.
.... ..11 Real request. Decrease the interval continuously.
1-3
Exit address (old format only). No applicable data (new format only).
R1
Address of the time value.
Time Value - 4 or 8 bytes depending on option in force:
a.
DINTVL,TOD,MICVL, and GMT - 8 bytes; represents the time value.
b.
BINTVL and TUINTVL - 4 bytes; represents the time value.
R4
Points to requester's TCB.
R5
Points to the SVRB.
R7
Points to the ASCB.
R14
Contains the return address.
For STIMERM SET, GTF data is:
R0
Flag bytes formatted as follows:
Bytes
Contents
0
Flag bits as follows:
     
0000 0... Reserved; must be zero.
.... .1.. STIMERM macro present.
.... ..00 Reserved; must be zero.
1-3
Reserved; must be zero.
R1
Points to a 24-byte parameter list, which is formatted as follows:
Bytes
Contents
0
Flag bits, as follows:
     
0... .... Reserved; must be zero.
.000 .... TUINTVL option.
.001 .... BINTVL option.
.010 .... MICVL option.
.011 .... DINTVL option.
.110 .... GMT option.
.111 .... TOD option.
.... 1... ERRET option.
.... .0.. Reserved; must be zero.
.... ..01 WAIT=YES option.
.... ..11 WAIT=NO option.
1-2
Reserved; must be zero.
3
Level number of parameter list. Must be X'01'.
4-7
Address of requester's field in which the TQE id will be returned.
8-11
Address of time interval.
12-15
Address of user specified exit routine or zero.
16-19
Parameter value to be passed to exit routine or zero.
20-23
Reserved; must be zero.
R4
Points to requester's TCB.
R5
Points to the SVRB.
R7
Points to the ASCB.
R14
Contains the return address.