![Samsung S3C9454B User Manual Download Page 47](http://html1.mh-extra.com/html/samsung/s3c9454b/s3c9454b_user-manual_4006826047.webp)
ADDRESSING MODES
S3C9454B/F9454B
3-12
RELATIVE ADDRESS MODE (RA)
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. 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.
The instructions that support RA addressing is 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-12. Relative Addressing
IMMEDIATE MODE (IM)
In Immediate (IM) addressing mode, the operand value used in the instruction is the value supplied in the operand
field itself. Immediate addressing mode is useful for loading constant values into registers.
(The Operand value is in the instruction)
Sample Instruction: LD R0,#0AAH
OPCODE
Program Memory
OPERAND
Figure 3-13. Immediate Addressing
Summary of Contents for S3C9454B
Page 1: ...S3C9454B F9454B 8 BIT CMOS MICROCONTROLLER USER S MANUAL Revision 1 ...
Page 25: ...PRODUCT OVERVIEW S3C9454B F9454B 1 10 NOTES ...
Page 35: ...ADDRESS SPACES S3C9454B F9454B 2 10 NOTES ...
Page 65: ...CONTROL REGISTERS S3C9454B F9454B 4 18 NOTES ...
Page 123: ...CLOCK CIRCUIT S3C9454B F9454B 7 4 NOTES ...
Page 133: ...RESET and POWER DOWN S39454B F9454B 8 10 NOTES ...
Page 145: ...I O PORTS S3C9454B F9454B 9 12 NOTES ...
Page 173: ...A D CONVERTER S3C9454B F9454B 12 8 NOTES ...
Page 183: ...ELECTRICAL DATA S3C9454B F9454B 13 10 NOTES ...