uk.ac.man.cs.rainbow.simulator.rasm
Class Connect

java.lang.Object
  |
  +--uk.ac.man.cs.rainbow.simulator.Instruction
        |
        +--uk.ac.man.cs.rainbow.simulator.Instruction.MACRO
              |
              +--uk.ac.man.cs.rainbow.simulator.rasm.Connect
All Implemented Interfaces:
Serializable

public class Connect
extends Instruction.MACRO

Connect two channels together.

Makes the current thread into a connector that joins chanIdread and chanIdwrite.

It reads from chanIdread and writes to chanIdwrite in such a way as to make the to appear to be the same channel. This instruction is simulated by a stack clearout followed by jump to __MACROS__::connect - a call would be pointless, as this is a non-terminating instruction.

chanIdread chanIdwrite ?

See Also:
Serialized Form

Inner classes inherited from class uk.ac.man.cs.rainbow.simulator.Instruction
Instruction.MACRO
 
Constructor Summary
Connect()
           
Connect(RASMCode code)
           
 
Method Summary
protected  void definition(RASMCode code)
           
 String toString()
           
 
Methods inherited from class uk.ac.man.cs.rainbow.simulator.Instruction.MACRO
addSequence, execute, location
 
Methods inherited from class uk.ac.man.cs.rainbow.simulator.Instruction
addClass, getInstruction, getInstruction, getInstruction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Connect

public Connect()

Connect

public Connect(RASMCode code)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

definition

protected void definition(RASMCode code)
Overrides:
definition in class Instruction.MACRO