Package ru.ispras.microtesk.model
Class Immediate
- java.lang.Object
-
- ru.ispras.microtesk.model.IsaPrimitive
-
- ru.ispras.microtesk.model.Immediate
-
public final class Immediate extends IsaPrimitive
Immediate
is a primitive that describes immediate values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Immediate.Info
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TYPE_NAME
-
Fields inherited from class ru.ispras.microtesk.model.IsaPrimitive
modifier, terminal
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Location
access(ProcessingElement processingElement, TemporaryVariables temporaryVariables)
Returns the location the primitive object points to (when initialized with specific parameters).Type
getType()
java.lang.String
image(TemporaryVariables temporaryVariables)
Returns binary representation of the specified primitive.protected java.lang.String
syntax(TemporaryVariables temporaryVariables)
Returns assembly format of the specified primitive.-
Methods inherited from class ru.ispras.microtesk.model.IsaPrimitive
access, action, addArgument, annotate, decode, execute, getArguments, getCurrentOperation, getName, init, setLabelReference, text
-
-
-
-
Field Detail
-
TYPE_NAME
public static final java.lang.String TYPE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
syntax
protected java.lang.String syntax(TemporaryVariables temporaryVariables)
Description copied from class:IsaPrimitive
Returns assembly format of the specified primitive.Default implementation is provided to allow using primitives that have no explicitly specified syntax attribute. This method does not do any useful work and should never be called. It is needed only to let inherited classes compile.
- Overrides:
syntax
in classIsaPrimitive
- Parameters:
temporaryVariables
- temporary variables.- Returns:
- Assembly text.
-
image
public java.lang.String image(TemporaryVariables temporaryVariables)
Description copied from class:IsaPrimitive
Returns binary representation of the specified primitive.Default implementation is provided to allow using primitives that have no explicitly specified image attribute. This method does not do any useful work and should never be called. It is needed only to let inherited classes compile.
- Overrides:
image
in classIsaPrimitive
- Parameters:
temporaryVariables
- temporary variables.- Returns:
- Binary text.
-
access
public Location access(ProcessingElement processingElement, TemporaryVariables temporaryVariables)
Description copied from class:IsaPrimitive
Returns the location the primitive object points to (when initialized with specific parameters). Applicable only to addressing modes that have a return expression.Default implementation is provided to allow using primitives that do not have a return expression. This method does not do any useful work and should never be called. It is needed only to let inherited classes compile.
- Overrides:
access
in classIsaPrimitive
- Parameters:
processingElement
- Processing element instance.temporaryVariables
- Temporary variables.- Returns:
- Memory location.
-
getType
public Type getType()
-
-