| Games-NES-Emulator documentation | Contained in the Games-NES-Emulator distribution. |
CPU::Emulator::6502::Op::PLA - Pull accumulator from the stack
Pulls the accumulator from the stack.
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 CPU::Emulator::6502::Op::PLA; use strict; use warnings; use constant INSTRUCTIONS => { 0x68 => { cycles => 4, code => \&pla, } };
sub pla { my $self = shift; my $reg = $self->registers; $reg->{ acc } = $self->pop_stack; $self->set_nz( $reg->{ acc } ); }
1;