You are on page 1of 1
“There isa set of five fp-flops which act as status flags. Each ofthese flip-top holds 1-bit lag at indicate certain condition which arises during arithmetic and logic operations. The following status flags have been provided in Intl 086. 1. CARRY (CS) 2 ZERO (2) 2. SIGN (8) 4, PARITY (P) ‘5, AUXILIARY CARRY (AC) Carry (CS) ‘The cary status flag holds carry out of the most significant bit resulting from the execution of an arithmetic, ‘operation. If there is a cary from addition or a borrow from subtraction or comparison, the carry flag CS is set to 1, otherwise 0. Zero (Z) ‘The zero status flag Z is set to 1 ifthe result of an arithmetic or logical operation is zero. For non-zero result itis set 100. Sign (S) “The sign status fag is set to 1 ifthe most significant bit ofthe result ofan arithmetic or logical operation is 1 otherwise 0 Parity (P) The patty satus gis eto t when result the operation contains even numberof is sto zero when here ise numberof. Auxiliary Carry (AC) ‘The auxiliary carry status flag holds carry out of bit 3 to 4 resulting from the execution of an arithmetic operation. Figaro 2: Status lags Ine 08s PSW In figure 2 Five bits indicate the five status flags and three bits are undefined. The combination of these 8 bits is called Program Status Word (PSW). PSW and the accumulator are treated as a 16-bit unit for stack operations.

You might also like