Class InstructionSet6502Switching.Directive
- java.lang.Object
-
- io.github.applecommander.disassembler.api.switching6502.InstructionSet6502Switching.Directive
-
- All Implemented Interfaces:
Instruction
- Enclosing class:
- InstructionSet6502Switching
public static class InstructionSet6502Switching.Directive extends java.lang.Object implements Instruction
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
formatOperandWithLabel()
java.lang.String
formatOperandWithValue()
int
getAddress()
java.util.Optional<java.lang.String>
getAddressLabel()
byte[]
getBytes()
int
getLength()
java.lang.String
getOpcodeMnemonic()
int
getOperandValue()
static InstructionSet6502Switching.Directive
of(java.lang.String name, int address)
boolean
operandHasAddress()
void
setAddressLabel(java.lang.String label)
void
setOperandLabel(java.lang.String label)
-
-
-
Method Detail
-
of
public static InstructionSet6502Switching.Directive of(java.lang.String name, int address)
-
getAddress
public int getAddress()
- Specified by:
getAddress
in interfaceInstruction
-
getLength
public int getLength()
- Specified by:
getLength
in interfaceInstruction
-
getBytes
public byte[] getBytes()
- Specified by:
getBytes
in interfaceInstruction
-
getAddressLabel
public java.util.Optional<java.lang.String> getAddressLabel()
- Specified by:
getAddressLabel
in interfaceInstruction
-
setAddressLabel
public void setAddressLabel(java.lang.String label)
- Specified by:
setAddressLabel
in interfaceInstruction
-
getOpcodeMnemonic
public java.lang.String getOpcodeMnemonic()
- Specified by:
getOpcodeMnemonic
in interfaceInstruction
-
operandHasAddress
public boolean operandHasAddress()
- Specified by:
operandHasAddress
in interfaceInstruction
-
getOperandValue
public int getOperandValue()
- Specified by:
getOperandValue
in interfaceInstruction
-
setOperandLabel
public void setOperandLabel(java.lang.String label)
- Specified by:
setOperandLabel
in interfaceInstruction
-
formatOperandWithValue
public java.lang.String formatOperandWithValue()
- Specified by:
formatOperandWithValue
in interfaceInstruction
-
formatOperandWithLabel
public java.lang.String formatOperandWithLabel()
- Specified by:
formatOperandWithLabel
in interfaceInstruction
-
-