Download Print this page

Samsung S3C8248 User Manual page 44

8-bit cmos

Advertisement

S3C8248/C8245/P8245/C8247/C8249/P8249
RELATIVE ADDRESS MODE (RA)
In Relative Address (RA) mode, a twos-complement signed displacement between – 128 and + 127 is specified
in the instruction. The displacement value is then added to the current PC value. The result is the address of the
next instruction to be executed. Before this addition occurs, the PC contains the address of the instruction
immediately following the current instruction.
Several program control instructions use the Relative Address mode to perform conditional jumps. The
instructions that support RA addressing are BTJRF, BTJRT, DJNZ, CPIJE, CPIJNE, and JR.
Current Instruction
Sample Instructions:
JR
Program Memory
Next OPCODE
Displacement
OPCODE
ULT,$+OFFSET
;
Where OFFSET is a value in the range +127 to -128
Figure 3-13. Relative Addressing
Program Memory
Address Used
Current
PC Value
+
Signed
Displacement Value
ADDRESSING MODES
3-13

Advertisement

loading

This manual is also suitable for:

C8245P8245C8249C8247P8249