ladd
ladd
long add
Code: 21 F6
Description: Add with carry in and check for overflow. The result of the operation is
the sum of Areg, Breg and bit 0 of Creg.
Definition:
if (sum > MostPos)
{
Areg′ ← sum − 2BitsPerWord
IntegerOverflow
}
else if (sum < MostNeg)
{
Areg′ ← sum + 2BitsPerWord
IntegerOverflow
}
else
Areg′ ← sum
Breg′ ← undefined
Creg′ ← undefined
where
sum = Areg + Breg + Creg0
– the value of sum is calculated to unlimited precision
Error signals: IntegerOverflow can be signalled.
Comments:
Secondary instruction.
See also: lsum
96/212
®