ARM Instruction Reference
ARM DUI 0068B
Copyright © 2000, 2001 ARM Limited. All rights reserved.
4-9
Flexible offset syntax
Both pre-indexed and post-indexed offsets can be either of the following:
#
expr
{-}
Rm
{,
shift
}
where:
-
is an optional minus sign. If
-
is present, the offset is subtracted from
Rn
.
Otherwise, the offset is added to
Rn
.
expr
is an expression evaluating to an integer in the range –4095 to +4095.
This is often a numeric constant (see examples below).
Rm
is a register containing a value to be used as the offset.
Rm
must not be r15.
shift
is an optional shift to be applied to
Rm
. It can be any one of:
ASR
n
arithmetic shift right
n
bits. 1
≤
n
≤
32.
LSL
n
logical shift left
n
bits. 0
≤
n
≤
31.
LSR
n
logical shift right
n
bits. 1
≤
n
≤
32.
ROR
n
rotate right
n
bits. 1
≤
n
≤
31.
RRX
rotate right one bit, with extend.
Содержание Developer Suite
Страница 10: ...Preface x Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 110: ...Assembler Reference 3 32 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 185: ...ARM Instruction Reference ARM DUI 0068B Copyright 2000 2001 ARM Limited All rights reserved 4 75 Example MSR CPSR_f r5 ...
Страница 238: ...Thumb Instruction Reference 5 44 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 282: ...Vector Floating point Programming 6 44 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 360: ...Index Index 6 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...