108048/8748/8035L

INSTRUCTION SET

 

Mnemonic

Description

Bytes

Cycle

 

ADD A, R'

Add register to A

 

 

 

ADD A,@R

Add data memory to A

1

 

 

ADD A, #data

Add immediate to A

2

2

 

ADDCA, R

Add register with carry

 

 

 

ADDCA,@R

Add data memory with carry

1

 

 

ADDC A, <ldata

Add immediate with carry

2

2

 

ANL A, R

And register to A

 

 

 

ANL A,@R

And data memory to A

 

1

 

AN L A, ;.data

And immediate to A

2

2

 

ORLA, R

Or register to A

 

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

u

XRL A,@R

Exclusive or data memory to A

1

1

u

C(

XRL A, <ldata

Exclusjye or immediate to A

2

2

 

 

INCA

Increment A

 

 

 

DEC A

Decrement A

 

 

 

CLR A

Clear A

 

 

 

CPLA

Complement A

 

 

 

DAA

Decimal adjust A

 

 

 

SWAP A

Swap nibbles of A

 

 

 

RLA

Rotate A left

 

 

 

RLCA

Rotate A left through carry

 

 

 

RR A

ROfate A right

 

 

 

RRCA

Rotate A right through carry

 

 

 

Mnemonic

Description

Bytes

Cycles

!

CALL addr

Jump to subroutine

2

2

'i

 

Return

 

2

e RET

 

 

-g

RETR

Return and restore status

 

2

(I)

 

 

 

 

 

..

CLR

C

Clear carry

 

 

CPL

C

Complement carry

 

 

J!01

CLR Fa

Clear flag a

 

 

...

CPL Fa

Complement flag a

 

 

 

CLR Fl

Clear flag 1

 

 

 

CPL Fl

Complement flag 1

 

 

 

MOV A, R

Move register to A

 

 

 

MOVA,@R

Move data memory to A

1

1

 

MOV A, #data

Move immediate to A

2

2

 

MOV R,A

Move A to register

 

 

 

MOV@R,A

Move A to data memory

1

1

~

MOV R, #data

Move immediate to register

2

2

MOV @R,#data Move immediate to data memory

2

2

~MOV A, PSW Move PSW to A

"MOV PSW, A Move A to PSW

1;

0 XCH A, R Exchange A and register

XCHA,@R

Exchange A and data memory

 

XCHD A,@R

Exchange nibble of A and register

 

MOVX A,@R

Move external data memory to A

2

MOVX@R,A

Move A to external data memory

2

 

to

 

INA, P OUTL P,A ANL P, #data

'$ ORL P, #data S- INS A, BUS ~.." OUTL BUS,A

ANL BUS,#data

.E ORL BUS,#data

MOVD A, P

MOVDP,A

ANLD P, A

ORLD P, A

;INCR

'tDECRINC@R II:

JMP addr

JMPP@A

DJNZ R, addr

JC addr

JNC addr

J Z addr

JNZaddr

~ JTOaddr

u

c:

It JNTOaddr

II! JTI addr

JNTI addr

JFOaddr

JFl addr

JTF addr

JNI addr

JBb addr

Input port to A

 

2

Output A to port

 

2

And immediate to port

2

2

Or immediate to port

2

2

Input BUS to A

 

2

Output A to BUS

1

2

And immediate to BUS

2

2

Or immediate to BUS

2

2

Input expander port to A

1

2

Output A to expander port

 

2

And A to expander port

 

2

Or A to expander port

 

2

Increment register

 

 

Increment data memory

 

 

Decrement register

 

 

J~mp unconditional

2

2

Ju mp ind irect

1

2

Decrement register and skip

2

2

Jump on carry = 1

2

2

Jump on carry = 0

2

2

Jump on A zero

2

2

Jl.4mp on ~ not zero

2

2

Jump on TO= 1

2

2

Jump on TO= a

2

2

Jump on Tl = 1

2

2

Jump on TI = 0

2

2

Jump on FO= 1

2

2

Jump on Fl = 1

2

2

Jump on timer flag

2

2

Jump on iiiii'= a

2

2

Jump on accumulator bit

2

2

 

MOVPA,@A

Move A from current page

2

 

MOVP3 A,@A

Move to A from page 3

2

 

MOVA, T

Read timer/counter

I,

~

MOVT,A

Load timer/counter

 

c

STRTT

Start timer

 

"

 

STRT CNT

Start caU nter

 

~

STOP TCNT

Stop timer/counter

 

E

EN TCNTI

Enable timer/counter interrupt

 

i=

 

 

DIS TCNT!

Disable timer/counter interrupt

 

 

EN I

Enable external interrupt

 

i

DISI

Disable external interrupt

 

SEL RBO

Select register bank a

 

SEL RBI

Select register bank 1

 

8 SEL MBa

Select memory bank a

 

 

SEL MBI

Select memory bank 1

 

 

ENTO CLK

Enable clock ouiput on TO

 

 

NOP

No operation

 

Mnemonics copyright Intel Corporation 1976

6-20

AFN-ootI8OA-03

Page 163
Image 163
Intel mcs-48 manual 108048/8748/8035L