English
Language : 

IA88C00 Datasheet, PDF (20/80 Pages) InnovASIC, Inc – Microcontroller
IA88C00
Microcontroller
Data Sheet
As of Production Version -01
Mode and Control Registers
Figure 10. R213 (D5) Flags System Flags Register
Bit
Initial Value
Read/Write
7
Carry
?
R
6
Zero
?
R
5
Sign
?
R
4
Overflow
?
R
3
Decimal
Adjust
?
R
2
Half-
Carry
?
R
1
Fast
Interrupt
?
R
0
Bank
?
R/W
The flag register contains eight bits that describe the current status of the processor. Four of these bits can
be tested and used with conditional jump instructions. Two others are used for BCD arithmetic. Also
contained in the flag register are the Bank Address bit and the Fast Interrupt Status bit.
Bit 7: Carry Flag - This is set to 1 if the result from an arithmetic operation generates carry out of, or
borrow into, bit 7.
Bit 6: Zero Flag - For arithmetic and logical operations, this flag is set to 1 if the result of the operation is
0. For operations that test bits in a register, the 0 bit is set to 1 if the result is 0. For rotate and shift
operations, this bit is set to 1 if the result is 0.
Bit 5: Sign Flag - Following arithmetic, logical, rotate or shift operations, this bit identifies the state of
the MSB of the result. A 0 indicates a positive number and a 1 indicates a negative number.
Bit 4: Overflow Flag - This flag is set to 1 when the result of a two's-complement operation was greater
than 127 or less than -128. It is also cleared to 0 during logical operations.
Bit 3: Decimal Adjust - This bit is used to specify what type of instruction was executed last during BCD
operations, so a subsequent decimal adjust operation can function correctly. This bit is not usually
accessible to programmers and cannot be used as a test condition.
Bit 2: Half-Carry Flag - This bit is set to 1 whenever an addition generates a carry out of bit 3, or when a
subtraction borrows out of bit 4. This bit is used by the Decimal Adjust (DA) instruction to convert the
binary result of a previous addition or subtraction into the correct decimal (BCD) result. This flag and the
Decimal Adjust flag are not usually accessed by users.
Bit 1: Fast Interrupt Status - This bit is set during a fast interrupt cycle and reset during the IRET
following interrupt servicing. When set, this bit inhibits all interrupts and causes the fast interrupt return
to be executed when the IRET instruction is fetched.
Bit 0: Bank Address - This bit is used to select one of the register banks (0 or 1) between (decimal)
addresses 224 and 255. It is cleared by the SB0 instruction and set by the SB1 instruction.
Copyright © 2005
Innovasic.com
Innovasic Semiconductor
ENG 21 0 050519-00
Page 20 of 80
www.Innovasic
1.888.824.4184