view level2/modules/kernel/fid.asm @ 1624:bb75784a1ec5

Minor source change by Rodney H.
author boisy
date Wed, 30 Jun 2004 01:07:36 +0000
parents ca83286ded5b
children
line wrap: on
line source

**************************************************
* System Call: F$ID
*
* Function: Return's caller's process ID
*
* Input:  None
*
* Output: A = Caller's process ID
*         Y = User ID
*
* Error:  CC = C bit set; B = error code
*
FID      ldx   <D.Proc      get current process pointer
         lda   P$ID,x       get ID
         sta   R$A,u        save it
         ldd   P$User,x     get user #
         std   R$Y,u        save it
         clrb               clear error
         rts