Intel MCS48 User Manual page 105

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

Advertisement

INSTRUCTION SET
MOV
A,T
Move
Timer/Counter Contents
to
Accumulator
100
00
10
The
contents
of
the timer/event-counter
register
are
moved
to
the
accumulator.
(A)--
(T)
Example:
Jump
to
"EXIT"
routine
when
timer
reaches
'64',
that
is,
when
bit
6
set
assuming
initialization 64,
;MOVE TIMER
CONTENTS TO
;ACC
;JUMP
TO
'EXIT
IF
ACC
BIT
;6=1
TIMCHK:
MOV
A,T
JB6EXIT
MOV
PSW,A Move
Accumulator Contents
to
PSW
(Not
in
8021, 8022)
110
1
0111
The
contents
of
the
accumulator
are
moved
into
the
program
status
word.
All
condition
bits
and
the
stack pointer are
affected
by
this
move.
(PSW)-«-
(A)
Example:
Move
up
stack pointer
by
two
memory
locations,
that
is,
increment
the pointer
by
one.
INCPTR:
MOV
A.PSW
INC
A
MOV
PSW.A
MOVE PSW CONTENTS TO ACC
INCREMENT
ACC
BY
ONE
MOVE ACC CONTENTS TO PSW
MOV
R
r
,A
Move
Accumulator Contents
to
Register
10 10
1
r
r
r
The
contents
of
the
accumulator
are
moved
to
register
'r'.
(Rr)—
(A)
MRA:
MOV
R0,A
r=0-7
Example
MOV
R
r
,#data
Move
Immediate Data
to
Register
;MOVE
CONTENTS OF ACC TO
;REG
10
11
1r
2
r
l
r
d7d
6
d
5
d
4
d
3
d
2
d
1
d
This
is
a 2-cycle
instruction.
The
8-bit
value
specified
by
'data'
is
moved
to register
'r\
(Rr)^- data
r=0-7
Mnemonics
copyright
Intel
Corporation
1976.
4-23

Advertisement

Table of Contents
loading

Table of Contents