Intel MCS48 User Manual page 99

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

Advertisement

INSTRUCTION SET
Example:
INP12:
IN
A,P1
MOV
R6,A
IN
A,P2
MOV
R7,A
INC
A
Increment
Accumulator
INPUT
PORT
1
CONTENTS
TO ACC
MOVE ACC CONTENTS
TO
REG
6
INPUT
PORT
2
CONTENTS
TO ACC
MOVE ACC CONTENTS TO
REG
7
000
1
111
Example:
The
contents
of the
accumulator
are
incremented
by
one.
(A)*-
(A)+1
Increment contents
of
location
100
in
external
data
memory.
INCA:
MOV
R0,#100
MOVX
A,@R0
INCA
MOVX
@R0,A
INC R
r
Increment
Register
MOVE
'100'
DEC TO ADDRESS
REG
MOVE CONTENTS
OF LOCATION
100
TO
ACC
INCREMENT
A
MOVE ACC CONTENTS TO
LOCATION
100
00
1
1
r r r
The
contents
of
working
register
Y
are
incremented
by
one.
(Rr)-*- (Rr)+1
r=0-7
Example:
INCR0:
INC R0
INCREMENT ADDRESS
REG
INC
@R
r
Increment Data
Memory
Location
000
1
00
r
The
contents
of
the resident data
memory
location
addressed by
register
Y
bits
0-5*are
incremented
by
one.
((Rr))-*- ((Rr))+1
r=0-1
Example:
INCDM:
MOV
R1,#03FH
;MOVE
ONES TO REG
1
INC
@R1
INCREMENT
LOCATION
63
Mnemonics
copyright
Intel
Corporation
1976.
*0-6
for
8039/8049
4-17

Advertisement

Table of Contents
loading

Table of Contents