Games::NES::ROM::Format::INES - Loads data from a ROM in iNES format


Games-NES-ROM documentation  | view source Contained in the Games-NES-ROM distribution.

Index


NAME

Top

Games::NES::ROM::Format::INES - Loads data from a ROM in iNES format

DESCRIPTION

Top

This module loads the details of an NES rom in iNES format. An iNES file is layed out as follows:

    +-----------+-----------------+---------+---------+ Header
    | NES\0x01a | [PC] [CC] F6 F7 | X X X X | X X X X | 16 Bytes
    +-----------+-----------------+---------+---------+
    |                                                 |
    |           Trainer (512 Bytes; Optional)         |
    |                                                 |
    +-------------------------------------------------+
    |                                                 |
    |           PRG Banks (PC * 16384 Bytes)          |
    |                                                 |
    +-------------------------------------------------+
    |                                                 |
    |           CHR Banks (CC * 8192 Bytes)           |
    |                                                 |
    +-------------------------------------------------+
    |                                                 |
    |           Title (128 Bytes; Optional)           |
    |                                                 |
    +-------------------------------------------------+

    PC: PRG bank count
    CC: CHR bank count
    F6: Various flags (Byte 6)
    F7: Various flags (Byte 7)

METHODS

Top

BUILD( )

A Moose method which loads the ROM data from a file.

ATTRIBUTES

Top

Along with the base attributes, the following iNES specific attributes are available:

* id - iNES identifier: "NES\x1a"
* trainer - Trainer data, if available

SEE ALSO

Top

* Games::NES::ROM
* http://wiki.nesdev.com/w/index.php/INES

AUTHOR

Top

Brian Cassidy <bricas@cpan.org>

COPYRIGHT AND LICENSE

Top


Games-NES-ROM documentation  | view source Contained in the Games-NES-ROM distribution.