CHAPTER 2 REGISTERS
User’s Manual U11047EJ3V0UM00
24
(1) Interrupt enable flag (IE)
This flag controls interrupt request acknowledge operations of the CPU.
When IE = 0, all interrupts except non-maskable interrupts are disabled (DI status).
When IE = 1, interrupts are enabled (EI status). At this time, acknowledgment of interrupt requests is
controlled by the interrupt mask flag for each interrupt source.
The IE flag is reset (0) when the DI instruction execution is executed or when an interrupt is acknowledged,
and set (1) when the EI instruction is executed.
(2) Zero flag (Z)
When the operation result is zero, this flag is set (1); otherwise, it is reset (0).
(3) Auxiliary carry flag (AC)
If the operation result has a carry from bit 3 or a borrow to bit 3, this flag is set (1); otherwise, it is reset (0).
(4) Carry flag (CY)
This flag records an overflow or underflow upon add/subtract instruction execution. It also records the shift-
out value upon rotate instruction execution, and functions as a bit accumulator during bit operation instruction
execution.
2.1.3 Stack pointer (SP)
This is a 16-bit register that holds the first address of the stack area in the memory. Only the internal high-speed
RAM area can be set as the stack area.
Figure 2-3. Format of Stack Pointer
15
0
SP15 SP14 SP13 SP12 SP11 SP10 SP9
SP8
SP7
SP6
SP5
SP4
SP3
SP2
SP1
SP0
SP
The SP is decremented ahead of write (save) to the stack memory, and is incremented after read (reset) from the
stack memory.
The data saved/restored as a result of each stack operation are as shown in Figures 2-4 and 2-5.
Caution
Since
______
RESET input makes the SP contents undefined, be sure to initialize the SP before
executing an instruction.
Содержание 78K/0S Series
Страница 2: ...User s Manual U11047EJ3V0UM00 2 MEMO ...
Страница 14: ...User s Manual U11047EJ3V0UM00 14 MEMO ...
Страница 28: ...User s Manual U11047EJ3V0UM00 28 MEMO ...
Страница 118: ...User s Manual U11047EJ3V0UM00 118 MEMO ...
Страница 120: ...User s Manual U11047EJ3V0UM00 120 MEMO ...
Страница 122: ...User s Manual U11047EJ3V0UM00 122 MEMO ...