|
|
1.1 ! root 1: .pa 1 ! 2: .he 'INTR (II)'3/15/72'INTR (II)' ! 3: .ti 0 ! 4: NAME intr -- set interrupt handling ! 5: .s3 ! 6: .ti 0 ! 7: SYNOPSIS sys intr; arg / intr = 27. ! 8: .s3 ! 9: .nf ! 10: intr(label) ! 11: int *label; ! 12: .fi ! 13: .s3 ! 14: .ti 0 ! 15: DESCRIPTION When arg___ is 0, ! 16: interrupts (ASCII DELETE) are ignored. ! 17: When arg___ is 1, ! 18: interrupts cause their normal result, that is, force an exit____. ! 19: When arg___ is a location within the program, control is ! 20: transferred to that location when an interrupt occurs. ! 21: .s3 ! 22: After an interrupt is caught, it is possible to resume ! 23: execution by means of an rti___ instruction; however, great ! 24: care must be exercised, since ! 25: all I/O is terminated abruptly upon an interrupt. ! 26: In particular, reads of the typewriter tend to return ! 27: with 0 characters read, thus simulating an end of file. ! 28: .s3 ! 29: From C, the interface is slightly different. ! 30: An argument of 0 or 1 has the ! 31: afore-mentioned effect of suppressing and forcing termination on ! 32: interrupts respectively. ! 33: An argument which is a label causes control ! 34: to be sent to the label when an interrupt occurs; ! 35: however the stack is set to have the same value ! 36: as it did when intr____ was called; ! 37: thus control returns to the complete execution environment ! 38: pertaining at the time of the call to intr____. ! 39: It is an error to call intr____ in a subroutine ! 40: and return from that subroutine, since ! 41: if an interrupt occurs ! 42: control will be returned ! 43: to a non-existent ! 44: environment. ! 45: .s3 ! 46: It is not possible (with the C version of this call) ! 47: to resume execution after an interrupt. ! 48: .s3 ! 49: .ti 0 ! 50: SEE ALSO quit(II) ! 51: .s3 ! 52: .ti 0 ! 53: DIAGNOSTICS -- ! 54: .s3 ! 55: .ti 0 ! 56: BUGS --
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.