|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.monkeycoder.monkeynes.base.MemoryAccessMessage
This is a data transport class used as a message. It describes exactly
what memory was accessed and how.
Originally part of the MonkeyNES project.
| Field Summary | |
static int |
MEM_MAIN
|
static int |
MEM_SPRITE
|
static int |
MEM_VIDEO
|
static int |
TYPE_CLEAR
|
static int |
TYPE_NONE
|
static int |
TYPE_READ
|
static int |
TYPE_READ_RANGE
|
static int |
TYPE_READ_WORD
|
static int |
TYPE_WRITE
|
static int |
TYPE_WRITE_RANGE
|
static int |
TYPE_WRITE_WORD
|
| Constructor Summary | |
MemoryAccessMessage(int inMemBank,
int inType)
Creates a new MemoryAccessMessage for access messages with no specific address access. |
|
MemoryAccessMessage(int inMemBank,
int inType,
int inAddr)
Creates a new MemoryAccessMessage based on a single byte access. |
|
MemoryAccessMessage(int inMemBank,
int inType,
int inAddrStart,
int inAddrStop)
Creates a new MemoryAccessMessage based on a multiple byte access. |
|
| Method Summary | |
int |
getAddr()
For single byte access, this method returns the address of the accessed byte. |
int |
getAddrStart()
For multiple byte access, this method returns the start address of the accessed memory. |
int |
getAddrStop()
For multiple byte access, this method returns the stop address of the accessed memory. |
int |
getMemoryBank()
Returns which memory bank was accessed. |
int |
getType()
Returns the type of memory access that was performed. |
String |
toString()
Converts the data in this message to a string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int MEM_MAIN
public static final int MEM_VIDEO
public static final int MEM_SPRITE
public static final int TYPE_NONE
public static final int TYPE_CLEAR
public static final int TYPE_READ
public static final int TYPE_WRITE
public static final int TYPE_READ_WORD
public static final int TYPE_WRITE_WORD
public static final int TYPE_READ_RANGE
public static final int TYPE_WRITE_RANGE
| Constructor Detail |
public MemoryAccessMessage(int inMemBank,
int inType)
inMemBank - Which memory bank was accessed.inType - Type of access that was performed.
public MemoryAccessMessage(int inMemBank,
int inType,
int inAddr)
inMemBank - Which memory bank was accessed.inType - Type of access that was performed.inAddr - Address in memory that was accessed.
public MemoryAccessMessage(int inMemBank,
int inType,
int inAddrStart,
int inAddrStop)
inMemBank - Which memory bank was accessed.inType - Type of access that was performed.inAddrStart - The address where access began.inAddrStop - The address where access ended.| Method Detail |
public int getMemoryBank()
public int getType()
public int getAddr()
public int getAddrStart()
public int getAddrStop()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||