The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

CPU::Emulator::6502 - Class representing a 6502 CPU

SYNOPSIS

DESCRIPTION

REGISTERS

  • acc - Accumulator

  • x

  • y

  • pc - Program Counter

  • sp - Stack Pointer

  • status

METHODS

new( )

init( )

create_instruction_table

Dynamically loads all instructions from the CPU::Emulator::6502::Op namespace and creates a table.

RAM_read( $address )

Reads data from $address in memory.

RAM_write( $address => $data )

Writes $data to $address in memory.

interrupt_request()

execute_instruction( )

get_instruction( )

debug( )

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