CPU-Emulator-Z80

 view release on metacpan or  search on metacpan

lib/CPU/Emulator/Z80/Manual.pod  view on Meta::CPAN

using the 'memory' parameter:

    my $cpu = CPU::Emulator::Z80->new(
        memory => CPU::Emulator::Memory->new(
            size => 0x4000,
            file => 'memory.ram'
        )
    );

Generally, the default is what you want, but note that the default
configuration does *not* backup the CPU's RAM to a file.  Note that
if you define your own memory, it *must* be little-endian.

=head1 HOW DO IT GET A PROGRAM INTO MEMORY

The hard way, which is also most suitable for very small hacks, is
to peek() and poke() the memory directly.  You can get at the memory
using the memory() method.

Alternatively, you can initialise RAM from a file by creating your
own memory object, or from a string by passing a scalar with the



( run in 1.964 second using v1.01-cache-2.11-cpan-49f99fa48dc )