You are on page 1of 6

Flag register

Represents the current status of


CPU
Carry flag
parity flag
auxiliary flag
zero flag
sign flag
trap flag interrupt and overflow flag
Why we study flags
when we perform conditions means (if _else etc)
flag are the back end for this purpose
Control CPU operations
trap, direction and interrupt etc
control the status of operations
Useful bits are 9 in a flag
carry flag save last carry
parity flag check validity of data
that is traveled
auxiliary flag handle every third carry
Sign flag handle sign in expression
trap flag trap error in program
interrupt flag handle interrupt
direction flag handle the direction of string
overflow flag handle the size of register

You might also like