參數(shù)資料
型號: μPD789418
廠商: NEC Corp.
英文描述: 8 Bit Single Chip Microcontrollers(8位單片微控制器)
中文描述: 8位單片機微控制器(8位單片微控制器)
文件頁數(shù): 78/125頁
文件大小: 366K
代理商: ΜPD789418
CHAPTER 5 EXPLANATION OF INSTRUCTIONS
61
CMPW
Compare Word
Word Data Comparison
[Instruction format]
CMPW dst,src
[Operation]
dst - src
[Operand]
Mnemonic
Operand (dst,src)
CMPW
AX,#word
[Flag]
Z
AC
CY
×
×
×
[Description]
The source operand (src) specified with the 2nd operand is subtracted from the destination operand (dst)
specified with the 1st operand.
The subtraction result is not stored anywhere and only the Z, AC and CY flags are changed.
If the subtraction result is 0, the Z flag is set to (1). In all other cases, the Z flag is cleared to (0).
If the subtraction generates a borrow out of bit 15, the CY flag is set to (1). In all other cases, the CY flag is
cleared to (0).
As a result of subtraction, the AC flag becomes undefined.
[Description example]
CMPW AX,#0ABCDH;
ABCDH is subtracted from the AX register and only the flags are changed (comparison
of the AX register and the immediate data).
相關(guān)PDF資料
PDF描述
μPD789801 8 Bit Single Chip Microcontrollers(8位單片微控制器)
μPD789806Y 8 Bit Single Chip Microcontrollers(8位單片微控制器)
μPD789F806Y 8 Bit Single Chip Microcontrollers(8位單片微控制器)
μPD784036Y 8/16 Bit Single Chip Microcontrollers(8/16 位微控制器)
μPD78P4038Y 8/16 Bit Single Chip Microcontrollers(8/16 位微控制器)
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PD78F0134 制造商:NEC 制造商全稱:NEC 功能描述:8-Bit Single-Chip Microcontrollers
PD78F0134(A) 制造商:NEC 制造商全稱:NEC 功能描述:8-Bit Single-Chip Microcontrollers
PD78F0134(A1) 制造商:NEC 制造商全稱:NEC 功能描述:8-Bit Single-Chip Microcontrollers
PD78F0134A 制造商:NEC 制造商全稱:NEC 功能描述:8-Bit Single-Chip Microcontrollers
PD78F0134A1 制造商:NEC 制造商全稱:NEC 功能描述:8-Bit Single-Chip Microcontrollers