Stack Pointer The - Intel MCS48 User Manual

Family of single chip microcomputers
Hide thumbs Also See for MCS48:
Table of Contents

Advertisement

INSTRUCTION SET
OUTL
Pp,A
Output Accumulator Data
to
Port
1
or
2
00
11
1
Opp
This
is
a
2-cycle
instruction.
Data
residing
in
the
accumulator
is
transferred
(written) to
port
'p'
and
latched.
Example:
(Pp)—
(A)
OUTLP:
MOV
A,R7
OUTL
P2,A
MOV
A.R6
OUTL
P1.A
p=1-2
MOVE
REG
7
CONTENTS TO ACC
OUTPUT ACC CONTENTS TO PORT
2
MOVE
REG
6
CONTENTS TO ACC
OUTPUT ACC CONTENTS TO PORT
1
RAD
Move
Conversion
Result Register
to
Accumlator
(8022 Only)
1000
00 00
This
is
a
two
cycle
instruction.
The
contents
of
the
A/D
conversion
result register
are
moved
to
the
accumulator.
(A)
(CRR)
RET
Return Without
PSW
Restore
10 00 00
11
This
is
a 2-cycle
instruction.
The
stack pointer
(PSW
bits
0-2)
is
decremented.
The
program
counter
is
then
restored
from
the
stack.
PSW
bits
4-7 are
not
restored.
(SP)
(SP)-1
(PC)—
((SP))
RETI
Return
From
Interrupt
(8022 Only)
100
1
00
11
This
is
a
two
cycle
instruction.
The
stack pointer
is
decremented and
the
program
counter
is
restored
from
the
stack. Interrupt
input
logic
is
re-enabled.
(SP)«
(PC)
(SP)-1
((SP))+1
Mnemonics
copyright
Intel
Corporation
1976.
4-29

Advertisement

Table of Contents
loading

Table of Contents