beautypg.com

96 call:d (call subroutine), Call:d (call subroutine) – FUJITSU FR family 32-bit microcontroller instruction manuel CM71-00101-5E User Manual

Page 221

background image

197

CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS

7.96

CALL:D (Call Subroutine)

This is a branching instruction with a delay slot.
After saving the address of the next instruction after the delay slot to the "RP", branch
to the address indicated by "label12" relative to the value of the program counter (PC).
When calculating the address, double the value of "rel11" as a signed extension.

CALL:D (Call Subroutine)

Assembler format:

CALL : D label12

Operation:

PC + 4

RP

PC + 2 + exts (rel11 × 2)

PC

Flag change:

N, Z, V, and C: Unchanged

Execution cycles:

1 cycle

Instruction format:

N

Z

V

C

MSB

LSB

1

1

0

1

1

rel11