Samsung SC32442B54 User Manual page 100

Table of Contents

Advertisement

SC32442B RISC MICROPROCESSOR
ADDRESSING MODES
The transfer addresses are determined by the contents of the base register (Rn), the pre/post bit (P) and the up/
down bit (U). The registers are transferred in the order lowest to highest, so R15 (if in the list) will always be
transferred last. The lowest register also gets transferred to/from the lowest memory address. By way of
illustration, consider the transfer of R1, R5 and R7 in the case where Rn=0x1000 and write back of the modified
base is required (W=1). Figure 3.19-22 show the sequence of register transfers, the addresses used, and the
value of Rn after the instruction has completed.
In all cases, had write back of the modified base not been required (W=0), Rn would have retained its initial value
of 0x1000 unless it was also in the transfer list of a load multiple register instruction, when it would have been
overwritten with the loaded value. (Please check the meaning again)*****
ADDRESS ALIGNMENT
The address should normally be a word aligned quantity and non-word aligned addresses should not affect the
instruction. However, the bottom 2 bits of the address will appear on A[1:0] and might be interpreted by the
memory system.
Rn
1
R5
R1
3
Figure 3-19. Post-Increment Addressing
0x100C
0x1000
0x0FF4
0x100C
Rn
0x1000
0x0FF4
ARM INSTRUCTION SET
0x100C
R1
0x1000
0x0FF4
2
0x100C
R7
R5
R1
0x1000
0x0FF4
4
3-41

Advertisement

Table of Contents
loading

Table of Contents