beautypg.com

FUJITSU F2MCTM-16LX User Manual

Page 626

background image

610

APPENDIX

Note:

See Table B.5-1 and Table B.5-2 for information on (a) to (d) in the table.

Table B.8-14 19 Branch 2 Instructions

Mnemonic

#

RG

B

Operation

L

H

A
H

I

S

T

N

Z

V C R

M

W

CBNE

A,#imm8,rel

3

*1

0

0

Branch on byte (A) not equal to imm8

-

-

-

-

-

*

*

*

*

-

CWBNE

A,#imm16,rel

4

*1

0

0

Branch on word (A) not equal to imm16

-

-

-

-

-

*

*

*

*

-

CBNE

ear,#imm8,rel

4

*2

1

0

Branch on byte (ear) not equal to imm8

-

-

-

-

-

*

*

*

*

-

CBNE

eam,#imm8,rel *9

4+

*3

0

(b)

Branch on byte (eam) not equal to imm8

-

-

-

-

-

*

*

*

*

-

CWBNE

ear,#imm16,rel

5

*4

1

0

Branch on word (ear) not equal to imm16

-

-

-

-

-

*

*

*

*

-

CWBNE

eam,#imm16,rel*9

5+

*3

0

(c)

Branch on word (eam) not equal to imm16

-

-

-

-

-

*

*

*

*

-

DBNZ

ear,rel

3

*5

2

0

Branch on byte (ear) = (ear) - 1, (ear) not equal to 0

-

-

-

-

-

*

*

*

-

-

DBNZ

eam,rel

3+

*6

2

2 x (b)

Branch on byte (eam) = (eam) - 1, (eam) not equal to 0

-

-

-

-

-

*

*

*

-

*

DWBNZ

ear,rel

3

*5

2

0

Branch on word (ear) = (ear) - 1, (ear) not equal to 0

-

-

-

-

-

*

*

*

-

-

DWBNZ

eam,rel

3+

*6

2

2 x (c)

Branch on word (eam) = (eam) - 1, (eam) not equal to 0

-

-

-

-

-

*

*

*

-

*

INT

#vct8

2

20

0

8 x (c)

Software interrupt

-

-

R

S

-

-

-

-

-

-

INT

addr16

3

16

0

6 x (c)

Software interrupt

-

-

R

S

-

-

-

-

-

-

INTP

addr24

4

17

0

6 x (c)

Software interrupt

-

-

R

S

-

-

-

-

-

-

INT9

1

20

0

8 x (c)

Software interrupt

-

-

R

S

-

-

-

-

-

-

RETI

1

*8

0

*7

Return from interrupt

-

-

*

*

*

*

*

*

*

-

LINK

#imm8

2

6

0

(c)

Saves the old frame pointer in the stack upon entering the function,
then sets the new frame pointer and reserves the local pointer area.

-

-

-

-

-

-

-

-

-

-

UNLINK

1

5

0

(c)

Recovers the old frame pointer from the stack upon exiting the
function.

-

-

-

-

-

-

-

-

-

-

RET

*10

1

4

0

(c)

Return from subroutine

-

-

-

-

-

-

-

-

-

-

RETP *11

1

6

0

(d)

Return

from

subroutine

-

-

-

-

-

-

-

-

-

-

*1: 5 when a branch is made; otherwise, 4
*2: 13 when a branch is made; otherwise, 12
*3: 7+(a) when a branch is made; otherwise, 6+(a)
*4: 8 when a branch is made; otherwise, 7
*5: 7 when a branch is made; otherwise, 6
*6: 8+(a) when a branch is made; otherwise, 7+(a)
*7: 3 x (b) + 2 x (c) when jumping to the next interruption request; 6 x (c) when returning from the current interruption
*8: 15 when jumping to the next interruption request; 17 when returning from the current interruption
*9: Do not use RWj+ addressing mode with a CBNE or CWBNE instruction.
*10: Return from stack (word)
*11: Return from stack (long word)