
CPU::Emulator::Z80::Register8 - an 8 bit register for a Z80

This class implements an 8-bit register for a Z80.

Returns an object. Takes two or three named parameters:
mandatory, a reference to the CPU this register lives in, mostly so that operations on the register can get at the flags register.
and either of:
The value to initialise the register to;
or
Subroutines to call when getting/setting the register instead of the default get/set methods. The 'get' subroutine will be passed no parameters, the 'set' subroutine will be passed the new value. Consequently, they are expected to be closures if they are to be of any use.
Get the register's current value.
Set the register's value to whatever is passed in as a parameter.
Increment the register and set flags.
Decrement the register and set flags.
Add the specified value to the register.
Subtract the specified value from the register.

None known.

Copyright 2008 David Cantrell <david@cantrell.org.uk>
This module is free-as-in-speech software, and may be used, distributed, and modified under the same terms as Perl itself.

This module is also free-as-in-mason software.