Version 15 of Transputer

Updated 2007-05-23 22:54:16 by Zarutian

still under construction

http://en.wikipedia.org/wiki/Transputer

  A transputer is an device/emulator that runs Communicating Sequental Proccesses.

 (dreging info from http://svn.transterpreter.org/transterpreter/trunk/interpreter/dispatch_ins.c)

 stack based system
 instruction set is bytecode based with the distinction that
 first nybble is the main opcode and the second nybble is appended to
 an (unspecified long) operand register and the contents of that register is then taken as immideate operand.

  opcode: memnomic: description
   0x0     j         Jump — add immediate operand to instruction pointer.
   0x1     ldlp      Load Local Pointer — load a Workspace-relative pointer onto the top of the register stack
   0x2     pfix      Prefix — general way to increase lower nibble of following primary instruction
   0x3     ldnl      Load non-local — load a value offset from address at top of stack
   0x4     ldc       Load constant — load constant operand onto the top of the register stack
   0x5     ldnlp     Load Non-local pointer — Load address, offset from top of stack
   0x6     nfix      Negative prefix — general way to negate (and possibly increase) lower nibble
   0x7     ldl       Load Local — load value offset from Workspace
   0x8     adc       Add Constant — add constant operand to top of register stack
   0x9     call      Subroutine call — push instruction pointer and jump
   0xA     cj        Conditional jump — depending on value at top of register stack
   0xB     ajw       Adjust workspace — add operand to workspace pointer
   0xC     eqc       Equals constant — test if top of register stack equals constant operand
   0xD     stl       Store local - store at constant offset from workspace
   0xE     stnl      Store non-local - store at address offset from top of stack
   0xF     opr       Operate - general way to extend instruction set

  the instruction opr extends the instruction set by switching on the value of the operand register.

Catagory Concurrency