AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
Syntax:          LDR (or STR<destination>, [<base>{,<offset>}]

The destination field is the register into which the data will be transferred. The contents of the base and offset fields together specify the memory word to be accessed. The offset field is optional; if present, it will be added to the base field to give the required address. The offset field is specified in the same way as operand two in the data processing instructions.

Examples:
LDR  R0,[R1]          Load R0 from address R1
STR  R0,[R1,R2]          Store R0 at address R1 + R2
LDR  R0,[R1,#-4]     Load R0 from address R1 - 4
STR  R0,[R1,R2,LSL#2]     Store R0 at address R1 + R2*4

A further level of complexity is that of write back.

[sh-index] Back to list of manuals