- Trending Categories
- Data Structure
- Operating System
- MS Excel
- C Programming
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Programmer's view of Z-80
In this section we will see the basic architecture of the Z-80 Microprocessor, and different registers to write programs into it.
To write programs we have to care about the registers and some instructions to access them during program execution.
From this diagram it is clear that there are some special purpose registers like W, Z, some other registers like Stack Pointer (SP), Program Counter (PC) etc. three general purpose register pairs (BC, DE, HL) and Accumulator A. There is also an 8-bit flag register to hold the flag bits. Up to this, it is like the 8085 architecture, but in Z-80, there are some other 16-bit registers like IX, IY and alternative 8-bit secondary registers like (A’, F’, B’, C’, D’, E’, H’, L’).
The alternative registers are not for general uses. So the common instructions cannot use them directly. Like we can use LD B, A to load the data from Accumulator to B, but we cannot use LD B’, A’ or LD B, A’ or LD B’, A etc. These registers are used to store the main register contents only. So the B’ can store the content of B register, The D’ can store the content of D etc. There are two instructions for these registers. The first one is the EXX. It is 1-byte instruction. It copies the content of Register B, C, D, E, H, L to B’, C’, D’, E’, H’ and L’ respectively. Another 1-byte instruction is the EX AF, AF’. It copies the Accumulator and Flag bits into the A’F’
In this diagram, you can get the 8-bit and 16-bit registers of the Zilog Z-80 Microprocessor.
- Related Articles
- Programmer's view of 6800
- Programmer's view of 8051
- Programmer's view of 8085 Microprocessor
- Pins of Z-80
- Special features of Z-80
- Addressing modes of Z-80
- Exchange of blocks in Z-80
- Interrupt structure in Z-80
- Addition of multi-byte numbers in Z-80
- Block movement without overlap in Z-80
- Number of Programmer Worked on given Time in Python
- How to change programmer in Arduino IDE
- How do I become an expert Python programmer?
- What is the equivalent of Matlab's surf(x,y,z,c) in Matplotlib?
- How can we see the metadata of a view(s) stored in a particular MySQL database?