de.cau.cs.kieler.krep.compiler.klp
Class IMovInstruction

java.lang.Object
  extended by de.cau.cs.kieler.krep.compiler.klp.AbstractInstruction
      extended by de.cau.cs.kieler.krep.compiler.klp.IMovInstruction

public class IMovInstruction
extends AbstractInstruction

Immediate move.

Rating yellow
(2010-02-05) review by cmot, msp, tam

Constructor Summary
IMovInstruction(Variable toVar, boolean val)
          move boolean value to register.
IMovInstruction(Variable toVar, int val)
          move integer value to register.
 
Method Summary
 String toString()
           
 
Methods inherited from class de.cau.cs.kieler.krep.compiler.klp.AbstractInstruction
getComment, setComment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IMovInstruction

public IMovInstruction(Variable toVar,
                       int val)
move integer value to register.

Parameters:
toVar - register that stores the value
val - constant value to move

IMovInstruction

public IMovInstruction(Variable toVar,
                       boolean val)
move boolean value to register.

Parameters:
toVar - register that stores the value
val - constant value to move
Method Detail

toString

public String toString()
Specified by:
toString in class AbstractInstruction