I have been following Johnny's and Ian's discussion, but since I know
so little about the internals of RSX-11 and VMS, I have not commented.
This comment is only to note that I suggest a more careful look at
the code used for C$SISP.
>Johnny Billquist wrote:
I was looking in RMONFB.MAC.
C$SIGN almost immediately do an EMT 374, which ends up in USR.
What am I missing?
.CSIGEN (C$SIGN:) purges all channels before prompting for a new
command and opening files. Thus, it begins with a loop to purge
channels. Control is passed to the USR only if a *new* file is open on
a "special device", such as magtape or cassette. (In fact, "special
devices" have their own built-in ACPs and can be called without using
the USR, but that's a complication I've been avoiding introducing
here.)
Note, .CSISPC (C$SISP:) does not purge or open files.
Must be looking at different versions of something, this is C$SIGN:
from RMONFB:
.SBTTL .CSIGEN AND .CSISPC - CSI CALL EMTS
.ENABL LSB
C$SIGN: CLR R4
MOV (PC)+,R0
.BYTE 8.,3
10$: EMT 374
DECB R0
BGE 10$
BR 11$
C$SISP: MOV #100000,R4
11$: BIS #CSIRN$,@R5
MOV #CSI.$,R2
MOVB JOBNUM,R3
BEQ 15$
BIS #GTLIN$,@#JSW
15$: TST @R1
BEQ 20$
JMP EMTUSR
20$: INCB R4
CMPB USROWN,R3
BNE 30$
INCB USRLVL
CSIERR::CLRB R4
BISB USRLVL,R4
CALL RIDUSR
30$:
If I remember right, this is from RT-11 V5.5, so it might be that
things got changed after that?
If the code is inspected carefully, it can be seen that the
C$SISP sets a flag in R4 differently from the flag set in
R4 byC$SIGN. In addition, the files on channels 0 to 8
are NOT purged prior to the common code starting at
label 11$:
At least that is my understanding of the above example.
Jerome Fine