|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.monkeycoder.monkeynes.hardware.NesOpCodeTable
This class contains every shred of information available about every
OpCode supported by the NES. Its arrays and helper functions are
intended for static access.
Originally part of the MonkeyNES project.
| Field Summary | |
static int[] |
bt_cycles
This is the Branch Taken extra cycles count. |
static int[] |
cycles
The base number of machine cycles each OpCode requires to complete. |
static int[] |
length
The length in bytes of each OpCode. |
static int[] |
mode
The mode in which each OpCode operates. |
static int |
MODE_ABSOLUTE
|
static int |
MODE_ABSOLUTE_X
|
static int |
MODE_ABSOLUTE_Y
|
static int |
MODE_ACCUMULATOR
|
static int |
MODE_COUNT
|
static int |
MODE_IMMEDIATE
|
static int |
MODE_IMPLIED
|
static int |
MODE_INDIRECT
|
static int |
MODE_INDIRECT_X
|
static int |
MODE_INDIRECT_Y
|
static int |
MODE_RELATIVE
|
static int |
MODE_UNKNOWN
|
static int |
MODE_ZERO_PAGE
|
static int |
MODE_ZERO_PAGE_X
|
static int |
MODE_ZERO_PAGE_Y
|
static String[] |
name
The 6502 assembly name of the OpCode. |
static int[] |
pb_cycles
This is the Page Boundry Crossing Extra Cycle Count. |
| Constructor Summary | |
NesOpCodeTable()
|
|
| Method Summary | |
static int |
getOpCodeBySyntax(String baseOp,
String params)
Returns the OpCode index value from a 6502 assembly statement based on the syntax of that statement. |
static String |
getParam(String in)
Returns just the actual hex value portion of a paramater from the full 6502 formatted parameter String. |
static String |
getSyntaxFormatted(int opCodeNum,
int inByte1,
int inByte2)
Produces a String containing the 6502 assembly language version of an OpCode and its parameters. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int MODE_UNKNOWN
public static final int MODE_IMPLIED
public static final int MODE_ACCUMULATOR
public static final int MODE_IMMEDIATE
public static final int MODE_ZERO_PAGE
public static final int MODE_ZERO_PAGE_X
public static final int MODE_ZERO_PAGE_Y
public static final int MODE_ABSOLUTE
public static final int MODE_ABSOLUTE_X
public static final int MODE_ABSOLUTE_Y
public static final int MODE_INDIRECT
public static final int MODE_INDIRECT_X
public static final int MODE_INDIRECT_Y
public static final int MODE_RELATIVE
public static final int MODE_COUNT
public static final String[] name
public static final int[] mode
public static final int[] length
public static final int[] cycles
public static final int[] pb_cycles
public static final int[] bt_cycles
| Constructor Detail |
public NesOpCodeTable()
| Method Detail |
public static String getSyntaxFormatted(int opCodeNum,
int inByte1,
int inByte2)
opCodeNum - The OpCode for which the 6502 assembly will be produced.inByte1 - The first byte of parameter data or 0 if there is no first parameter.inByte2 - The second byte of parameter data or 0 if there is no second parameter.
public static int getOpCodeBySyntax(String baseOp,
String params)
baseOp - The OpCode nane.params - The text of the params.
public static String getParam(String in)
in - The String to analyze.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||