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.
Weitere Kapitel dieses Buchs durch Wischen aufrufen
- Flags, conditional jumps and the CP instruction
- Macmillan Education UK
Neuer Inhalt/© ITandMEDIA