Mercurial > hg > Members > kono > nitros9-code
view level2/modules/kernel/fid.asm @ 3295:6b7a7b233925 default tip
makefile: Allow PORTS with level1/2 mix
https://sourceforge.net/p/nitros9/feature-requests/10/
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Tue, 19 Apr 2022 18:12:17 +0200 |
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