This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

STR instruction

Hi

I would like to know how to strore the value in the register R1 to a specifed memory location using STR instruction .I would like to specify the memory location using the keyword memory or any keyword.

To do this i wrote the program below and it didn't work.I would like to know whats the problem in my code? In my LDRB works and 23 is getting stored in R1

looking for ur help.

t.senthil

AREA Example, CODE, Readonly	; name of code block
ENTRY				; 1st exec. instruction
start

		LDRB R1, value
		STR  R1, memory
		SWI 11

memory  DCW 0x40000000
value 	DCW 0x23

end

0