Renesas H8SX/1520 Series Hardware Manual page 69

32-bit cisc microcomputer
Hide thumbs Also See for H8SX/1520 Series:
Table of Contents

Advertisement

Bit
Bit Name
5
H
4
U
3
N
2
Z
1
V
0
C
Downloaded from
Elcodis.com
electronic components distributor
Initial
Value
R/W
Description
Undefined R/W
Half-Carry Flag
When the ADD.B, ADDX.B, SUB.B, SUBX.B, CMP.B, or
NEG.B instruction is executed, this flag is set to 1 if
there is a carry or borrow at bit 3, and cleared to 0
otherwise. When the ADD.W, SUB.W, CMP.W, or
NEG.W instruction is executed, this flag is set to 1 if
there is a carry or borrow at bit 11, and cleared to 0
otherwise. When the ADD.L, SUB.L, CMP.L, or NEG.L
instruction is executed, this flag is set to 1 if there is a
carry or borrow at bit 27, and cleared to 0 otherwise.
Undefined R/W
User Bit
Can be written to and read from by software using the
LDC, STC, ANDC, ORC, and XORC instructions.
Undefined R/W
Negative Flag
Stores the value of the most significant bit (regarded as
sign bit) of data.
Undefined R/W
Zero Flag
Set to 1 to indicate zero data, and cleared to 0 to
indicate non-zero data.
Undefined R/W
Overflow Flag
Set to 1 when an arithmetic overflow occurs, and
cleared to 0 otherwise.
Undefined R/W
Carry Flag
Set to 1 when a carry occurs, and cleared to 0
otherwise. A carry has the following types:
The carry flag is also used as a bit accumulator by bit
manipulation instructions.
Carry from the result of addition
Borrow from the result of subtraction
Carry from the result of shift or rotation
Rev. 3.00 Mar. 14, 2006 Page 31 of 804
Section 2 CPU
REJ09B0104-0300

Advertisement

Table of Contents
loading

Table of Contents