參數資料
型號: UPD178F124
英文描述: 78K/0 Series for Instructions | User's Manual[10/2001]
中文描述: 78K線/ 0系列說明|用戶手冊[10/2001]
文件頁數: 112/129頁
文件大?。?/td> 644K
代理商: UPD178F124
CHAPTER 5 EXPLANATION OF INSTRUCTIONS
83
User's Manual U12326EJ4V0UM
Decimal Adjust Register for Addition
ADJBA
Decimal Adjustment of Addition Result
[Instruction format]
ADJBA
[Operation]
Decimal Adjust Accumulator for Addition
[Operand]
None
[Flag]
ZAC
CY
×××
[Description]
The A register, CY flag and AC flag are decimally adjusted from their contents. This instruction carries out
an operation having meaning only when the BCD (binary coded decimal) data is added and the addition result
is stored in the A register (in all other cases, the instruction carries out an operation having no meaning).
See the table below for the adjustment method.
If the adjustment result shows that the A register contents are 0, the Z flag is set (1). In all other cases,
the Z flag is cleared (0).
Condition
Operation
A3 to A0
≤ 9A7 to A4 ≤ 9 and CY = 0
A
← A, CY ← 0, AC ← 0
AC = 0
A7 to A4
≥ 10 or CY = 1
A
← A+01100000B, CY ← 1, AC ← 0
A3 to A0
≥ 10
A7 to A4 < 9 and CY = 0
A
← A+00000110B, CY ← 0, AC ← 1
AC = 0
A7 to A4
≥ 9 or CY = 1
A
← A+01100110B, CY ← 1, AC ← 1
AC = 1
A7 to A4
≤ 9 and CY = 0
A
← A+00000110B, CY ← 0, AC ← 0
A7 to A4
≥ 10 or CY = 1
A
← A+01100110B, CY ← 1, AC ← 0
相關PDF資料
PDF描述
UPD178F098GF-3BA-A 8-BIT, FLASH, MICROCONTROLLER, PQFP100
UPD17P136BGT MICROCONTROLLER, PDSO28
UPD1913C Consumer IC
UPD1943G Consumer IC
UPD1962C Peripheral IC
相關代理商/技術參數
參數描述
UPD178F124GC8BT 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Microcontroller
UPD178F124GF3B9 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Microcontroller
UPD178P018 制造商:NEC 制造商全稱:NEC 功能描述:8-BIT SINGLE-CHIP MICROCONTROLLER
UPD178P018A 制造商:NEC 制造商全稱:NEC 功能描述:8-BIT SINGLE-CHIP MICROCONTROLLER
UPD178P018AGC 制造商:NEC 制造商全稱:NEC 功能描述:8-BIT SINGLE-CHIP MICROCONTROLLER