Skip to main content

Part of the book series: Macmillan Computer Science Series ((COMPSS))

  • 61 Accesses

Abstract

Shift instructions allow the bits of a register or memory byte to be shifted one bit place to the left or to the right. There are two types of shift instructions — logical and arithmetic. Logical shifts consider the contents of the register or memory byte to be just a bit pattern when the shift is made. Arithmetic shifts consider the contents of the register or memory byte to be a signed number so that when the shift is made the number is arithmetically multiplied by two (left shift) or divided by two (right shift). The Z80 microprocessor has one logical instruction and two arithmetic instructions. Descriptions of the shift instructions are included in Table C.8 in Appendix C.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Copyright information

© 1981 Roger Hutty

About this chapter

Cite this chapter

Hutty, R. (1981). Shift instructions, multiply and divide. In: Z80 Assembly Language Programming for Students. Macmillan Computer Science Series. Palgrave, London. https://doi.org/10.1007/978-1-349-06155-6_10

Download citation

  • DOI: https://doi.org/10.1007/978-1-349-06155-6_10

  • Publisher Name: Palgrave, London

  • Print ISBN: 978-0-333-32295-6

  • Online ISBN: 978-1-349-06155-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics