Intel MCS48 User Manual page 109

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

Advertisement

INSTRUCTION SET
MOVX @R
r
,A
Move
Accumulator Contents
to
External
Data
Memory
1001 000r
(Not
in
8021, 8022)
This
is
a 2-cycle
instruction.
The
contents
of
the
accumulator
are
moved
to
the external data
memory
location
addressed by
register
Y. Register
'r'
contents
are unaffected.
((Rr))^A
r=0-1
Example:
Assume R0
contains
1 1
0001
1 1
.
MXDMA:
MOVX
@R0,A
;MOVE
CONTENTS
OF
ACC TO
LOCATION
199
IN
EXPANDED
;DATA
MEMORY
NOP
The
NOP
Instruction
0000 0000
No
operation
is
performed. Execution continues
with
the following
instruction.
ORL
A,R
r
Logical
OR
Accumulator
With
Register
Mask
100
1
r
r
r
Data
in
the
accumulator
is
logically
ORed
with the
mask
contained
in
working
register
Y.
(A)-*-
(A)
OR
(Rr)
ORREG:
ORL
A,R4
r=0-7
Example
ORL
A,@R
r
Logical
OR
Accumulator
With
Memory Mask
;'OR'
ACC CONTENTS
WITH
;MASK
IN
REG
4
100 OOOr
Data
in
the
accumulator
is
logically
ORed
with the
mask
contained
in
the resident data
memory
location
referenced
by
register
Y,
bits
0-5*
(A)—
(A)
OR
((Rr))
Example:
ORDM:
MOV
R0,#3FH
ORL
A,@R0
r=0-1
;MOVE
'3F
HEX
TO REG
;'OR'
ACC CONTENTS
WITH
MASK
;IN
LOCATION
63
ORL
A,#data
Logical
OR
Accumulator
With
Immediate
Mask
100 00
11
d7d
6
d
5
d
4
d
3
d2d-|d
This
is
a 2-cycle
instruction.
Data
in
the
accumulator
is
logically
ORed
with
an
immediately-specified
mask.
(A)-«- (A)
OR
data
Example:
ORID:
ORL
A,#'X'
Mnemonics
copyright
Intel
Corporation
1976.
4-27
;'OR'
ACC CONTENTS
WITH
MASK
;01011000
(ASCII
VALUE OF X)
*0-6
for
8039/8049

Advertisement

Table of Contents
loading

Table of Contents