|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.monkeycoder.monkeynes.hardware.DmaManager
This class manages DMA activity within the system.
Originally part of the MonkeyNES project.
| Field Summary | |
static int |
REG_JOYSTICK_PORT_1
|
static int |
REG_JOYSTICK_PORT_2
|
static int |
REG_PPU_CONTROL_1
|
static int |
REG_PPU_CONTROL_2
|
static int |
REG_PPU_HORZ_VERT_SCROLL
|
static int |
REG_PPU_STATUS
|
static int |
REG_SPRITE_DATA
|
static int |
REG_SPRITE_PAGE_WRITE
|
static int |
REG_SPRITE_START_ADDRESS
|
static int |
REG_VRAM_DATA
|
static int |
REG_VRAM_START_ADDRESS
|
| Constructor Summary | |
DmaManager(NesHardware inNes)
Creates a new DmaManager. |
|
| Method Summary | |
void |
dmaJoyportRead(int inPortNum)
Used to read button values from a joystick port. |
void |
dmaJoyportWrite(int inPortNum)
Used to reset or clear a joystick port. |
void |
dmaPpuHorzVertScrollWrite()
Transfers the horizontal and then vertical scroll values into internal PPU registers. |
void |
dmaPpuStatusRead()
|
void |
dmaSetupSpriteWrite()
Sets up a byte-wise transfer to sprite memory. |
void |
dmaSpritePageWrite()
Transfers a full 256 byte page of main memory into sprite memory. |
void |
dmaSpriteWrite()
Transfers one byte at a time to the current address in sprite memory. |
void |
dmaVramRead()
Transfers one byte at a time from the current address in video memory. |
void |
dmaVramSetupAccess()
Sets up byte-wise access to video memory for reading or writing. |
void |
dmaVramWrite()
Transfers one byte at a time to the current address in video memory. |
void |
readManager(int inAddress)
This function takes the address of a main memory read and translates it into a dmaXXX() function call as appropriate. |
void |
writeManager(int inAddress)
This function takes the address of a main memory write and translates it into a dmaXXX() function call as appropriate. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int REG_PPU_CONTROL_1
public static final int REG_PPU_CONTROL_2
public static final int REG_PPU_STATUS
public static final int REG_SPRITE_START_ADDRESS
public static final int REG_SPRITE_DATA
public static final int REG_PPU_HORZ_VERT_SCROLL
public static final int REG_VRAM_START_ADDRESS
public static final int REG_VRAM_DATA
public static final int REG_SPRITE_PAGE_WRITE
public static final int REG_JOYSTICK_PORT_1
public static final int REG_JOYSTICK_PORT_2
| Constructor Detail |
public DmaManager(NesHardware inNes)
inNes - The NES hardware this DMA Manager will be managing.| Method Detail |
public void writeManager(int inAddress)
inAddress - The address of main memory that was written.public void readManager(int inAddress)
inAddress - The address of main memory that was written.public void dmaPpuStatusRead()
public void dmaSetupSpriteWrite()
public void dmaSpriteWrite()
public void dmaPpuHorzVertScrollWrite()
public void dmaSpritePageWrite()
public void dmaVramSetupAccess()
public void dmaVramWrite()
public void dmaVramRead()
public void dmaJoyportWrite(int inPortNum)
inPortNum - The joystick port for which the DMA was activated.public void dmaJoyportRead(int inPortNum)
inPortNum - The joystick port for which the DMA was activated.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||