Intel MCS48 User Manual page 118

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

Advertisement

INSTRUCTION SET
Example:
Assume
program
counter contents have been stacked
in
locations 22-23.
XCHNIB:
MOV
R0,#23
;MOVE
'23'
DEC TO REG
CLR
A
;CLEAR
ACC TO ZEROS
XCHD
A,@R0
;EXCHANGE
BITS
0-3
OF
ACC
AND
LOCATION
23 (BITS
8-11
OF PC ARE ZEROED,
ADDRESS
REFERS
TO PAGE
0)
XRL
A,R
r
Logical
XOR
Accumulator
With
Register
Mask
110
1
1
r
r
r
Data
in
the
accumulator
in
EXCLUSIVE ORed
with the
mask
contained
in
working
register Y.
(A)-«-
(A)
XOR
(Rr)
XORREG: XRL
A,R5
r=0-7
;'XOR'
ACC CONTENTS
WITH
;MASK
IN
REG
5
Example
XRL A,@R
r
Logical
XOR
Accumulator
With
Memory Mask
110
1
00
Or
Data
in
the
accumulator
is
EXCLUSIVE ORed
with the
mask
contained
in
the data
memory
location
addressed by
register
Y,
bits
0-5*
(A)-*-
(A)
XOR
((Rr))
r=0-1
Example:
XORDM:
MOV
R1,
#20H
XRL A,@R1
MOVE
'20'
HEX TO REG
1
'XOR'
ACC CONTENTS
WITH
MASK
IN
LOCATION
32
XRL
A,#data
Logical
XOR
Accumulator
With
Immediate
Mask
110
1
00
11
d7ded5d4
d3d2
d-idp
This
is
a 2-cycle
instruction.
Data
in
the
accumulator
is
EXCLUSIVE ORed
with
an
immediately-specified
mask.
(A)-«-
(A)
XOR
data
Example:
XORID:
XOR
A,#HEXTEN
XOR CONTENTS OF ACC
WITH
MASK EQUAL
VALUE OF
SYMBOL
'HEXTEN'
Mnemonics
copyright
Intel
Corporation
1976.
*0-6
for
8039/8049
4-36

Advertisement

Table of Contents
loading

Table of Contents