Games-NES-Emulator
view release on metacpan or search on metacpan
lib/Games/NES/Emulator/CPU.pm view on Meta::CPAN
=head1 METHODS
=head2 init()
=cut
sub init {
my $self = shift;
my $emu = shift;
Scalar::Util::weaken( $emu );
$self->SUPER::init( @_ );
$self->context( $emu );
$self->interrupt_line( 0 );
$self->memory( [ ( 0 ) x ( 0xFFFF + 1 ) ] );
my $reg = $self->registers;
$reg->{ pc } = 0x8000;
$reg->{ sp } = 0xFF;
lib/Games/NES/Emulator/Mapper.pm view on Meta::CPAN
=head1 METHODS
=head2 init( )
=cut
sub init {
my $self = shift;
my $emu = shift;
Scalar::Util::weaken( $emu );
$self->context( $emu );
$self->_init_maps;
$self->_init_memory;
}
sub _init_maps {
my $self = shift;
$self->prg_map( {
( run in 0.648 second using v1.01-cache-2.11-cpan-65fba6d93b7 )