Intel mcs-48 Microscope & Magnifier User Manual


 
intJ
18049/8039
INSTRUCTION SET
Mne
....
nic Dnc:rlption
Bytes
Cycl.
Mn
.....
nic
D-.iptlon
ByleS
Cycle.
ADDA.R
Add
register
to
A I
.~
CALL
Jump
to
subroutine
!i
RET
Return
2
ADD
A.@IR
Add
data
memory
to
A I
e
Return
and
restore
status
2
ADD A.
#data
Add
immediate
to
A
2
2
i
RETR
ADDCA.R
Add
register with carry
1
III
ADDCA.@R
Add
data
memory
with
carry
I
I
CLR C Clear Carry
ADDC A,
#data
Add
immediate
with carry
2 2
CPL'C
Complement
Car'y
ANL
A,
R
And
register
to
A
j
CLR
FO
Clear Flag 0
ANLA,@R
And
data
memory
to
A 1 I
Complement
Flag 0
II.
CPL
FO
ANL
A,
#data
And
immediate
to
A
2 2
CLR
Fl
Clear Flag 1
ORL
A, R
Or
register
to
A
CPL
FI
Complement
Flag I
~
ORLA,@R
Or
data
memory
to
A
..
ORL
A,
#data
Or
immediate
to
A
2 2
"
E
XRLA,
R Exclusive Or ragister
to
A
MOVA,R
Move register
to
A 1
ii
XRLA,@R
Exclusive
or
data
memory
to
A
I
MOVA,@R
Move
Jata
memory
to
A
I 1
C
XRLA,
#data
Exclusive
or
immediate
to
A
2 2
MOV
A,
#data
Move immediate
to
A
2 2
INCA
Increment A
MOVR,A
Move A
to
register
DEC A
Decrement A
MOV@R,A
Move A
to
data
memory
I 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
~
Move
A,PSW
Move
PSW
to
A
SWAP A Swap nibbles of A
..
MOV
PSW,
A Move A
to
PSW
RLA
Rotate
A left
';;
XCH A, R
Exchange A a nd register
C
RLCA
Rotate
A left
through
carry
XCHA,@R
Exchange A
and
data
memory
1
RRA
Rotate
A right
XCHD A,@R
Exchange nibble of A
and
register
1
RRCA
Rotate
A .right through carry
MOVXA,@R
Move external
data
memory
to
A
2
MOVX@R,A
Move A
to
external data
memory
2
INA,P
Input
port
to
A
2
MOVPA,@A
Move
to
A
from
current
page
2
OUTLP,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
i
ORL
P,
#data
Or
immediate
to
port
2
2
MOVA,
T Read
Timer/Counter
;
INSA,
BUS
Input
BUS
to
A
2
I
MOVT,A
Load
Timer/Counter
!2
OUTL
BUS, A
Output
A
to
BUS 1
2
STRTT
Start
Timer
"
;
ANL BUS,
#data
And
immediate
to
BUS
2 2
§
STRT CNT
Start
Counter
Q.
.5
ORL
BUS,#data
Or
immediate
to
BUS
2 2
STOP TCNT
Stop
Timer/Counter
MOVDA,
P
Input
Expander
port
to
A
2
.~
EN
TCNTI Enable
Timer/Counter
Interrupt
MOVDP,A
Output
A
to
Expander
port
2
...
DIS TCNTI
Disable
Timer/Counter
Interrupt
,I
ANLD
P,A
A nd 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
~
SEL
RBO
Select register bank 0
••
INC@R I ncrement
data
memory
SEL
RBI
Select register bank I
r
DECR
Decrement reg ister
~
SEL
MBO
Select
memory
ban k 0
~
SELMB1
Select
memory
bank I
JMP
addr
Jump
unconditional
2 2
ENTOCLK Enable Clock
output
O~
iO
JMPP@A
Jump
indirect
1 2
DJNZ R,
addr
Decrement
register
and
skip
2 2
NOP
No
Operatior.
JCaddr
Jump
on
Carry = I 2 2
JNC
addr
Jump
on
Carry = 0 2 2
J
Z
addr
Jump
on
A Zero 2 2
JNZ
addr
Jump
on
A
not
Zero
2 2
.t:
JTOaddr
Jump
on
TO
= 1
2 2
u
"
JNTO
addr
Jump
on
TO=
0
2 2
..
til
JTl
addr
Jump
on
T1
= 1
2 2
JNTI
addr
Jump
on
T1 = 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
JNladdr
Jump
on
INT = 0
2
2
JBbaddr
Jump
on
Accumulator
Bit
2 2
Mnemonics copyright
Intel Corporation 1976, 1977, 1978
643
AFN-00737-03