English
Language : 

S3FB42F Datasheet, PDF (147/432 Pages) Samsung semiconductor – 8-BIT CMOS MICROCONTROLLER
INSTRUCTION SET
S3FB42F
LLNK — Linked Subroutine Call Conditional
Format:
Operation:
Flags:
LLNK cc:4, imm:20
cc:4: 4-bit condition code
If condition is true, IL[19:0] ← {PC[19:12], PC[11:0] + 2}.
Further, when the program is equal to or larger than 64K word, PC[19:0] ← imm[19:0] as long as the
condition is true. If the program is smaller than 64K word, PC[15:0] ← imm[15:0].
There are 16 different conditions that can be used, as described in table 8-6.
–
NOTE:
Example:
%1
LLNK is used to conditionally to call a subroutine with the return address saved in the link register
(IL) without stack operation. This is a 2-word instruction.
LLNK
NOP
•
•
•
LD
•
•
•
LRET
Z, %1
R0, R1
// Address at 005Ch, ILX:ILH:ILL ← 00:00:5Eh
// Address at 005Eh
8-72