Individual Instruction Descriptions
4-142
4.14.47
NEGAC
Two’s Complement Negation of Accumulator
Syntax
[label]
name
dest, src [,mod]
Clock, clk
Word, w
With RPT, clk
Class
NEGAC
An[~], An[~] [, next A]
n
S
+3
1
n
R
+3
3
Execution
[premodify AP if mod specified]
dest
⇐
–src
PC
⇐
PC + 1
Flags Affected
OF, SF, ZF, CF are set accordingly
Opcode
Instructions
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
NEGAC An[~], An[~] [, next A]
1
1
1
0
0
next A
An
0
0
0
0
0
0
A~
~A
Description
Perform two’s complement negation of src accumulator and store result in dest
accumulator.
See Also
NEGACS, SUB, SUBB, SUBS, ADD, ADDB, ADDS, NOTAC, NOTACS
Example 4.14.47.1
NEGAC A3~, A3, ––A
Predecrement accumulator pointer AP3. Negate accumulator A3 and store result in accumulator A3~.
Summary of Contents for MSP50C6xx
Page 6: ...vi...
Page 14: ...xiv...
Page 24: ...1 10...
Page 296: ...Instruction Set Summay 4 210 Assembly Language Instructions...
Page 366: ...6 12...