Intel MCS48 User Manual page 104

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

Advertisement

INSTRUCTION SET
MOV
A,
#data
Move
Immediate Data
to
Accumulator
00
10
00
11
d7de
CI5
d4
d3d2d-|do
This
is
a 2-cycle
instruction.
The
8-bit
value
specified
by
'data'
is
loaded
in
the accumulator.
Example:
(A)^-
data
MOV
A,#0A3H
;MOVE
'A3'
HEX
TO ACC
MOV
A,PSW
Move
PSW
Contents
to
Accumulator
(Not
in
8021
,
8022)
1100
111
The
contents
of
the
program
status
word
are
moved
to
the accumulator.
(A)-*-
(PSW)
Example:
Jump
to
'RB1SET
routine
if
PSW
bank
switch,
bit
4,
is
set.
BSCHK:
MOV
A.PSW
JB4RB1SET
MOVE PSW CONTENTS
TO
ACC
JUMP TO
'RB1SET
IF
ACC
BIT
4=1
MOV
A,R
r
Move
Register
Contents
to
Accumulator
1111
1
r
r r
8-bits of
data are
moved
from working
register
'r'
into
the
accumulator.
(A)^-
(Rr)
MAR:
MOV
A,R3
r=0-7
Example
MOV
A,@R
r
Move
Data
Memory
Contents
to
Accumulator
;MOVE
CONTENTS
OF REG
3
;TO
ACC
1111 OOOr
The
contents
of
the resident data
memory
location
addressed by
bits
0-5*of register
Y
are
moved
to
the
accumulator.
Register
Y
contents
are unaffected.
(A)—
((Rr))
r=0-1
Example:
Assume
R1 contains 00110110.
MADM:
MOV
A,@R1
;MOVE
CONTENTS
OF DATA
MEM
;LOCATION
54
TO ACC
Mnemonics
copyright
Intel
Corporation
1976.
*0-6
for
8039/8049
4-22

Advertisement

Table of Contents
loading

Table of Contents