Skip to main content

1981 | OriginalPaper | Buchkapitel

Flags, conditional jumps and the CP instruction

verfasst von : Roger Hutty

Erschienen in: Z80 Assembly Language Programming for Students

Verlag: Macmillan Education UK

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

The Z80 has an 8-bit flag register which is used to contain information regarding the result produced by the last executed instruction. In fact, only six of the eight bits are used as follows The SIGN FLAG is set to 1 if the result produced by an instruction is negative, otherwise the flag is reset to 0. For example, after execution of the instructions the accumulator will contain −33 and the sign flag will be set to 1.

Metadaten
Titel
Flags, conditional jumps and the CP instruction
verfasst von
Roger Hutty
Copyright-Jahr
1981
Verlag
Macmillan Education UK
DOI
https://doi.org/10.1007/978-1-349-06155-6_5