50 likes | 222 Views
68000 Shift and Rotate instructions(2). ASL - Arithmetic Shift Left. X/C. 0. LSB. Byte = bit 7 Word = bit 15 Long word = bit 31. ASR - Arithmetic Shift Right. X/C. LSB. Byte = bit 7 Word = bit 15 Long word = bit 31. Question: Before: <D0> = $3456ABCF and X=0, C=0
E N D
68000 Shift and Rotate instructions(2) ASL - Arithmetic Shift Left X/C 0 LSB Byte = bit 7 Word = bit 15 Long word = bit 31 ASR - Arithmetic Shift Right X/C LSB Byte = bit 7 Word = bit 15 Long word = bit 31 • Question: • Before: <D0> = $3456ABCF and X=0, C=0 • ASL.W #3,D0 • After: <D0> = ???, X/C = ??? Hardware Computer Organization for the Software Professional Arnold S. Berger
68000 Shift and Rotate instructions(3) LSL - Logical Shift Left X/C 0 C LSR - Logical Shift Right ROR - Roll Right 0 X/C X C C ROXL - Roll Left ROL - Roll Left C X ROXL - Roll Left Hardware Computer Organization for the Software Professional Arnold S. Berger
68000 Shift and Rotate instructions(3) LSL - Logical Shift Left X/C 0 C LSR - Logical Shift Right ROR - Roll Right 0 X/C X C C ROXL - Roll Left ROL - Roll Left C X ROXL - Roll Left Hardware Computer Organization for the Software Professional Arnold S. Berger
A real 68000-based system(1) Note: Not all 68000 signals are shown Hardware Computer Organization for the Software Professional Arnold S. Berger
A real 68000-based system(2) Hardware Computer Organization for the Software Professional Arnold S. Berger