Games::NES::Emulator::PPU::Memory - NES VRAM


Games-NES-Emulator documentation Contained in the Games-NES-Emulator distribution.

Index


Code Index:

NAME

Top

Games::NES::Emulator::PPU::Memory - NES VRAM

SYNOPSIS

Top

DESCRIPTION

Top

METHODS

Top

init()

read( $addr, $spu_read )

write( $addr => $data, $cpu_read )

AUTHOR

Top

Brian Cassidy <bricas@cpan.org>

COPYRIGHT AND LICENSE

Top

SEE ALSO

Top

* Games::NES::Emulator::PPU

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;