David Cantrell > CPU-Emulator-Z80-1.0 > CPU::Emulator::Z80::Register8F

Download:
CPU-Emulator-Z80-1.0.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 1.0   Source  

NAME ^

CPU::Emulator::Z80::Register8F - the flags register for a Z80

DESCRIPTION ^

This class is a ...::Register8 with additional methods for getting at the individual flag bits

METHODS ^

It has the same methods as its parent, with the following additions:

getX/setX/resetX

where X can be any of S Z H P N C 5 or 3, where 5 and 3 are the un-named bits 5 and 3 of the register (0 being the least-significant bit).

getX takes no parameters and returns 1 or 0 depending on the flag's status.

setX if called with no parameters sets the flag true. If called with a parameter it sets the flag true or false depending on the param's value.

resetX takes no parameters and sets the flag false.

BUGS/WARNINGS/LIMITATIONS ^

None known.

AUTHOR, COPYRIGHT and LICENCE ^

Copyright 2008 David Cantrell <david@cantrell.org.uk>

This software is free-as-in-speech software, and may be used, distributed, and modified under the terms of either the GNU General Public Licence version 2 or the Artistic Licence. It's up to you which one you use. The full text of the licences can be found in the files GPL2.txt and ARTISTIC.txt, respectively.

CONSPIRACY ^

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

syntax highlighting: