1345
|
1 **************************************************
|
|
2 * System Call: F$GPrDsc
|
|
3 *
|
|
4 * Function: Get copy of process descriptor
|
|
5 *
|
|
6 * Input: A = Desired process ID
|
|
7 * X = 512 byte buffer pointer
|
|
8 *
|
|
9 * Output: None
|
|
10 *
|
|
11 * Error: CC = C bit set; B = error code
|
|
12 *
|
1145
|
13 FGPrDsc ldx <D.Proc Get current process dsc. ptr.
|
|
14 ldb P$Task,x Get task number
|
|
15 lda R$A,u Get requested process ID #
|
|
16 os9 F$GProcP Get ptr to process to descriptor
|
|
17 bcs L0962 Error, exit with it
|
|
18 lda <D.SysTsk Get system task #
|
|
19 leax ,y Point X to the process descriptor
|
|
20 ldy #P$Size Y=Size of process descriptor (512 bytes)
|
|
21 ldu R$X,u Get requested place to put copy of process dsc.
|
|
22 os9 F$Move Move it into caller's space
|
|
23 L0962 rts
|