HNDINT, HNDSVC 3. You are responsible for establishing proper entry and exit linkage
for your interruption handling routine.When your routine receives
control, the significant registers contain:0-1 2-3 4 14 15
contentsI/o-oIdPSW Channel status word (CSW) Address of interrupting device
Return address
Entry point addressYour routine must return control to the address in 14, and
indicate, via register 15, whether processing is complete. A0 in
register 15 means thatyou are through handling the interruption; any nonzero return code indicates that you expect another
interruption.
4. The interruption handling routine that you code should not performany I/O operations. When it is given control, all IIO interruptions and external interruptions are disabled.
If an error condition occurs, register 15 will contain one of the
following return codes: Invalid device address (cuu) or interruption handling routine
address (addr).
2 Trap item replaces another of same device name.
3 Attempting to clear a nonexisting interruption.
HNDSVCUse the HNDSVC macro
specific supervisor call
macro instruction is:
instruction to trap(SVC) instructions.
interruptions caused by
The format of theHNDSVC r -----, I [label] I {
SET, (svcnum,. address) [ ,. (svcnum, address)••• ] } I CLR,.svcnum[,.svcnum .•• ] , HNDSVC I , I [ , ERROR=erraddr] I L- label is an optional statement label. specifies that you want to trap SVcs of the specified
nu mber (s) .
sv cnum
address
specifies the number of theSVC you want to trap. SVC numbers
o through 200 and 206 through 255 are valid.
specifies the address of the routine in your program that
should receive control whenever the specifiedSVC is issued.
Section 6. Instructions 317
for your interruption handling routine.
control, the significant registers contain:
contents
Return address
Entry point address
indicate, via register 15, whether processing is complete. A
register 15 means that
interruption.
4. The interruption handling routine that you code should not perform
If an error condition occurs, register 15 will contain one of the
following return codes:
address (addr).
2 Trap item replaces another of same device name.
3 Attempting to clear a nonexisting interruption.
HNDSVC
specific supervisor call
macro instruction is:
instruction to trap
interruptions caused by
The format of the
SET, (svcnum,. address) [ ,. (svcnum, address)
nu mber (s) .
sv cnum
address
specifies the number of the
o through 200 and 206 through 255 are valid.
specifies the address of the routine in your program that
should receive control whenever the specified
Section 6.