Intel XScale(R) technology topicLDRB(1) (Thumb*) -Load Register Byte

Syntax

LDRB dest, [basereg, #value]

where:

 dest

Destination register

 basereg

Register containing base address

 value

5-bit value added to basereg

Description 

The LDRB instruction in this format loads a byte from value and basereg into dest . This byte is zero-extended into a 32-bit word. It enables access to structure (record) fields.

Note

A data abort exception is generated if an invalid load or store data access is attempted.

Addressing Mode 

No operands.

Flags Affected 

N

Z

C

V

Q

S

I

F

T

 

 

 

 

 

 

 

 

 

Encoding

15

14

13

12

11

10

 

6

5

 

3

2

 

0

0

1

1

1

1

value

basereg

dest

Example

1                                        ;@.text
2                                        ;@.globl funldrb
3                                        ;@.align 0
4                                        ;
5                                    AREA example,CODE,READONLY
6                                    CODE16
7
8                                    label1
9                                        ; Load register R4 from address in
10                                       ; memory given by value of R1
11                                       ; plus offset of 12 bytes
12                                       ; Only a single byte is loaded into
13                                       ; low byte of register which is
14                                       ; then zero-extended to 32 bits
15    00000000    880C    LDRB    R4, [R1, #OxC]

Further Information 

See LDRB(2) Instruction
See LDRSB Instruction

See STRB(1) Instruction

See STRB(2) Instruction