Package mars.assembler.extended
Class OperandSubstitution
java.lang.Object
mars.assembler.extended.OperandSubstitution
- All Implemented Interfaces:
TemplateOperand
-
Constructor Summary
ConstructorsConstructorDescriptionOperandSubstitution(int operandIndex, List<OperandModifier> modifiers, OperandType originalType) -
Method Summary
Modifier and TypeMethodDescriptionapplyModifiers(Operand operand, int address) intgetType()withType(OperandType type)
-
Constructor Details
-
OperandSubstitution
public OperandSubstitution(int operandIndex, List<OperandModifier> modifiers, OperandType originalType)
-
-
Method Details
-
getOperandIndex
public int getOperandIndex() -
getModifiers
-
getType
- Specified by:
getTypein interfaceTemplateOperand
-
withType
- Specified by:
withTypein interfaceTemplateOperand
-
applyModifiers
-
resolve
- Specified by:
resolvein interfaceTemplateOperand
-