Motorola CPU32 Reference Manual page 255

M68300 series central processor unit
Hide thumbs Also See for CPU32:
Table of Contents

Advertisement

III
Summing, the following result is obtained:
0010 0000.
0011 1111.
0000 0001·.
0110 0000.
Now, using the same TLI results, the sum is first calculated and then rounded
according to the same algorithm:
Rounding yields:
0010 0000. 0111 0000
0011 1111. 0111 0000
0000 0001 . 0111 0000
0110 0001 . 0101 0000
0110 0001.
The second result is preferred. The following code sequence illustrates how
addition of a series of table interpolations can be performed without loss of
precision in the intermediate results:
LO:
TBLSN.B
TBLSN.B
TBLSN.B
AOO.L
AOO.L
ASR.L
BCC.B
AOOQ.B
L1: ...
MOTOROLA
4-202
{ea), Ox
{ea), Ox
{ea),OI
Ox, Om
Om, DI
#8,01
L1
#1,01
Long addition avoids problems with carry
Move radix point
Fraction MSB in carry
INSTRUCTION SET
CPU32 REFERENCE MANUAL

Advertisement

Table of Contents
loading

Table of Contents