CPU-Emulator-Memory

 view release on metacpan or  search on metacpan

lib/CPU/Emulator/Memory.pm  view on Meta::CPAN


=head2 new

The constructor returns an object representing a flat memory
space addressable by byte.  It takes four optional named parameters:

=over

=item file

if provided, will provide a disc-based backup of the
RAM represented.  This file will be read when the object is created
(if it exists) and written whenever anything is altered.  If no
file exists or no filename is provided, then memory is initialised
to all zeroes.  If the file exists it must be writeable and of the
correct size.

=item endianness

defaults to LITTLE, can be set to BIG.  This matters for the peek16
and poke16 methods.



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