Intel MCS48 User Manual page 106

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

Advertisement

INSTRUCTION SET
Examples: MIR4:
MOV
R4,#HEXTEN
MIR
5:
MOV
R5,#PI*(R*R)
MIR
6:
MOV
R6,
#0ADH
THE VALUE OF THE
SYMBOL
'HEXTEN'
IS
MOVED
INTO
REG
4
THE VALUE OF THE
EXPRESSION
'PI*(R*R)
IS
MOVED
INTO
REG
5
'AD'
HEX
IS
MOVED
INTO
REG
6
MOV @R
r
,A
Move
Accumulator Contents
to
Data
Memory
10 10
000
r
This
is
a
2-cycle
instruction.
The
contents
of
the
accumulator
are
moved
to
the resident
data
memory
location
whose
address
is
specified
by
bits
0-5* of register
'r\
Register
'r'
contents
are
unaffected.
((Rr))^-
(A)
r=0-1
Example:
Assume
R0
contains 000001
1 1
.
MDMA:
MOV
@R0,A
;MOVE
CONTENTS
OF
ACC TO
LOCATION
7
(REG
7)
MOV @R
r
,#data
Move
Immediate Data
to
Data
Memory
10
11
000
r
d7
6q
d
5
d4
d3d2d-|do
This
is
a 2-cycle
instruction.
The
8-bit
value
specified
by
'data'
is
moved
to
the resident data
memory
location
addressed by
register
'r',
bits
0-5!
((Rr))-«-
data
r=0-1
Examples:
Move
the
hexadecimal
value
AC3F
to
locations 62-63.
MIDM:
MOV
R0,#62
MOV
@R0,#0ACH
INC R0
MOV@R0,#3FH
MOVE
'62'
DEC TO ADDR REG
MOVE
'AC
HEX
TO
LOCATION
62
INCREMENT REG
TO
'63'
MOVE
'3F'
HEX
TO
LOCATION
63
MOV
T,A
Move
Accumulator Contents
to
Timer/Counter
110
00 10
The
contents
of
the
accumulator
are
moved
to
the
timer/event-counter
register.
(T)—
(A)
Example:
Initialize
and
start
event counter.
INITEC:
CLR A
MOV
T,A
STRT
CNT
CLEAR
ACC TO
ZEROS
MOVE
ZEROS TO EVENT
COUNTER
START
COUNTER
Mnemonics
copyright
Intel
Corporation
1976.
*0-6
for
8039/8049
4-24

Advertisement

Table of Contents
loading

Table of Contents