Intel mcs-48 Microscope & Magnifier User Manual


 
INSTRUCTION SET
Mev
A,
#data Move Immediate Data
to
Accumulator
1
001
0 1 0 0 1 1 1 1 d7 d6 ds d4 J d3 d2
d1
do 1
This
is
a 2-cycle instruction. The 8-bit value
specified
by
'data' is loaded in the accumulator.
(A)--
data
Example: MOV A,#OA3H ;MOVE 'A3' HEX TO
ACC
MaV
A,PSW Move PSW Contents
to
Accumulator (Not in 8021, 8022)
11100101111
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 ;MOVE PSW
CONTENTS
TO
ACC
JB4
RB1SET ;JUMP TO 'RB1SET' IF
ACC
;BIT
4=1
MaV
A,R
r
Move
Register Contents
to
Accumulator
11111J1rrri
8-bits
of
data are moved from
working
register 'r'
into the accumulator.
(A)--
(Rr)
Example: MAR: MOV A,R3
r=0-7
;MOVE
CONTENTS
OF
REG
3
;TO
ACC
MaV
A,@R
r
Move Data Memory Contents
to
Accumulator
111111000rl
The contents
ot
the resident data
memory
location
addressed by bits 0-5*ot register 'r' are moved
to
the accumulator. Register 'r' 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