Zero and Carry-flags -------------------- This appendix shows how the instructions affect the Carry and Zero flags. The symbols have the following meaning. - unchanged * influenced by the outcome of the operation 1 is set to 1 0 resets to 0 + is set to 1 if A = (HL), and in the other case is reset to 0. Instruction C Z ------------------------ ADC * * ADD (8-bit) * * ADD (16-bit) * - AND 0 * BIT - * CALL * * CCF * - CP * * CPD - + CPDR - + CPI - + CPIR - + CPL - - DAA * * DEC - - DI - - DJNZ - - EI - - EX - - EXX - - HALT - - IM - - IN A(n) - - IN r,(C) - * IND - * INDR - 1 INI - * INIR - 1 JP - - JR - - LD A,I - * LD A,R - * LD (all others) - - LDD - - LDDR - - LDI - - LDIR - - NEG * * NOP - - OR 0 * OTDR - 1 OTIR - 1 OUT - - OUTD - * OUTI - * POP - - PUSH - - RES - - RET - - RETI - - RETN - - RL * * RLA * - RLC * * RLCA * - RLD - * RR * * RRA * - RRC * * RRCA * - RRD - * RST - - SBC * * SCF 1 - SET - - SLA * * SRA * * SRL * * SUB * * XOR 0 *