| Games-NES-Emulator documentation | Contained in the Games-NES-Emulator distribution. |
Games::NES::Emulator::PPU::Memory - NES VRAM
Brian Cassidy <bricas@cpan.org>
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.
| Games-NES-Emulator documentation | Contained in the Games-NES-Emulator distribution. |
package Games::NES::Emulator::PPU::Memory; use strict; use warnings; use base qw( Class::Accessor::Fast ); __PACKAGE__->mk_accessors( qw( memory palette name_table increment ) );
sub init { my( $self ) = @_; $self->memory( [ (0) x ( 0x2000 + 1 ) ] ); $self->palette( [ (0) x ( 0x20 + 1 ) ] ); $self->name_table( [ map { [ (0) x (0x400 + 1) ] } ( 0..3 ) ] ); $self->increment( 1 ); }
sub read { }
sub write { }
1;