Skip to Main Content
The X86 Microprocessors: Architecture and Programming (8086 to Pentium), 1st Edition
book

The X86 Microprocessors: Architecture and Programming (8086 to Pentium), 1st Edition

by Lyla B. Das
May 2024
Intermediate to advanced content levelIntermediate to advanced
665 pages
23h 2m
English
Pearson India
Content preview from The X86 Microprocessors: Architecture and Programming (8086 to Pentium), 1st Edition
PROGRAMMING CONCEPTS  II 131
3.6 | Shift and Rotate Instructions
Table 3.8 gives the complete list of the shift and rotate instructions.
3.6.1 | Shift
Shift instructions do arithmetic or logical shifting.i)
ey also shift right or left.ii)
Arithmetic shift is used for signed number operations, while logical shift caters to unsigned iii)
numbers.
Shifting right causes a divide by 2, for each bit position shifted, while shifting left corresponds iv)
to a multiplication by 2.
e count means the number of bit positions, by which shifting is to be done.v)
If the count vi) >1, load it in CL, otherwise use ‘1’ in the immediate mode.
SAL/SHL – Shif ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microprocessors and Microcontrollers  by Pearson

Microprocessors and Microcontrollers by Pearson

Lyla B Das

Publisher Resources

ISBN: 9781282663169