CATEGORII DOCUMENTE |
Bulgara | Ceha slovaca | Croata | Engleza | Estona | Finlandeza | Franceza |
Germana | Italiana | Letona | Lituaniana | Maghiara | Olandeza | Poloneza |
Sarba | Slovena | Spaniola | Suedeza | Turca | Ucraineana |
Z80 CPU architecture
The Z80 CPU is an 8-bits processor witch was constructed in the beginning of July 1976, with ideas from Intel 8080. That was before the Intel-Company started, and made a better 8080-processor, with backward compatibility and with a lot of new instructions.
The interesting thing about the Z80-CPU is that you can all ready see the beginning to: what was about to become pipelined constructions. The Z80 CPU became fast a very popular Processor for small systems - especially later when the processor fall in prize. Now a Z80-processor costs about a dollar, and many are using it of tradition, witch make it even more popular, if you look at the homepage of Zilog, then you will see that today there is a lot of new variants of chips for Z80 systems, used in a wide range of applications.
The Z80 CPU has a very interesting architecture. First of all it has 'fetch/execute overlapping', witch means that it's possible to get (fetch) next instruction from memory while the first instruction are executed. This system is also used in the Intel 8080, and other processors from that time. Another thing that is typical from that time is that those processors areCISC-processors, and that they have variable instructions length. The Z80 CPU instructions-length can be from one to four bytes long. To increase the Z80 CPU speed most instructions are only one byte long. 252 instructions are one byte, the rest are 2, 3 or 4 bytes long.
Fig 1. Fetch/execute overlap.
Another aspect in processor- architecture are the number of internal registers, and if they are dedicated to special purposes. The Z80 CPU internal organization is made visible on the figure below:
Fig 2. Z80 CPU internal organization.
It shows on the figure: 20 - 8-bits registers, and 4 - 16-bits registers. The four 16-bits registers are: PC (Program Counter), SP (Stack Pointer) and the two Index-registers, IX and IY.
The 20 - 8-bit registers are grouped into two banks with 10 registers. 8 witch can be used together as 4 - 16-bit register-pairs, an 8-bit accumulator and a 8-bit flag-register. The Accumulator A, are used for all calculations. The F-register (flags) are used to determine if the result is positive, negative, zero etc
The Register-pairs BC and DE are mostly used for counters and storage of part-results. The Register-pair HL can be used in a wide range of instructions mostly as addressing (pointing to memory). The forgotten registers W and Z are only used for internal operations in the processor, like jump to new addresses. (The CPU can only transfer 8 bits at a time, so to transfer (load) a 16-bit address, it will first store it in WZ) .
The registers B, C, D, E, F, H, L, W and Z can be changed very fast with B', C', D', E', F', H', L', W' and Z', with the instruction EXX. For this purpose a MUX is used, witch is the fastest way to change the value in 9 registers with 9 others. The A and F are switched with A' and F' with the instruction EX AF,AF'. This finesse are mostly used with interrupt routines, so that the main program are using the main set of registers and the interrupt routine are using the EXX registers, this speeds up the interrupt routine, which can be important in embedded applications.
The Z80 CPU has with Intel, inspired to the global processor development and are still alive today more than 20 years after it's construction and it seems like it will continue to live many years more.
Info source: Programming the
Z80 by Rodney Zaks. From SYBEX (ISBN: 0-89588-094-6)
Microcomputer systems are extremely simple to construct using the Z-80 components. Any such system consists of tree parts:
1. Z80 CPU (Centrel Processing Unit)
2. Memory (ROM and RAM)
3. Interface circuits to peripheral devices
The CPU is the heart of the system. Its function is to obtain instructions from the memory and perform the desired operations. The memory is used to contain instructions and in most cases data that is to be processed. For example, a typical instruction sequence may be to read data from a specific peripheral device, store it in a location in memory, check the parity and write it out to another peripheral device. Note that the Zilog component set includes the CPU and various general purpose I/O device controllers, while a wide range of memory devices may be used from any source. Thus, all required components can be connected together in a very simple manner with virtually no external logic. The user's effort then becomes primarily one of software development. That is, the user can concentrate on describing his problem and translating it into a series of instructions that can bo loaded into a microcomputer memory. Zilog is dedicated to making this step of software generation as simple as possible. A good example of this is our assembly language in which a simple mnemonic is used to represent every instruction that the CPU can perform. This language is self documenting in such way that from the mnemonic the user can understand exactly what the instruction is doing without constantly checking back to a complex cross listing.
The Z80 microprocessor is an 8 bit CPU with a 16 bit address bus capable of direct access of 64k of memory space. It has a language of 252 root instructions and with the reserved 4 bytes as prefixes, acceses an additional 308 instructions. The Z80 was modeled after the 8080 and contains the 78 - 8080 opcodes as a subset to it's language.
Programming features include an accumulator and six eight bit registers that can be paired as 3-16 bit registers. In addition to the general registers, a stack-pointer, program-counter, and two index (memory pointers) registers are provided. While not in the same leauge as the 80486 or 68000 series, the Z80 is extremely useful for low cost control applications. One of the more useful features of the Z80 is the built-in refresh circuitry for ease of design with DRAMs.
The Z80 comes in a 40 pin DIP package. And resently also in a 44 pin SMD and QFP. It has been manufactured in A, B, and C models, differing only in maximum clock speed. It also has been manufactured as a stand-alone microcontroler with various configurations of on-chip RAM and EPROM.
Anexa 4
Transferuri
pe 8 biti
Transferuri pe 16 biti
Schimburi intre registre, transfer de blocuri, cautari
Operatii aritmetice si logice pe 8 biti
Operatii aritmetice generale si operatii de comanda
Operatii aritmetice pe 16 biti
Prelucrari pe bit
Salturi
Apeluri de subrutine, reveniri, instructiuni de restart
Operatii de intrare/ iesire
Transferuri pe 8 biti
Mnemonica Z80 |
Descrierea simbolica |
Cod obiect |
Indicatorii de conditii |
||||||
Binar |
Hexa |
S |
Z |
H |
P/V |
N |
C |
||
LD r, r, |
r r, |
01 r r, | |||||||
LD r, n |
r n |
00 r 110 n | |||||||
LD r, (HL) |
r (HL) |
01 r 110 | |||||||
LD r, (IX+d) |
r (IX+d) |
01 r 101 d |
DD | ||||||
LD r, (IY+d) |
r (IY+d) |
01 r 110 d |
FD | ||||||
LD (HL), r |
(HL) r |
01110 r | |||||||
LD (IX+d), r |
(IX+d) r |
01110 r d |
DD | ||||||
LD (IY+d), r |
(IY+d) r |
01110 r d |
FD | ||||||
LD (HL), n |
(HL) n |
n |
| ||||||
LD (IX+d), n |
(IX+d) n |
d n |
DD
| ||||||
LD (IY+d), n |
(IY+d) n |
d n |
FD
| ||||||
LD A, (BC) |
A (BC) |
|
0A | ||||||
LD A, (DE) |
A (DE) |
|
1A | ||||||
LD A, (nn) |
A (nn) |
n n |
3A | ||||||
LD (BC), A |
(BC) A |
|
| ||||||
LD (DE), A |
(DE) A |
|
| ||||||
LD (nn), A |
(nn) A |
n n |
| ||||||
LD A, I |
A I |
|
ED
|
|
|
|
IFF |
| |
LD A, R |
A R |
|
ED 5F |
|
|
|
IFF |
| |
LD I, A |
I A |
|
ED
| ||||||
LD R, A |
R A |
|
ED 4F |
Transferuri pe 16 biti
Mnemonica Z80 |
Descrierea simbolica |
Cod obiect |
Indicatorii de conditii |
||||||
Binar |
Hexa |
S |
Z |
H |
P/V |
N |
C |
||
LD dd, nn |
dd nn |
00dd0001 n n | |||||||
LD IX, nn |
IX nn |
n n |
DD
| ||||||
LD IY, nn |
IY nn |
n n |
FD
| ||||||
LD HL, (nn) |
H nn+1) L nn) |
n n |
2A | ||||||
LD dd, (nn) |
ddH nn+1) ddL nn) |
01dd1011 n n |
ED | ||||||
LD IX, (nn) |
IXH nn+1) IXL nn) |
n n |
DD 2A | ||||||
LD IY, (nn) |
IYH nn+1) IYL nn) |
n n |
FD 2A | ||||||
LD (nn), HL |
nn+1) H (nn) L |
n n |
| ||||||
LD (nn), dd |
nn+1) ddH (nn) ddL |
01dd0011 n n |
ED | ||||||
LD (nn), IX |
nn+1) IXH (nn) IXL |
n n |
DD
| ||||||
LD (nn), IY |
nn+1) IYH (nn) IYL |
n n |
FD
| ||||||
LD SP, HL |
SP HL |
|
F9 | ||||||
LD SP, IX |
SP IX |
|
DD F9 | ||||||
LD SP, IY |
SP IY |
|
FD F9 | ||||||
PUSH qq |
(SP-2) qqL (SP-1) qqH SP SP-2 |
11qq0101 | |||||||
PUSH IX |
(SP-2) IXL (SP-1) IXH SP SP-2 |
|
DD E5 | ||||||
PUSH IY |
(SP-2) IYL (SP-1) IYH SP SP-2 |
|
FD E5 | ||||||
POP qq |
qqH (SP+1) qqL SP SP SP+2 |
11qq0001 | |||||||
POP IX |
IXH (SP+1) IXL SP SP SP+2 |
|
DD E1 | ||||||
POP IY |
IYH (SP+1) IYL SP SP SP+2 |
|
FD E1 |
Schimburi intre registre, transfer de blocuri, cautari
Mnemonica Z80 |
Descrierea simbolica |
Cod obiect |
Indicatorii de conditii |
||||||
Binar |
Hexa |
S |
Z |
H |
P/V |
N |
C |
||
EX DE, HL |
DE HL |
|
EB | ||||||
EX AF, AF |
AF AF |
|
| ||||||
EXX |
BC BC DE DE HL HL |
|
D9 | ||||||
EX (SP), HL |
H (SP+1) L (SP) |
|
E3 | ||||||
EX (SP), IX |
IXH (SP+1) IXL (SP) |
|
DD E3 | ||||||
EX (SP), IY |
IYH (SP+1) IYL (SP) |
|
FD E3 | ||||||
LDI |
(DE) (HL) DE DE+1 HL HL+1 BC BC-1 |
|
ED A0 |
|
|
| |||
LDIR |
(DE) (HL) DE DE+1 HL HL+1 BC BC-1 se repeta pana cand BC=0 |
|
ED B0 |
|
|
| |||
LDD |
(DE) (HL) DE DE-1 HL HL-1 BC BC-1 |
|
ED A8 |
|
|
| |||
LDDR |
(DE) (HL) DE DE-1 HL HL-1 BC BC-1 se repeta pana cand BC=0 |
|
ED B8 |
|
|
| |||
CPI |
A - (HL) HL HL+1 BC BC-1 |
|
ED A1 |
|
|
|
|
| |
CPIR |
A - (HL) HL HL+1 BC BC-1 se repeta pana cand A=(HL) sau BC=0 |
|
ED B1 |
|
|
|
|
| |
CPD |
A - (HL) HL HL-1 BC BC-1 |
|
ED A9 |
|
|
|
|
| |
CPIR |
A - (HL) HL HL-1 BC BC-1 se repeta pana cand A=(HL) sau BC=0 |
|
ED B9 |
|
|
|
|
|
Operatii aritmetice si logice pe 8 biti
Mnemonica Z80 |
Descrierea simbolica |
Cod obiect |
Indicatorii de conditii |
||||||
Binar |
Hexa |
S |
Z |
H |
P/V |
N |
C |
||
ADD A, r |
A A+r |
10000 r |
|
|
|
V |
|
|
|
ADD A, n |
A A+n |
n |
C6 |
|
|
|
V |
|
|
ADD A, (HL) |
A A+(HL) |
|
|
|
|
|
V |
|
|
ADD A, (IX+d) |
A A+(IX+d) |
d |
DD
|
|
|
|
V |
|
|
ADD A, (IY+d) |
A A+(IY+d) |
d |
FD
|
|
|
|
V |
|
|
ADC A, r |
A A+r+CY |
10001 r |
|
|
|
V |
|
|
|
ADC A, n |
A A+n+CY |
n |
CE |
|
|
|
V |
|
|
ADC A, (HL) |
A A+(HL) +CY |
|
8E |
|
|
|
V |
|
|
ADC A, (IX+d) |
A A+(IX+d) +CY |
d |
DD 8E |
|
|
|
V |
|
|
ADC A, (IY+d) |
A A+(IY+d) +CY |
d |
FD 8E |
|
|
|
V |
|
|
SUB r |
A A-r |
10010 r |
|
|
|
V |
|
|
|
SUB n |
A A-n |
n |
D6 |
|
|
|
V |
|
|
SUB (HL) |
A A-(HL) |
|
|
|
|
|
V |
|
|
SUB (IX+d) |
A A-(IX+d) |
d |
DD
|
|
|
|
V |
|
|
SUB (IY+d) |
A A-(IY+d) |
d |
FD
|
|
|
|
V |
|
|
SBC A, r |
A A-r-CY |
10011 r |
|
|
|
V |
|
|
|
SBC A, n |
A A-n-CY |
n |
DE |
|
|
|
V |
|
|
SBC A, (HL) |
A A-(HL) -CY |
|
9E |
|
|
|
V |
|
|
SBC A, (IX+d) |
A A-(IX+d) -CY |
d |
DD 9E |
|
|
|
V |
|
|
SBC A, (IY+d) |
A A-(IY+d) -CY |
d |
FD 9E |
|
|
|
V |
|
|
AND r |
A A r |
10100 r |
|
|
|
P |
|
|
|
AND n |
A A n |
n |
E6 |
|
|
|
P |
|
|
AND (HL) |
A A (HL) |
|
A6 |
|
|
|
P |
|
|
AND (IX+d) |
A A (IX+d) |
d |
DD A6 |
|
|
|
P |
|
|
AND (IY+d) |
A A (IY+d) |
d |
FD A6 |
|
|
|
P |
|
|
OR r |
A A r |
10110 r |
|
|
|
P |
|
|
|
OR n |
A A n |
n |
F6 |
|
|
|
P |
|
|
OR (HL) |
A A (HL) |
|
B6 |
|
|
|
P |
|
|
OR (IX+d) |
A A (IX+d) |
d |
DD B6 |
|
|
|
P |
|
|
OR (IY+d) |
A A (IY+d) |
d |
FD B6 |
|
|
|
P |
|
|
XOR r |
A A r |
10101 r |
|
|
|
P |
|
|
|
XOR n |
A A n |
n |
EE |
|
|
|
P |
|
|
XOR (HL) |
A A (HL) |
|
AE |
|
|
|
P |
|
|
XOR (IX+d) |
A A (IX+d) |
d |
DD AE |
|
|
|
P |
|
|
XOR (IY+d) |
A A (IY+d) |
d |
FD AE |
|
|
|
P |
|
|
CP r |
A - r |
10111 r |
|
|
|
V |
|
|
|
CP n |
A - n |
n |
FE |
|
|
|
V |
|
|
CP (HL) |
A - (HL) |
|
BE |
|
|
|
V |
|
|
CP (IX+d) |
A - (IX+d) |
d |
DD BE |
|
|
|
V |
|
|
CP (IY+d) |
A - (IY+d) |
d |
FD BE |
|
|
|
V |
|
|
INC r |
r r+1 |
00 r 100 |
|
|
|
V |
| ||
INC (HL) |
(HL) (HL)+1 |
|
|
|
|
|
V |
| |
INC (IX+d) |
(IX+d) (IX+d) + 1 |
d |
DD
|
|
|
|
V |
| |
INC (IY+d) |
(IY+d) (IY+d) + 1 |
d |
FD
|
|
|
|
V |
| |
DEC r |
r r-1 |
00 r 101 |
|
|
|
V |
| ||
DEC (HL) |
(HL) (HL)-1 |
|
|
|
|
|
V |
| |
DEC (IX+d) |
(IX+d) (IX+d) - 1 |
d |
DD
|
|
|
|
V |
| |
DEC (IY+d) |
(IY+d) (IY+d) - 1 |
d |
FD
|
|
|
|
V |
|
Operatii aritmetice generale si operatii de comanda
Mnemonica Z80 |
Descrierea simbolica |
Cod obiect |
Indicatorii de conditii |
||||||
Binar |
Hexa |
S |
Z |
H |
P/V |
N |
C |
||
DAA |
Converteste continutul lui A in format BCD dupa adunari sau scaderi cu operanzi BCD |
|
|
|
|
|
P |
|
|
CPL |
A /A |
|
2F |
|
| ||||
NEG |
A 0 - A |
|
ED
|
|
|
|
V |
|
|
CCF |
CY /CY |
|
3F |
x |
|
|
|||
SCF |
CY |
|
|
|
|
|
|||
NOP |
|
| |||||||
HALT |
Oprire CPU |
|
| ||||||
DI |
IFF 1,2 |
|
F3 | ||||||
EI |
IFF 1,2 |
|
FB | ||||||
IM 0 |
Stabilire mod intreruperi 0 |
|
ED
| ||||||
IM 1 |
Stabilire mod intreruperi 1 |
|
ED
| ||||||
IM 2 |
Stabilire mod intreruperi 2 |
|
ED 5E |
Operatii aritmetice pe 16 biti
Mnemonica Z80 |
Descrierea simbolica |
Cod obiect |
Indicatorii de conditii |
||||||
Binar |
Hexa |
S |
Z |
H |
P/V |
N |
C |
||
ADD HL, dd |
HL HL+dd |
00dd1001 |
x |
|
|
||||
ADC HL, dd |
HL HL+dd +CY |
01dd1010 |
ED |
|
|
x |
V |
|
|
SBC HL, dd |
HL HL-dd -CY |
01dd0010 |
ED |
|
|
x |
V |
|
|
ADD IX, ss |
IX IX+ss |
01ss1001 |
DD |
x |
|
|
|||
ADD IY, pp |
IY IY+pp |
00pp1001 |
FD |
x |
|
|
|||
INC dd |
dd dd+1 |
00dd0011 | |||||||
INC IX |
IX IX+1 |
|
DD
| ||||||
INC IY |
IY IY+1 |
|
FD
| ||||||
DEC dd |
dd dd - 1 |
00dd1011 | |||||||
DEC IX |
IX IX - 1 |
|
DD 2B | ||||||
DEC IY |
IY IY - 1 |
|
FD 2B |
Operatii aritmetice pe 16 biti
Mnemonica Z80Descrierea simbolica |
Cod obiect |
Indicatorii de conditii | |||||||
Binar |
Hexa |
S |
Z |
H |
P/V |
N |
C |
||
RLCA |
CY A7 A0 A7 |
|
|
|
|
|
|||
RLA |
CY A7 A0 CY |
|
|
|
|
|
|||
RRCA |
|
0F |
|
|
|
||||
RRA |
|
1F |
|
|
|
||||
RLC r |
00000 r |
CB |
|
|
|
P |
|
|
|
RLC (HL) |
|
CB
|
|
|
|
P |
|
|
|
RLC (IX+d) |
d
|
DD CB
|
|
|
|
P |
|
|
|
RLC (IY+d) |
d
|
FD CB
|
|
|
|
P |
|
|
|
RL r |
00010 r |
CB |
|
|
|
P |
|
|
|
RL (HL) |
|
CB
|
|
|
|
P |
|
|
|
RL (IX+d) |
d
|
DD CB
|
|
|
|
P |
|
|
|
RL (IY+d) |
d
|
FD CB
|
|
|
|
P |
|
|
|
RRC r |
00001 r |
CB |
|
|
|
P |
|
|
|
RRC (HL) |
|
CB 0E |
|
|
|
P |
|
|
|
RRC (IX+d) |
d
|
DD CB 1E |
|
|
|
P |
|
|
|
RRC (IY+d) |
d
|
FD CB 1E |
|
|
|
P |
|
|
|
RR r |
00011 r |
CB |
|
|
|
P |
|
|
|
RR (HL) |
|
CB 1E |
|
|
|
P |
|
|
|
RR (IX+d) |
d
|
DD CB 1E |
|
|
|
P |
|
|
|
RR (IY+d) |
d
|
FD CB 1E |
|
|
|
P |
|
|
|
|
00100 r |
CB |
|
|
|
P |
|
|
|
SLA (HL) |
|
CB
|
|
|
|
P |
|
|
|
SLA (IX+d) |
d
|
DD CB
|
|
|
|
P |
|
|
|
SLA (IY+d) |
d
|
FD CB
|
|
|
|
P |
|
|
|
SRA r |
00101 r |
CB |
|
|
|
P |
|
|
|
SRA (HL) |
|
CB 2E |
|
|
|
P |
|
|
|
SRA (IX+d) |
d
|
DD CB 2E |
|
|
|
P |
|
|
|
SRA (IY+d) |
d
|
FD CB 2E |
|
|
|
P |
|
|
|
SRL r |
00111 r |
CB |
|
|
|
P |
|
|
|
SRL (HL) |
|
CB 3E |
|
|
|
P |
|
|
|
SRL (IX+d) |
d
|
DD CB 3E |
|
|
|
P |
|
|
|
SRL (IY+d) |
d
|
FD CB 3E |
|
|
|
P |
|
|
|
RLD |
|
ED 6F |
|
|
|
P |
| ||
RRD |
|
ED
|
|
|
|
P |
|
Mnemonica Z80 |
Descrierea simbolica |
Cod obiect |
Indicatorii de conditii |
||||||
Binar |
Hexa |
S |
Z |
H |
P/V |
N |
C |
||
BIT b, r |
Z /rb |
01 b r |
CB |
x |
|
|
x |
| |
BIT b, (HL) |
Z /(HL)b |
01 b 110 |
CB |
x |
|
|
x |
| |
BIT b, (IX+d) |
Z /(IX+d)b |
d 01 b 110 |
DD CB |
x |
|
|
x |
| |
BIT b, (IY+d) |
Z /(IY+d)b |
d 01 b 110 |
FD CB |
x |
|
|
x |
| |
SET b, r |
rb |
11 b r |
CB | ||||||
SET b, (HL) |
(HL)b |
11 b 110 |
CB | ||||||
SET b, (IX+d) |
(IX+d)b |
d 11 b 110 |
DD CB | ||||||
SET b, (IY+d) |
(IY+d)b |
d 11 b 110 |
FD CB | ||||||
RES b, r |
rb |
10 b r |
CB | ||||||
RES b, (HL) |
(HL)b |
10 b 110 |
CB | ||||||
RES b, (IX+d) |
(IX+d)b |
d 10 b 110 |
DD CB | ||||||
RES b, (IY+d) |
(IY+d)b |
d 10 b 110 |
FD CB |
Mnemonica Z80 |
Descrierea simbolica |
Cod obiect |
Indicatorii de conditii |
||||||
Binar |
Hexa |
S |
Z |
H |
P/V |
N |
C |
||
JP nn |
PC nn |
n n |
C3 | ||||||
JP cc, nn |
daca cc PC nn altfel continua |
11 cc 010 n n | |||||||
JR e |
PC PC+e |
e - 2 |
| ||||||
JR C, e |
daca C = 1 PC PC+e altfel continua |
e - 2 |
| ||||||
JR NC, e |
daca C = 0 PC PC+e altfel continua |
e - 2 |
| ||||||
JR Z, e |
daca Z = 1 PC PC+e altfel continua |
e - 2 |
| ||||||
JR NZ, e |
daca Z = 0 PC PC+e altfel continua |
e 2 |
| ||||||
JP (HL) |
PC HL |
|
E9 | ||||||
JP (IX) |
PC IX |
|
DD E9 | ||||||
JP (IY) |
PC IY |
|
FD E9 | ||||||
DJNZ e |
B B - 1 daca B <> 0 PC PC+e altfel continua |
e - 2 |
|
Apeluri de subrutine, reveniri, instructiuni de restart
Mnemonica Z80 |
Descrierea simbolica |
Cod obiect |
Indicatorii de conditii |
||||||
Binar |
Hexa |
S |
Z |
H |
P/V |
N |
C |
||
CALL nn |
(SP-1) PCH (SP-2) PCL PC nn |
n n |
CD | ||||||
CALL cc, nn |
daca cc=1 CALL nn altfel continua |
11 cc 100 n n | |||||||
RET |
PCH (SP) PCL (SP+1) |
|
C9 | ||||||
RET cc |
daca cc=1 RET altfel continua |
11 cc 000 | |||||||
RETI |
Revenire din intrerupere |
|
ED 4D | ||||||
RETN |
Revenire din intrerupere nemascabila |
|
ED
| ||||||
RST p |
(SP-1) PCH (SP-2) PCL PCH PCL p |
11 t 111 |
Mnemonica Z80 |
Descrierea simbolica |
Cod obiect |
Indicatorii de conditii |
||||||
Binar |
Hexa |
S |
Z |
H |
P/V |
N |
C |
||
IN A, (n) |
A (n) |
n |
DB | ||||||
IN r, (C) |
r (C) |
01 r 000 |
ED |
|
|
|
P |
| |
INI |
(HL) (C) B B - 1 HL HL + 1 |
|
ED A2 |
x |
|
x |
x |
|
x |
INIR |
(HL) (C) B B - 1 HL HL + 1 se repeta pana cand B=0 |
|
ED B2 |
x |
|
x |
x |
|
x |
IND |
(HL) (C) B B - 1 HL HL - 1 |
|
ED AA |
x |
|
x |
x |
|
x |
INDR |
(HL) (C) B B - 1 HL HL - 1 se repeta pana cand B=0 |
|
ED BA |
x |
|
x |
x |
|
x |
OUT (n), A |
(n) A |
n |
D3 |
|
x |
||||
OUT (C), r |
(C) r |
01 r 001 |
ED |
|
x |
||||
OUTI |
(C) (HL) B B - 1 HL HL + 1 |
|
ED A3 |
x |
|
x |
x |
|
x |
OTIR |
(C) (HL) B B - 1 HL HL + 1 se repeta pana cand B=0 |
|
ED B3 |
x |
|
x |
x |
|
x |
OUTD |
(C) (HL) B B - 1 HL HL - 1 |
|
ED AB |
x |
|
x |
x |
|
x |
OTDR |
(C) (HL) B B - 1 HL HL - 1 se repeta pana cand B=0 |
|
ED BB |
x |
|
x |
x |
|
x |
r, r |
Registru |
b |
Bit testat |
|
|
B |
|
|
|
|
C |
|
|
|
|
D |
|
|
|
|
E |
|
|
|
|
H |
|
|
|
|
L |
|
|
|
|
A |
|
|
|
|
|
dd, qq, ss, pp |
Registre - dd |
Registre - qq |
Registre - ss |
Registre - pp |
|
BC |
BC |
BC |
BC |
|
DE |
DE |
DE |
DE |
|
HL |
HL |
IX |
IY |
|
SP |
AF |
SP |
SP |
Politica de confidentialitate | Termeni si conditii de utilizare |
Vizualizari: 1297
Importanta:
Termeni si conditii de utilizare | Contact
© SCRIGROUP 2024 . All rights reserved