參數資料
型號: μPD789801
廠商: NEC Corp.
英文描述: 8 Bit Single Chip Microcontrollers(8位單片微控制器)
中文描述: 8位單片機微控制器(8位單片微控制器)
文件頁數: 70/125頁
文件大?。?/td> 366K
代理商: ΜPD789801
CHAPTER 5 EXPLANATION OF INSTRUCTIONS
53
SUBC
Subtract with Carry
Subtraction of Byte Data with Carry
[Instruction format]
SUBC dst,src
[Operation]
dst,CY
dst - src - CY
[Operand]
Mnemonic
Operand (dst,src)
Mnemonic
Operand (dst,src)
SUBC
A,#byte
SUBC
A,!addr16
saddr,#byte
A,[HL]
A,r
A,[HL + byte]
A,saddr
[Flag]
Z
AC
CY
×
×
×
[Description]
The source operand (src) specified with the 2nd operand and the CY flag are subtracted from the destination
operand (dst) specified with the 1st operand and the result is stored in the destination operand (dst).
The CY flag is subtracted from the least significant bit. This instruction is mainly used for subtraction of two or
more bytes.
If the subtraction shows that dst 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 7, the CY flag is set to (1). In all other cases, the CY flag is
cleared to (0).
If the subtraction generates a borrow for bit 3 out of bit 4, the AC flag is set to (1). In all other cases, the AC
flag is cleared to (0).
[Description example]
SUBC A,[HL];
The (HL register) address contents and the CY flag are subtracted from the A register and the
result is stored in the A register.
相關PDF資料
PDF描述
μ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 位微控制器)
μPD784037Y 8/16Bit Single Chip Microcontrollers(8/16位單片微控制器)
相關代理商/技術參數
參數描述
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