Intel XScale(R) technology topicSTRB(1) (Thumb*) - Store Register Byte

Syntax

STRB op, [basereg, #value]

where:

 op

Register containing source

 basereg

Base register containing the base address

 value

5-bit immediate value added to basereg constituting the address

Description  

The STRB instruction in this format takes 8-bit data from op and stores it to an address specified by value . 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

0

0

value

basereg

op

Example

1                                        ;@.text
2                                        ;@.globl funstrb
3                                        ;@.align 0
4                                        ;
5                                    AREA example,CODE,READONLY
6                                    CODE16
7
8                                    label1
9                                        ; Store low byte of register R4
10                                       ; to memory at address given by
11                                       ; value of R1 plus offset of 12
12                                       ; bytes
13    00000000    700C    STRB    R4, [R1, #OxC]

Further Information  

See LDRB(1) Instruction
See LDRB(2) Instruction
See LDRSB Instruction
See STRB(2) Instruction