Skip to main content

1981 | OriginalPaper | Buchkapitel

Shift instructions, multiply and divide

verfasst von : Roger Hutty

Erschienen in: Z80 Assembly Language Programming for Students

Verlag: Macmillan Education UK

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

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.

Metadaten
Titel
Shift instructions, multiply and divide
verfasst von
Roger Hutty
Copyright-Jahr
1981
Verlag
Macmillan Education UK
DOI
https://doi.org/10.1007/978-1-349-06155-6_10