|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.monkeycoder.monkeynes.hardware.InesRomHeader
This class represents the INES format ROM header. It provides access to all
the data available in the header.
Originally part of the MonkeyNES project.
| Field Summary | |
static int |
CHR_PAGE_SIZE
|
static int |
PRG_PAGE_SIZE
|
| Constructor Summary | |
InesRomHeader(byte[] inRomHeader)
Creates an INES Header using the bytes passed in. |
|
| Method Summary | |
int |
getChrRomPageCount()
Gets the number of 8k pages of CHR-ROM data that are available. |
int |
getChrRomSize()
Gets the total size of the available CHR-ROM. |
int |
getMapperNumber()
Gets the number of the mapper in use by this cartrige. |
int |
getPrgRomPageCount()
Gets the number of 16k pages of PRG-ROM data that are available. |
int |
getPrgRomSize()
Gets the total size of the available PRG-ROM. |
boolean |
isFourScreenVram()
Gets whether or not there is 4-Screen VRam. |
boolean |
isHorzMirror()
Gets whether or not there is a Horizontal Mirror. |
boolean |
isSramEnabled()
Gets whether or not SRam is enabled. |
boolean |
isTrainerPresent()
Gets whether or not there is a trainer present. |
boolean |
isVertMirror()
Gets whether or not there is a Vertical Mirror. |
void |
setRomHeader(byte[] inRomHeader)
Sets the raw data of an INES Header using the bytes passed in. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int PRG_PAGE_SIZE
public static final int CHR_PAGE_SIZE
| Constructor Detail |
public InesRomHeader(byte[] inRomHeader)
inRomHeader - The raw INES header data.| Method Detail |
public void setRomHeader(byte[] inRomHeader)
inRomHeader - The raw INES header data.public int getPrgRomPageCount()
public int getPrgRomSize()
public int getChrRomPageCount()
public int getChrRomSize()
public int getMapperNumber()
public boolean isFourScreenVram()
public boolean isTrainerPresent()
public boolean isSramEnabled()
public boolean isVertMirror()
public boolean isHorzMirror()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||