CPU::Emulator::Memory::BankedBanked memory for a CPU emulator | |
Download |
CPU::Emulator::Memory::Banked Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- David Cantrell
- Publisher web site:
- http://search.cpan.org/~dcantrell/
CPU::Emulator::Memory::Banked Tags
CPU::Emulator::Memory::Banked Description
Banked memory for a CPU emulator CPU::Emulator::Memory::Banked is a Perl class that adds multiple memory banks to the flat memory space provided by CPU::Emulator::Memory.SYNOPSIS my $memory = CPU::Emulator::Memory::Banked->new(); $memory->poke(0xBEEF, ord('s')); my $value = $memory->peek(0xBEEF); # 115 == ord('s') $memory->bank( address => 0x8000, size => 0x4000, type => 'ROM', file => '.../somerom.rom', writethrough => 1 ); my $value = $memory->peek(0xBEEF); # read from ROM instead $memory->poke(0xBEEF, 0); # write to underlying RAMThese temporarily replace chunks of memory with other chunk, to simulate bank-switching. Those chunks can be of arbitrary size, and can be either RAM, ROM, or 'dynamic', meaning that instead of being just dumb storage, when you read or write them perl code gets run. Requirements: · Perl
CPU::Emulator::Memory::Banked Related Software