|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.monkeycoder.monkeynes.hardware.DefaultMemoryFilter
This class fulfills the MemoryFilter interface and does no translation
of values. Please note that MemoryFilters apply ONLY to single byte
reads and writes or byte range reads and writes. No filtering is done
for "word" reads or writes.
Originally part of the MonkeyNES project.
| Constructor Summary | |
DefaultMemoryFilter()
Creates a new DefaultMemoryFilter. |
|
| Method Summary | |
int |
getFilteredReadValue(int inAddress,
int inValue)
This function simply returns the value in memory at the requested address. |
int |
getFilteredWriteValue(int inAddress,
int inValue)
This function simply returns back the value passed in as the value to write. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultMemoryFilter()
| Method Detail |
public int getFilteredReadValue(int inAddress,
int inValue)
getFilteredReadValue in interface MemoryFilterinAddress - The address from which the value was read.inValue - A value already read from memory.
public int getFilteredWriteValue(int inAddress,
int inValue)
getFilteredWriteValue in interface MemoryFilterinAddress - The address of the requested value.inValue - The value that was going to be written.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||