Intel MCS48 User Manual page 108

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

Advertisement

INSTRUCTION SET
Example:
MOV128:
MOV
A,#128
MOVP
A,@A
MOVE
'128'
DEC TO
ACC
CONTENTS
OF
129th
LOCATION
IN
CURRENT PAGE
ARE
MOVED TO
ACC
MOVP3
A,@A Move
Page
3
Data
to
Accumulator
(Not
in
8021
,
8022)
1110
00
11
Example:
This
is
a 2-cycle
instruction.
The
contents
of
the
program
memory
location (within
page
3)
addressed by
the
accumulator
are
moved
to
the accumulator.
The
program
counter
is
restored following
this
operation.
(PC
-
7
K(A)
(PC
8
-iiK0011
(AK((PC))
Look up ASCII
equivalent
of
hexadecimal
code
in
table
contained
at
the
beginning
of
page
3.
Note
that
ASCII
characters are designated
by
a
7-bit
code; the eighth
bit
is
always
reset.
;MOVE
'B8'
HEX TO
ACC
(10111000)
;LOGICAL
AND ACC TO MASK
BIT
;7
(00111000)
;MOVE
CONTENTS
OF LOCATION
;'38'
HEX
IN
PAGE
3
TO ACC
;(ASCII
'8')
Access
contents
of
location
in
page
3
labelled
TAB1.
Assume
current
program
location
is
not
in
page
3.
TABSCH:
MOV
A,#LOW
TAB1
;ISOLATE BITS
0-7
OF LABEL
;ADDRESS VALUE
MOVP3
A,@A
;MOVE
CONTENTS
OF PAGE
3
;LOCATION LABELED
TAB1'
;TO
ACC
MOVX
A,@R
r
Move
External-Data-Memory Contents
to
Accumulator
TABSCH:
MOV
A,#0B8H
ANL
A,#7FH
MOVP3
A,@A
1000 OOOr
(Not
in
8021, 8022)
This
is
a 2-cycle
instruction.
The
contents
of
the
external
data
memory
location
addressed by
register
'r'
are
moved
to
the accumulator. Register
'r'
contents
are unaffected.
(A)-*-
((Rr))
r=0-1
Example:
Assume
R1 contains 01110110.
MAXDM:
MOVX
A,@R1
;MOVE
CONTENTS
OF LOCATION
;118TO
ACC
Mnemonics
copyright
Intel
Corporation
1976.
4-26

Advertisement

Table of Contents
loading

Table of Contents