TriCore
®
TC1.6P & TC1.6E
32-bit Unified Processor Core
Instruction Set
V1.0 2013-07
User Manual (Volume 2) 3-369
SUB.A
Subtract Address
Description
Subtract the contents of address register A[b] from the contents of address register A[a] and put the result in
address register A[c].
SUB.AA[c], A[a], A[b] (RR)
A[c] = A[a] - A[b];
SUB.AA[10], const8 (SC)
Status Flags
Examples
sub.a a3, a4, a2
See Also
ADD.A, ADDIH.A, ADDSC.A, ADDSC.AT
Decrement the Stack Pointer (A[10]) by the zero-extended value of const8 (a range of 0 through to 255).
A[10] = A[10] - zero_ext(const8);
C Not set by this instruction.
V Not set by this instruction.
SV Not set by this instruction.
AV Not set by this instruction.
SAV Not set by this instruction.
sub.a sp, #126
31
c
28 27
02
H
20 19
-
18 17
-
16 15
b
12 11
a
8 7
01
H
0