0

Working with ASM code, bit I don't understand what does is the difference between these lines?

VLDR            S0, [R5]
VLDR            S2, [R5,#4]

What is the meaning of #4?

Austin Burk
  • 128
  • 6

1 Answers1

1
VLDR            S0, [R5]

Load single-precision extension register S0. R5 is the ARM register with the base address for the transfer.

VLDR            S2, [R5,#4]

Load single-precision extension register S2. R5 is the ARM register with the base address for the transfer; however we will be adding the numeric offset (#4) to the base address R5 to get the address used for the transfer.

Austin Burk
  • 128
  • 6