|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cornell.cs.sam.core.instructions.SamInstruction
edu.cornell.cs.sam.core.instructions.SamFloatInstruction
public abstract class SamFloatInstruction
All instructions with a floating point operand derive from this class
Field Summary | |
---|---|
protected float |
op
|
Fields inherited from class edu.cornell.cs.sam.core.instructions.SamInstruction |
---|
cpu, FBR, HALT, mem, name, PC, prog, SP, sys, video |
Constructor Summary | |
---|---|
SamFloatInstruction()
|
Method Summary | |
---|---|
float |
getOperand()
Get the floating point operand of this instruction |
void |
setOperand(float operand)
Set the floating point operand of this instruction |
java.lang.String |
toString()
Prints out the text that represents this SaM instruction |
Methods inherited from class edu.cornell.cs.sam.core.instructions.SamInstruction |
---|
exec, getName, getProgram, getSystem, setProgram, setSystem |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected float op
Constructor Detail |
---|
public SamFloatInstruction()
Method Detail |
---|
public java.lang.String toString()
Instruction
toString
in interface Instruction
toString
in class SamInstruction
public float getOperand()
public void setOperand(float operand)
operand
- The floating point operand
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |