TriCore
®
TC1.6P & TC1.6E
32-bit Unified Processor Core
Instruction Set
V1.0 2013-07
User Manual (Volume 2) 3-4
Examples
abs.b d3, d1
abs.h d3, d1
See Also
ABSS.H, ABSDIF.B, ABSDIF.H, ABSDIFS.H
AV ABS.B
aov_byte3 = result_byte3[7] ^ result_byte3[6];
aov_byte2 = result_byte2[7] ^ result_byte2[6];
aov_byte1 = result_byte1[7] ^ result_byte1[6];
aov_byte0 = result_byte0[7] ^ result_byte0[6];
advanced_overflow = aov_byte3 OR aov_byte2 OR aov_byte1 OR aov_byte0;
if (advanced_overflow) then PSW.AV = 1 else PSW.AV = 0;
ABS.H
aov_halfword1 = result_halfword1[15] ^ result_halfword1[14];
aov_halfword0 = result_halfword0[15] ^ result_halfword0[14];
advanced_overflow = aov_halfword1 OR aov_halfword0;
if (advanced_overflow) then PSW.AV = 1 else PSW.AV = 0;
SAV if (advanced_overflow) then PSW.SAV = 1 else PSW.SAV = PSW.SAV;