Apur-ee.245 net.games utcsrgv!utzoo!decvax!pur-ee!ghg Fri Feb 19 14:22:53 1982 nap() syscall for Pacman /* * nap() syscall. Stick in vmsys.c or sys4.c */ nap() { register struct a { int ticks; } *uap; register s = spl6(); uap = (struct a *)u.u_ap; timeout (wakeup, (caddr_t)u.u_procp+1, uap->ticks); sleep((caddr_t)u.u_procp+1, PZERO-1); splx(s); } # C library - nap (VAX) # # nap(ticks) where ticks is number of 1/60's of a second to sleep .set nap,118 .globl _nap .align 1 _nap: .word 0x0000 chmk $nap ret --Geo. Goble ----------------------------------------------------------------- gopher://quux.org/ conversion by John Goerzen of http://communication.ucsd.edu/A-News/ This Usenet Oldnews Archive article may be copied and distributed freely, provided: 1. There is no money collected for the text(s) of the articles. 2. The following notice remains appended to each copy: The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996 Bruce Jones, Henry Spencer, David Wiseman.