Typewriter User Manual

5-108 MC68340 USER’S MANUAL MOTOROLA
5.7.3.9 SHIFT/ROTATE INSTRUCTIONS. The shift/rotate instruction table indicates the
number of clock periods needed for the processor to perform the specified operation on
the given addressing mode. Footnotes indicate when to account for the appropriate EA
times. The number of bits shifted does not affect the execution time, unless noted. The
total number of clock cycles is outside the parentheses. The numbers inside parentheses
(r/p/w) are included in the total clock cycle number. All timing data assumes two-clock
reads and writes.
Instruction Head Tail Cycles Note
LSd Dn, Dm 2
0 (0/1/0) 1
LSd #, Dm 4
0 6(0/1/0)
LSd FEA 0
2 6(0/1/1)
ASd Dn, Dm 2
0 (0/1/0) 1
ASd #, Dm 4
0 6(0/1/0)
ASd FEA 0
2 6(0/1/1)
ROd Dn, Dm 2
0 (0/1/0) 1
ROd #, Dm 4
0 6(0/1/0)
ROd FEA 0
2 6(0/1/1)
ROXd Dn, Dm 2
0 (0/1/0) 2
ROXd #, Dm 2
0 (0/1/0) 3
ROXd FEA 0
2 6(0/1/1)
d = Direction (left or right)
NOTES:
1. Head and cycle times can be derived from the following table or calculated as follows:
Max (3 + (n/4) + mod(n,4) + mod (((n/4) + mod (n,4) + 1,2), 6)
2. Head and cycle times are calculated as follows: (count 63): max (3 + n + mod (n + 1,2), 6).
3. Head and cycle times are calculated as follows: (count 8): max (2 + n + mod (n,2), 6).
Clocks Shift Counts
6 01234568912
8 7 10 11 13 14 16 17 20
10 15 18 19 21 22 24 25 28
12 23 26 27 29 30 32 33 36
14 31 34 35 37 38 40 41 44
16 39 42 43 45 46 48 49 52
18 47 50 51 53 54 56 57 60
20 55 58 59 61 62
22 63
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...