Enum AddressMode6502
- java.lang.Object
-
- java.lang.Enum<AddressMode6502>
-
- io.github.applecommander.disassembler.api.mos6502.AddressMode6502
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AddressMode6502>
public enum AddressMode6502 extends java.lang.Enum<AddressMode6502>
-
-
Field Summary
Fields Modifier and Type Field Description static AddressMode6502[]
MOS6502
static AddressMode6502[]
WDC65C02
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getInstructionFormat()
int
getInstructionLength()
boolean
isOperandAbsoluteAddress()
boolean
isOperandRelativeAddress()
static AddressMode6502
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AddressMode6502[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACC
public static final AddressMode6502 ACC
-
ABS
public static final AddressMode6502 ABS
-
ABSX
public static final AddressMode6502 ABSX
-
ABSY
public static final AddressMode6502 ABSY
-
IMM
public static final AddressMode6502 IMM
-
IMP
public static final AddressMode6502 IMP
-
IND
public static final AddressMode6502 IND
-
INDX
public static final AddressMode6502 INDX
-
INDY
public static final AddressMode6502 INDY
-
REL
public static final AddressMode6502 REL
-
ZP
public static final AddressMode6502 ZP
-
ZPX
public static final AddressMode6502 ZPX
-
ZPY
public static final AddressMode6502 ZPY
-
-
Field Detail
-
MOS6502
public static AddressMode6502[] MOS6502
-
WDC65C02
public static AddressMode6502[] WDC65C02
-
-
Method Detail
-
values
public static AddressMode6502[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AddressMode6502 c : AddressMode6502.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AddressMode6502 valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getInstructionLength
public int getInstructionLength()
-
getInstructionFormat
public java.lang.String getInstructionFormat()
-
isOperandAbsoluteAddress
public boolean isOperandAbsoluteAddress()
-
isOperandRelativeAddress
public boolean isOperandRelativeAddress()
-
-