Newsgroups: comp.sys.transputer
From: andyr@wizzy.com (Andy Rabagliati)
Subject: Errors at high priority
Organization: W.Z.I.
Date: Sat, 19 Mar 1994 09:53:55 GMT
Message-ID: <CMwotw.Fw6@wizzy.com>

Sometimes, when debugging a transputer network, the system comes to a
halt without setting the error flag.

Investigation shows that a high priority process has hit an error
condition, stopped, but failed to raise the error flag.

The solution is to execute the following AT HIGH PRIORITY, early on in
your program. It will need the /w switch to compile.

ASM
  SETHALTERR
  
An example of its use is as follows.

Add extra handwaving for C :-)

Cheers,    Andy.


PRI PAR
  SEQ
    ASM
      SETHALTERR
    WHILE TRUE
      ALT
        channel1 ? x
	  SKIP
  SEQ
    init()
    WHILE TRUE
      ALT
        channel2 ? y
	  SKIP
	  

