beautypg.com

Instruction set details – Maxim Integrated High-Speed Microcontroller User Manual

Page 164

background image

High-Speed Microcontroller User’s Guide

Rev: 062210

164 of 176

INSTRUCTION CODE

MNEMONIC

D

7

D

6

D

5

D

4

D

3

D

2

D

1

D

0

HEX

BYTE

CYCLE

EXPLANATION

ARIT

HMETI

C O

P

ER.

DA A

1 1 0 1 0 1 0 0 D4

1

1 Contents

of

Accumulator

are BCD,
IF [[(A

3-0

) > 9] OR

[(AC) = 1]] THEN
(A

3-0

) = (A

3-0

) + 6

AND
IF [[(A

7-4

) > 9] OR

[(C) = 1]] THEN
(A

7-4

) = (A

7-4

) + 6

ANL A, Rn

0

1

0

1

1

n

2

n

1

n

0

58-5F

1

1

(A) = (A) AND (Rn)

ANL A, direct

0

a

7

1

a

6

0

a

5

1

a

4

0

a

3

1

a

2

0
a

1

i

a

0

55

Byte 2

2

2

(A) = (A) AND (direct)

ANL

A,

@Ri 0 1 0 1 0 1 1 i 56-57 1

1 (A)

=

(A)

AND

((Ri))

ANL A, #data

0

d

7

1

d

6

0

d

5

1

d

4

0

d

3

1

d

2

0
d

1

0

d

0

54

Byte 2

2 2

(A)=(A)

AND

#data

ANL direct, A

0

a

7

1

a

6

0

a

5

1

a

4

0

a

3

0

a

2

1
a

1

0

a

0

52

Byte 2

2 2

(direct)

=

(direct) AND A

ANL direct,
#data

0

a

7

d

7

1

a

6

d

6

0

a

5

d

5

1

a

4

d

4

0

a

3

d

3

0

a

2

d

2

1
a

1

d

1

1

a

0

d

0

53

Byte 2
Byte 3

3 3

(direct)

=

(direct) AND #data

ORL

A,

Rn 0 1 0 0 1 n

2

n

1

n

0

48-4F

1

1

(A) = (A) OR (Rn)

ORL A, direct

0

a

7

1

a

6

0

a

5

0

a

4

0

a

3

1

a

2

1
a

1

I

a

0

45

Byte 2

2 2

(A)

=

(A) OR (direct)

ORL A, @Ri

0

1

0

0

0

1

1

i

46-47

1

1

(A) = (A) OR ((Ri))

ORL A, #data

0

d

7

1

d

6

0

d

5

0

d

4

0

d

3

1

d

2

0
d

1

0

d

0

44

Byte 2

2

2

(A) = (A) OR #data

ORL

direct,

A 0 1 0 0 0 0 1 0 42

Byte 2

2 2

(direct)

=

(direct) OR (A)

ORL direct,
#data

0

a

7

d

7

1

a

6

d

6

0

a

5

d

5

0

a

4

d

4

0

a

3

d

3

0

a

2

d

2

1
a

1

d

1

1

a

0

d

0

43

Byte 2
Byte 3

3 3

(direct)

=

(direct) OR #data

XRL

A,

Rn 0 1 1 0 1 n

2

n

1

n

0

68-6F

1

1

(A) = (A) XOR (Rn)

XRL A, direct

0

a

7

1

a

6

1

a

5

0

a

4

0

a

3

1

a

2

0
a

1

1

a

0

65

Byte 2

2 2

(A)

=

(A) XOR (direct)

XRL

A,

@

Ri 0 1 1 0 0 1 1 i 66-67 1

1 (A)

=

(A)

XOR

((Ri))

XRL

A,

#data 0 1 1 0 0 1 0 0 64

Byte 2

2 2

(direct)

=

(A) XOR #data

XRL

direct,

A 0 1 1 0 0 0 1 0 62

Byte 2

2 2

(direct)

=

(direct) XOR (A)

XRL direct,
#data

0

a

7

d

7

1

a

6

d

6

1

a

5

d

5

0

a

4

d

4

0

a

3

d

3

0

a

2

d

2

1
a

1

d

1

1

a

0

d

0

63

Byte 2
Byte 3

3 3

(direct)

=

(direct) XOR #data

CLR

A

1 1 1 0 0 1 0 0 E4

1

1 (A)

=

0

LOGIC

A

L O

PERATI

O

N

CPL

A

1 1 1 1 0 1 0 0 F4

1

1 (A) = (

A

)