Z8 Encore!® Motor Control Flash MCUs
Product Specification
296
initial power-up and are unaffected by Reset. Figure 56 illustrates the flags and their bit
positions in the Flags Register.
Bit
7
Bit
0
C
Z
S
V
D
H F2 F1 Flags Register
User Flags
Half Carry Flag
Decimal Adjust Flag
Overflow Flag
Sign Flag
Zero Flag
Carry Flag
U = Undefined
Figure 56. Flags Register
Interrupts, the software trap (TRAP) instruction, and illegal instruction traps all write the
value of the Flags Register to the stack. Executing an Interrupt Return (IRET) instruction
restores the value saved on the stack into the Flags Register.
PS024604-1005
P R E L I M I N A R Y
eZ8 CPU Instruction Set