English
Language : 

S3CB205 Datasheet, PDF (71/98 Pages) Samsung semiconductor – S3CB205/FB205
 
   
  1$
Format:
Operation:
Flags:
LJP cc:4, imm:20
cc:4: 4-bit condition code
PC[15:0] ← imm[15:0] if condition is true and the program size is less than 64K word. If the program
is equal to or larger than 64K word, PC[19:0] ← imm[19:0] as long as the condition is true. There
are 16 different conditions that can be used, as described in table 7-6.
–
 
Example:


%1



LJP cc:4 imm:20 is a 2-word instruction whose immediate field directly specifies the target address
of the jump.

LJP
C, %1
•
•
•
LD
R0, R1
•
•
•
// Assume current PC = 0812h
// Address at 10A5h
After the first instruction is executed, LJP directly jumps to address 10A5h if condition is true.