Newsgroups: comp.sys.transputer
From: schedan@eskimo.com (Daniel Scheurell)
Subject: Re: PEEK/POKE in OCCAM
Organization: Eskimo North (206) For-Ever
Date: 12 Mar 94 20:31:57 GMT
Message-ID: <CMKJpF.495@eskimo.com>

Lunness A P (lunna@essex.ac.uk) wrote:
: Hi,

:   I want to write a simple OCCAM program that allows you to peek/poke a transputer. It
: takes an address from a link, does the peek or poke and then issues the data back where
: there is any (ie PEEK). It's easy in C but how can you do this in OCCAM? I need to be
: able to access any address in memory.

: Cheers,
: Andy Lunness
: (lunna@sx.ac.uk)

The Occam PLACE statement can be used to place a variable a specific location
in memory.  I think this must be defined at compile time though.  For 
run-time, you could write a little PROC that takes the address and 
accesses it using a couple of ASM statements.  (I have one at work if 
you're interested).

--

Dan Scheurell
schedan@eskimo.com
schdj700@ccmail.iasl.ca.boeing.com

