C G M R T W

C

Contents - class Contents.
This class generate the contents of the rombank file, just after the TOC.
Contents(RomsList) - Constructor for class Contents
This is the class constructor!

G

getSizePos(int) - Method in class TOC
This method returns the size of the rom in sectors and its offset in the rombank.

M

main(String[]) - Static method in class rombank
This is the main procedure...
menuName(int) - Method in class TOC
This method returns the Menu Name for every game.

R

RomsList - class RomsList.
This class encapsulates a directory filled of NES ROMs and provides methods for handling these ROMs.
RomsList(String) - Constructor for class RomsList
Class constructor.
romFileName(int) - Method in class RomsList
Returns the file name (plus extension, without the path) of the ROM pointed by index.
romFullFileName(int) - Method in class RomsList
Returns the full file name (plus path and extension) of the ROM pointed by index.
romReadData(int, byte[]) - Method in class RomsList
This methos reads the ROM's content to the array data[].
romSize(int) - Method in class RomsList
Returns the size (in bytes) of the ROM pointed by index.
rombank - class rombank.
This is the rombank Java Edtion Main Class.
rombank() - Constructor for class rombank
 
romsCount() - Method in class RomsList
Returns the roms count in the list.

T

TOC - class TOC.
This class implements the rombank Table Of Contents, which, according to Allan Blomquist is something like this: "The rombank format is really simple. the first part is a TOC with each game having a 32 byte entry. the first 28 bytes are the title of the game and the last 4 bytes are a 32 bit, little endian word, the lower 20 bits of which are the sector offset that the game starts at and the upper 12 bits are the size of the game in sectors (a sector is 0x800 bytes). terminate the TOC with an extra entry with the first byte of the title set to 255. then starting with the next sector after the TOC, you just put all the games. that's about all there is too it.
TOC(RomsList) - Constructor for class TOC
Class constructor.

W

writeContents(String) - Method in class Contents
Write the contents to the disk.
writeTOC(String) - Method in class TOC
This method write the TOC to the rombank file.

C G M R T W