Motorola ColdFire MCF5281 User Manual page 123

Motorola microcontroller user's manual
Table of Contents

Advertisement

/* check for accumulation overflow */
if (accumulationOverflow == 1)
/* transfer the result to the accumulator */
ACCx[47:0] = result[47:0]
}
MACSR.V = MACSR.PAVx
MACSR.N = ACCx[47]
if (ACCx[47:0] == 0x0000_0000_0000)
then MACSR.Z = 1
else MACSR.Z = 0
if (ACCx[47:32] == 0x0000)
then MACSR.EV = 0
else MACSR.EV = 1
break;
}
MOTOROLA
}
then {MACSR.PAVx = 1
MACSR.V = 1
if (inst == MSAC && MACSR.OMC == 1)
then result[47:0] = 0x0000_0000_0000
else if (MACSR.OMC == 1)
then /* overflowed MAC,
}
Chapter 3. Enhanced Multiply-Accumulate Unit (EMAC)
saturationMode enabled */
result[47:0] = 0xffff_ffff_ffff
EMAC Instruction Set Summary
3-19

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfire mcf5282

Table of Contents