NAME

Games::NES::Emulator::Mapper - Base class for mappers

SYNOPSIS

DESCRIPTION

METHODS

init( )

read( $address )

Reads $address from the CPU's memory.

write( $address => $data )

The base mapper doesn't actually do any writes.

swap_prg_8k( $offset, $bank )

Swap an 8K bank of PRGROM into the CPU's memory.

swap_prg_16k( $offset, $bank )

Swap a 16K bank of PRGROM into the CPU's memory.

swap_prg_32k( $bank )

Swap a 32K bank of PRGROM into the CPU's memory.

swap_chr_1k( $offset, $bank )

Swap a 1k bank of CHRROM into the PPU's memory

swap_chr_2k( $offset, $bank )

Swap a 2k bank of CHRROM into the PPU's memory

swap_chr_4k( $offset, $bank )

Swap a 4k bank of CHRROM into the PPU's memory

swap_chr_8k( $bank )

Swap an 8k bank of CHRROM into the PPU's memory

AUTHOR

Brian Cassidy <bricas@cpan.org>

COPYRIGHT AND LICENSE

Copyright 2007 by Brian Cassidy

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

SEE ALSO