
ARM Instruction Reference
4-12
Copyright © 2000, 2001 ARM Limited. All rights reserved.
ARM DUI 0068B
4.2.2
LDR and STR, halfwords and signed bytes
Load register, signed 8-bit bytes and signed and unsigned 16-bit halfwords.
Store register, 16-bit halfwords.
Signed loads are sign-extended to 32 bits. Unsigned halfword loads are zero-extended
to 32 bits.
Syntax
These instructions have four possible forms:
•
zero offset
•
pre-indexed offset
•
program-relative
•
post-indexed offset.
The syntax of the four forms, in the same order, are:
op
{
cond
}
type
Rd
, [
Rn
]
op
{
cond
}
type
Rd
, [
Rn
,
Offset
]{!}
op
{
cond
}
type
Rd
,
label
op
{
cond
}
type
Rd
, [
Rn
],
Offset
where:
op
is either
LDR
or
STR
.
cond
is an optional condition code (see
Conditional execution
on page 4-4).
type
must be one of:
SH
for Signed Halfword (
LDR
only)
H
for unsigned Halfword
SB
for Signed Byte (
LDR
only).
Rd
is the ARM register to load or save.
Rn
is the register on which the memory address is based.
Rn
must not be the same as
Rd
, if the instruction is either:
•
pre-indexed with writeback
•
post-indexed.
Содержание 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 ...