Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Company
LOGO
The stack
www.themeart.com
The stack
www.themeart.com
www.themeart.com
until
new information is stored in that memory location
www.themeart.com
PUSH H
The stack pointer is decremented by one to 2098 H ,
and the contents of the h register are copied to
memory location 2098H.
8085 Register
The stack pointer register is again
F
A
C
B
decremented by one to 2097H,and
E
D
L
F2
H 42
the contents of the L register are
SP
2097
copied to memory location 2097H.
Memory
The contents of the register pair
HL are not destroyed ; however
F2
2097
HL is made available for delay
42
2098
X
2099
counter.
www.themeart.com
POP H
www.themeart.com
www.themeart.com
www.themeart.com
12
FFFB
FFFC
FFFD
FFFE
FFFF
80
80
12
FLAG
12
80
80
12
FFFF
www.themeart.com
10
Subroutines
www.themeart.com
11
Subroutines
The
www.themeart.com
12
,16 bit
Call subroutine in conditionally
located at the memory address
specified by the 16 bit operand.
This instruction places the address
of the next instruction on the stack
and transfer the program execution
to the subroutine address.
www.themeart.com
13
www.themeart.com
14
General characteristics of
CALL & RTE instruction
The CALL instructions are 3-byte
instruction; the second byte specifies
the low order byte ,and the third
byte specifies the high order byte of
the subroutine address.
2. The return instruction are 1-byte
instructions.
3. A CALL instruction must be used
in
conjunction with a return
instruction in the subroutine .
1.
www.themeart.com
15
Necessary steps to
implement
a subroutine
The
www.themeart.com
16
www.themeart.com
17
www.themeart.com
18