Intel mcs-48 Microscope & Magnifier User Manual


 
1 08048/8748/8035 L
INSTRUCTION SET
Mnemonic Description
Bytes Cycle Mnemonic Description
Bytes Cycles
!
CALL
addr
Jump
to
subroutine 2 2
ADD
A,
R'
Add
register
to
A
'i
Return 2
ADD
A,@R
Add
data memory
to
A 1
e
RET
Return and restore status 2
ADD
A,
#data Add immediate
to
A
2
2
-g
RETR
ADDCA,
R
Add
register
with
carry
(I)
ADDCA,@R
Add
data memory
with
carry
1
CLR C Clear carry
ADDC
A,
<ldata
Add
immediate
with
carry
2 2
CPL C
Complement carry
ANL
A,
R
And
register
to
A
..
CLR Fa Clear flag a
01
ANL
A,@R
And
data memory
to
A
1
J!
Complement flag a
...
CPL Fa
AN
L A, ;.data
And
immediate
to
A
2 2
Clear flag 1
1
CLR
Fl
ORLA,
R
Or
register to A
CPL
Fl
Complement flag 1
S
ORL
A,@R
Or data memory
to
A
1
.II
ORLA,
#data Or immediate
to
A
2 2
~
E
XRLA,
R Exclusive or register
to
A
1
MOV A, R
Move register
to
A
~
u
XRL
A,@R
Exclusive or data memory
to
A 1 1
MOVA,@R
Move data memory
to
A
1 1
u
C(
XRL
A,
<ldata
Exclusjye or immediate to A
2 2
MOV
A,
#data
Move immediate
to
A
2 2
INCA
Increment A
MOV
R,A
Move A
to
register
DEC A
Decrement A
MOV@R,A
Move A
to
data
memory
1
1
CLR A Clear A
MOV R, #data Move immediate
to
register 2
2
CPLA
Complement A
~
MOV @R,#data
Move immediate
to
data memory
2
2
DAA
Decimal adjust A
~
MOV
A,
PSW
Move
PSW
to
A
SWAP A
Swap
nibbles
of
A
"
MOV
PSW,
A Move A
to
PSW
RLA
Rotate A left
1;
XCH A, R Exchange A and register
0
RLCA
Rotate A left through carry
XCHA,@R Exchange A and data memory
RR A ROfate A right
XCHD
A,@R
Exchange nibble
of
A and register
RRCA
Rotate A right through carry
MOVX
A,@R
Move external data memory
to
A
2
MOVX@R,A
Move A
to
external data memory
2
INA,
P
I
nput
port
to
A 2
MOVPA,@A
Move
to
A
from
current
page
2
OUTL
P,A
Output
A
to
port
2
MOVP3
A,@A
Move
to
A
from
page
3 2
ANL
P,
#data
And
immediate
to
port
2 2
'$
ORL
P,
#data
Or
immediate
to
port
2
2
MOVA,
T
Read timer/counter
I,
S-
INS
A,
BUS
Input
BUS to A 2
~
MOVT,A
Load timer/counter
"
~
OUTL
BUS,A
Output
A
to
BUS 1 2
c
STRTT
Start
timer
"
ANL
BUS,#data
And
immediate
to
BUS
2 2
~
STRT CNT
Start caU nter
..
.E
ORL
BUS,#data
Or
immediate
to
BUS
2
2
STOP
TCNT
Stop
timer/counter
MOVD
A, P
I
nput
expander
port
to
A
1
2
E
EN
TCNTI
Enable
timer/counter
interrupt
MOVDP,A
Output
A
to
expander
port
2
i=
DIS
TCNT!
Disable
timer/counter
interrupt
ANLD
P,
A
And A
to
expander
port
2
ORLD
P,
A
Or A
to
expander
port
2
EN I Enable external
interrupt
DISI
Disable external
interrupt
;
INCR
Increment register
i
SEL
RBO
Select register bank a
't
INC@R
I ncrement data
memory
SEL
RBI
Select register bank 1
II:
DECR
Decrement register
8
SEL
MBa
Select
memory
bank a
SEL
MBI
Select memory bank 1
J~mp
unconditional
2 2
ENTO
CLK
Enable
clock
ouiput
on
TO
JMP addr
JMPP@A
Ju
mp
ind irect 1 2
DJNZ
R, addr Decrement register and skip
2 2
NOP
No operation
JC
addr
Jump on carry = 1
2
2
JNC addr
Jump
on carry = 0
2 2
J Z addr Jump on A zero
2
2
JNZaddr
Jl.4mp
on
~
not
zero
2 2
~
JTOaddr
Jump
on
TO=
1 2 2
u
c:
JNTOaddr
Jump
on
TO=
a
2
2
It
II!
JTI
addr
Jump
on
Tl
= 1
2 2
JNTI
addr
Jump
on
TI
= 0
2 2
JFOaddr
Jump
on
FO=
1
2 2
JFl
addr Jump on
Fl
= 1
2
2
JTF
addr Jump
on
timer
flag
2
2
JNI addr Jump on iiiii' = a
2 2
JBb addr Jump on accumulator
bit
2 2
Mnemonics copyright
Intel
Corporation
1976
6-20
AFN-ootI8OA-03