Skip to main content

Bit Operations and the Index Registers

  • Chapter
Programming in Z80 Assembly Language
  • 61 Accesses

Abstract

The Z80 has an extensive range of bit instructions. The bit instructions allow individual bits of a register or memory byte to be tested (for 0 or 1), set to 1 and reset to 0. The number of the bit in the register or memory byte to be used in the operation has to be specified in the instruction and, for this purpose, the bits are numbered right to left starting at 0, as follows

All bit instructions operate on any of one of the single registers or a memory byte pointed to by HL, IX or IY.

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.

Authors

Copyright information

© 1984 Roger Hutty

About this chapter

Cite this chapter

Hutty, R. (1984). Bit Operations and the Index Registers. In: Programming in Z80 Assembly Language. Palgrave, London. https://doi.org/10.1007/978-1-349-06957-6_9

Download citation

  • DOI: https://doi.org/10.1007/978-1-349-06957-6_9

  • Publisher Name: Palgrave, London

  • Print ISBN: 978-1-349-06959-0

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

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics