PUSH
The
contents
of
the
register
pair
are
pushed
into
the
external
memory
LIFO
(last-in,
first-out)
Stack.
The
Stack
Pointer
(SP)
register
pair
holds
the
16-bit
address
of
the
current
"top"
of
the
Stack.
This
instruction
first
decrements
the
SP
and
loads
the
high
order
byte
of
register
pair
into
the
memory
address
now
specified
by
the
SP;
then
decrements
the
SP
again
and
loads
the
low
order
byte
of
into
the
memory
location
corresponding
to
this
new
address
in
the
SP.
The
operand
qq means
register
pair
BC,
DE,
HL,
or
AF,
assembled
as
follows
in
the
object
code:
Pair
~
BC
00
DE
01
HL
10
AF
11
1'1
CYCLES:
3
T
STATES:
11(5,3,3)
If
the
AF
register
pair
contains
2233H
and
the
Stack
Pointer
contains
1007H,
after
the
instruction
memory
address
1006H
will
contain
22H,
memory
address
1005H
will
contain
33H,
and
the
Stack
Pointer
will
contain
1005H.
Содержание ATES Z80
Страница 1: ......
Страница 5: ......
Страница 6: ...Juanlurn c cc r 11 SoJt 391262 Jr ml tOl...
Страница 32: ......
Страница 38: ...If Address 2130ll contains 65ll and address 2131H contains 78ll after the instruction...
Страница 56: ......
Страница 79: ......
Страница 80: ......
Страница 82: ...If the contents of the Accumulator are 44H and the contents of register Care IlH after the execution of...
Страница 86: ...10050 is 220 after the execution of ADD A IX SH the contents of the Accumulator will be 33H...
Страница 88: ......
Страница 104: ...If the contents of register Dare 280 after the execution of...
Страница 112: ......
Страница 117: ...Example If the contents of the Accumulator are...
Страница 119: ...SCF S z H P V N C Not affected Not affected Rese t Not affected Re se t Set...
Страница 127: ......
Страница 128: ......
Страница 130: ...If register pair HL contains the integer 42428 and register pair DE contains IlllH after the execution of...
Страница 132: ...If the register pair BC contains 2222H register pair HL contains 5437H and the Carry Flas is set after the execution of...
Страница 136: ...If the contents of Index Register IX are 333H and the contents of register pair Be are 5555H after the execution of...
Страница 138: ...If the contents of Index Register IY are 333H and the contents of register pair Be are SSSH after the execution of...
Страница 140: ...INC x 11 0 a I DO I0 a a a a I 23 If the Index Register IX contains the integer 3300H after the execution of...
Страница 141: ...INC IY I 1 0 1 I FD I 0 a a a a I 23 If the contents of the Index Register are 2977H after the execution of...
Страница 143: ...DEe IX 1 1 0 1 1 1 0 1 I DO I0 0 1 0 1 0 1 I 2B If the contents of Index Register IX are 2006ll after the execution of...
Страница 144: ...DEe IY I 1 0 I FD I 0 a a a I 28 If the contents of the Index Register IY are 7649H after the execution of...
Страница 145: ......
Страница 146: ......
Страница 148: ...Example If the contents of the Accumulator are...
Страница 150: ...If the contents of the Accumulator and the Carry Flag are the contents of the Accumulator and the Carry Flag will be...
Страница 152: ...the contents of the Accumulator and the Carry Flag will be...
Страница 154: ...If the contents of the Accumulator and the Carry Flag are the contents of the Accumulator and the Carry Flag will be...
Страница 185: ......
Страница 186: ......
Страница 203: ......
Страница 204: ......
Страница 212: ...The resulting object code and PC after the jump are shown below 480 LABEL JR NC LABEL 30 PC after jump 481 00...
Страница 214: ...The resulting object code and final PC value is shown below 300 JR Z LPBEL 301 302 303 304 305 LABEL...
Страница 216: ...The resulting object code and final PC value is shown below 47C LABEL 47D 47E 47F 480 JR NZ LABEL 481...
Страница 222: ......
Страница 237: ......
Страница 238: ......
Страница 243: ...memory location lOOOH will contain 7BH the HL register pair will contain lOOlH and register B will contain OFH...
Страница 261: ......
Страница 262: ......
Страница 267: ......