EasyManua.ls Logo

Samsung S3F84B8 - Relative Address (RA) Mode

Samsung S3F84B8
322 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
S3F84B8_UM_REV 1.00 3 ADDRESSING MODES
3-13
3.13 RELATIVE ADDRESS (RA) MODE
In Relative Address (RA) mode, a two’s complement signed displacement between - 128 and + 127 is specified in
the instruction. The displacement value is then added to the current PC value. Its result is the address of next
instruction to be executed. Before this addition occurs, the PC contains the address of 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.
OPCODE
Program Memory
Displacement
Program Memory
Address Used
Sample Instructions:
JR ULT,$+OFFSET ; Where OFFSET is a value in the range +127 to -128
Next OPCODE
+
Signed
Displacement Value
Current Instruction
Current
PC Value
Figure 3-13 Relative Addressing

Table of Contents

Other manuals for Samsung S3F84B8

Related product manuals