All Packages Class Hierarchy This Package Previous Next Index
Class edsac.datatypes.ShortWord
java.lang.Object
|
+----edsac.datatypes.ShortWord
- public class ShortWord
- extends Object
-
ShortWord()
- Constructor methods
-
ShortWord(Character)
-
-
ShortWord(Character, boolean)
-
-
ShortWord(long)
-
-
ShortWord(LongWord)
-
-
fractValue()
- Return the value as a fraction -1 < x < 1
-
getAddress()
- Return the address part of this ShortWord, interpreted as an
instruction.
-
getOpcode()
- Return the opcode part of this ShortWord, interpreted as an
instruction.
-
intValue()
- Return the value in an integer
-
isLong()
- Return boolean to test if the command would refer to a long address
-
isLongOperation()
- Return whether this is an instruction dealing with LongWords
-
toString()
- Display information on the contents
ShortWord
public ShortWord()
- Constructor methods
ShortWord
public ShortWord(long i)
ShortWord
public ShortWord(Character i)
ShortWord
public ShortWord(Character i,
boolean top)
ShortWord
public ShortWord(LongWord i)
intValue
public int intValue()
- Return the value in an integer
getOpcode
public Character getOpcode()
- Return the opcode part of this ShortWord, interpreted as an
instruction.
getAddress
public Address getAddress()
- Return the address part of this ShortWord, interpreted as an
instruction.
isLongOperation
public boolean isLongOperation()
- Return whether this is an instruction dealing with LongWords
fractValue
public double fractValue()
- Return the value as a fraction -1 < x < 1
toString
public String toString()
- Display information on the contents
- Overrides:
- toString in class Object
isLong
public boolean isLong()
- Return boolean to test if the command would refer to a long address
All Packages Class Hierarchy This Package Previous Next Index