Operations:

Format

Syntax:

Operation:

Operands:

Architecture revision

Opcode

1

addabs Rd, Rx, Ry

Rd = Rx + |Ry|;
{d, x, y}∈ {0, 1, …, 15}

Rev1+

111

Rx

00000

Ry

000011100100

Rd

3

4

5

4

12

4

Description

Adds Rx and the absolute value of Ry and stores the result in destination register. Useful for cal- culating the sum of absolute differences.

Status Flags

Q:

Not affected

V:

Not affected

N:

Not affected

Z:

Z = (RES[31:0] == 0)

C:

Not affected