Mercurial > hg > Members > kono > nitros9-code
view level2/modules/kernel/fgprdsc.asm @ 3146:e84cb928b2ef
Use modified w1-w6 window definitions on CoCo3FPGA
They are all 80x24 type 2 on this platform.
author | Bill Pierce <merlinious999@gmail.com> |
---|---|
date | Sat, 04 Feb 2017 18:33:07 +0100 |
parents | 039ddb7c8ad7 |
children |
line wrap: on
line source
************************************************** * System Call: F$GPrDsc * * Function: Get copy of process descriptor * * Input: A = Desired process ID * X = 512 byte buffer pointer * * Output: None * * Error: CC = C bit set; B = error code * FGPrDsc ldx <D.Proc Get current process dsc. ptr. ldb P$Task,x Get task number lda R$A,u Get requested process ID # os9 F$GProcP Get ptr to process to descriptor bcs L0962 Error, exit with it lda <D.SysTsk Get system task # leax ,y Point X to the process descriptor ldy #P$Size Y=Size of process descriptor (512 bytes) ldu R$X,u Get requested place to put copy of process dsc. os9 F$Move Move it into caller's space L0962 rts