Newsgroups: comp.sys.transputer
From: ifunltd@xs1.xs4all.nl (ifunltd)
Subject: Re: Reading of Wdesc with occam ASM
Organization: XS4ALL, networking for the masses
Date: 24 Nov 1994 06:20:31 GMT
Message-ID: <3b1bbf$3m8@news.xs4all.nl>

Oyvind Teig (teig@autro1.UUCP) wrote:
: Reading of Wdesc on T2, T4 and T8

: Is it possible to read Wdesc with occam ASM?
: My answer is that I can read Wptr, and make a new Wdesc,
: but not read Wdesc. Is this correct?

yes, when you load local pointer 0, you have Wptr and the last bit,
indicating the priority of your running process, is masked. But it
is possible to read the current priority in a separate instruction
(I forgot which one, look in the instruction set), and add it to 
the Wptr. Then you have a complete Wdesc.

JANG (IF UnLtd)

