|
||||||||||
| 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
|
+--com.monkeycoder.monkeynes.hardware.mapper.MemoryMapperZero
This is an implementation of Mapper 0. Mapper 0 simply means
that there is no mapper in use.
Originally part of the MonkeyNES project.
| Field Summary |
| Fields inherited from class com.monkeycoder.monkeynes.hardware.mapper.MemoryMapper |
mainMem, rom, vidMem |
| Constructor Summary | |
MemoryMapperZero(NesMainMemory inMainMem,
NesVideoMemory inVidMem,
NesRom inRom)
Creates a new MemoryMapperZero. |
|
| Method Summary | |
void |
doCycle()
Called to tell the mapper to do a cycle. |
String |
getMapperDesc()
Returns the description of this mapper. |
String |
getMapperName()
Returns the name of this mapper. |
int |
getMapperNumber()
Returns the mapper number of this mapper. |
void |
powerOff()
Called to tell the mapper that power is now off. |
void |
powerOn()
Called to tell the mapper that power is now on. |
void |
reset()
Called to tell the mapper that a reset has occurred. |
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 com.monkeycoder.monkeynes.hardware.mapper.MemoryMapper |
getMainMemory, getRom, getVideoMemory, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MemoryMapperZero(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 int getMapperNumber()
MemoryMapper
getMapperNumber in class MemoryMapperpublic String getMapperName()
MemoryMapper
getMapperName in class MemoryMapperpublic String getMapperDesc()
MemoryMapper
getMapperDesc in class MemoryMapperpublic void powerOn()
MemoryMapper
powerOn in class MemoryMapperpublic void powerOff()
MemoryMapper
powerOff in class MemoryMapperpublic void reset()
MemoryMapper
reset in class MemoryMapperpublic void doCycle()
MemoryMapper
doCycle in class MemoryMapper
public boolean write(int inAddress,
int inValue)
MemoryMapper
write in class MemoryMapperinAddress - 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 | |||||||||