On 29/01/2011 21:37, Tony Duell wrote:
IIRC, the Transputer is just plain weird here.
You have to build up the
instruction in an internal register before you exexute it (there are
opcodes that modify this instruction register in various ways). I think
the most common instructions can be loaded in 1 byte.
It's rather different to the multi-byte instructions on otehr processor
anyway.
-tony
A long time ago I wrote a Java JIT compiler for the Transputer and IIRC
the instructions are variable length in mutiples of 4 bits, with as Tony
points out the smallest being 8 bits. It also has 3 general purpose
The odd thing is that provide you have the right value in the (internal)
intruction register when you come to execte it, it doens't matter how you
got it there. So in genral there is no unique set of external
instrucitons for a given machine instruciton. There are various ways of
getting bit patterns in the instruciton regiaster.
The Transputer data sheets do not give the instruciton set IIRC. You
weren't supposed to need it, but rather to use the Occam compiler from
Inmos. There is a book something like 'The Transputer Instruction Set --
a Compilker Writer's Guide' which gives the instruciton set, etc. It's on
my bookshelf, I assume it's on a web site somwehrr...
-tony