Does V flag in CCR's changes with the data size?
Latest Updated:03/26/2009
Question:
Does V flag in CCR's changes with the data size?
Answer:
The CCR's V flag changes when an overflow is detected in the result of a signed arithmetic operation. This operation is the same for all data sizes.
However, the timing of the changes in the flag varies as follows:
- Byte: When the value is smaller than H'80 or larger than H'7F.
- Word: When the value is smaller than H'8000 or larger than H'7FFF.
- Longword: When the value is smaller than H'80000000 or larger than H'7FFFFFFF
Suitable Products
H8/300H Tiny |
H8/36109 |
H8/36087 |
H8/36077, H8/36079 |
H8/36064 |
H8/36049 |
H8/36037, H8/36057 |
H8/36014, H8/36024 |
H8/3694 |
H8/3687 |
H8/3672 |
H8/3664 |
H8/36912, H8/36902 |