|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.monkeycoder.monkeynes.hardware.mapper.MemoryMapper
This is the abstract superclass of all hardware mappers. There are
supposedly hundreds of them.
Originally part of the MonkeyNES project.
| Field Summary | |
protected NesMainMemory |
mainMem
|
protected NesRom |
rom
|
protected NesVideoMemory |
vidMem
|
| Constructor Summary | |
protected |
MemoryMapper(NesMainMemory inMainMem,
NesVideoMemory inVidMem,
NesRom inRom)
Creates a new MemoryMapper. |
| Method Summary | |
abstract void |
doCycle()
Called to tell the mapper to do a cycle. |
NesMainMemory |
getMainMemory()
Returns a reference to the main memory bank this mapper is using. |
abstract String |
getMapperDesc()
Returns the description of this mapper. |
abstract String |
getMapperName()
Returns the name of this mapper. |
abstract int |
getMapperNumber()
Returns the mapper number of this mapper. |
NesRom |
getRom()
Returns a reference to the ROM this mapper is using. |
NesVideoMemory |
getVideoMemory()
Returns a reference to the video memory bank this mapper is using. |
abstract void |
powerOff()
Called to tell the mapper that power is now off. |
abstract void |
powerOn()
Called to tell the mapper that power is now on. |
abstract void |
reset()
Called to tell the mapper that a reset has occurred. |
String |
toString()
Converts the data in this mapper to a string. |
abstract boolean |
write(int inAddress,
int inValue)
Called to indicate to the mapper that a specific address in memory was written to. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected NesMainMemory mainMem
protected NesVideoMemory vidMem
protected NesRom rom
| Constructor Detail |
protected MemoryMapper(NesMainMemory inMainMem,
NesVideoMemory inVidMem,
NesRom inRom)
inMainMem - Main memory bank accessed by this mapper.inVidMem - Video memory bank accessed by this mapper.inRom - ROM accessed by this mapper.| Method Detail |
public NesMainMemory getMainMemory()
public NesVideoMemory getVideoMemory()
public NesRom getRom()
public String toString()
toString in class Objectpublic abstract int getMapperNumber()
public abstract String getMapperName()
public abstract String getMapperDesc()
public abstract void powerOn()
public abstract void powerOff()
public abstract void reset()
public abstract void doCycle()
public abstract boolean write(int inAddress,
int inValue)
inAddress - The address of main memory that was written.inValue - The value that will be written to main memory.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||