Giter VIP home page Giter VIP logo

games-nes-rom's Introduction

NAME
    Games::NES::ROM - View information about an NES game from a ROM file

SYNOPSIS
        use Games::NES::ROM;
    
        # Read in the ROM without having to know its format
        my $rom = Games::NES::ROM->load( 'file.nes' );

        # Specifically read in an iNES file
        $rom = Games::NES::ROM::INES->new( filename => 'file.nes' );

        # Access the details
        print 'PRG Banks: ', $rom->prg_count, "\n";
        print 'CHR Banks: ', $rom->prg_count, "\n";
        # etc...
    
        # View the SHA-1 & CRC checksums
        print 'SHA1: ', $rom->sha1, "\n";
        print ' CRC: ', $rom->crc, "\n";

DESCRIPTION
    This module loads the details of an NES rom file. It is primarily meant
    to be used a base class for more specific file formats. Those formats
    include:

    *   Universal NES Image File (UNIF)

    *   iNES

INSTALLATION
        perl Makefile.PL
        make
        make test
        make install

METHODS
  load( $filename )
    Attemps to read the ROM structure into memory using all available file
    formats until success.

  prg_count( )
    Returns the number of PRG banks for this ROM.

  chr_count( )
    Returns the number of CHR banks for this ROM.

  sha1( )
    Returns the SHA-1 checksum for the PRG and CHR data.

  crc( )
    Returns the CRC checksum for the PRG and CHR data.

  sprite( $chr_bank, $index )
    Returns the raw (composite) sprite in the specified CHR bank at the
    specified array index.

BASE ATTRIBUTES
    The following base attributes are available for all file formats:

    *   filename - The filename from which data was loaded

    *   id - A string found at the beginning of a file to identify the file
        format

    *   title - The game's title, if available

    *   prg_banks - An arrayref of PRG bank data

    *   chr_banks - An arrayref of CHR bank data

    *   has_sram - Boolean value to determine if the ROM is battery backed

    *   mapper - A value indicating what memory mapper to use with the ROM

    *   mirroring - A value indicating what time of mirroring is used in the
        ROM

  NOTES
    *   mapper - iNES uses integer IDs, UNIF uses string IDs

    *   mirroring - An integer ID, using the UNIF list as a basis

    Each file format will have an extended set of attributes specific to its
    data structure. Please consult their documentation for more information.

SEE ALSO
    *   Games::NES::ROM::Format::INES

    *   Games::NES::ROM::Format::UNIF

AUTHOR
    Brian Cassidy <[email protected]>

COPYRIGHT AND LICENSE
    Copyright 2007-2013 by Brian Cassidy

    This library is free software; you can redistribute it and/or modify it
    under the same terms as Perl itself.

games-nes-rom's People

Contributors

bricas avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.