STMicroelectronics ST10 Series Programming Manual page 98

Table of Contents

Advertisement

ST10 FAMILY PROGRAMMING MANUAL
NEGB
Syntax
Operation
Data Types
Description
Performs a binary 2's complement of the source operand specified by op1. The result is then stored in
op1.
Flags
E
*
E
Set if the value of op1 represents the lowest possible negative number. Cleared otherwise.
Used to signal the end of a table.
Z
Set if result equals zero. Cleared otherwise.
V
Set if an arithmetic underflow occurred, i.e. the result cannot be represented in the specified
data type. Cleared otherwise.
C
Set if a borrow is generated. Cleared otherwise.
N
Set if the most significant bit of the result is set. Cleared otherwise.
Addressing Modes
Mnemonic
NEGB
96/172
Integer Two's Complement
NEGB
(op1)
BYTE
Z
*
Rb
n
op1
<-- 0 - (op1)
V
*
Format
A1 n0
C
N
S
*
Bytes
2

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ST10 Series and is the answer not in the manual?

Questions and answers

Table of Contents