You would use a load register from memory instruction. All processors have such an instruction. The manual is called "Instruction Set Manual" for the processor of interest. Here is the one for an STM32 Cortex - M4Hello, I want to write a program that takes a binary number and a location and puts it inside a 32 bit register.
Is there a manual i could use to accomplish that?
Some google keyword so could use that will pont me to the right direction?
Thanks
The link in my message was obtained as the #1 google hit to the following search term. The LDR innstruction is on page 71Hello Papabravo, i tried to search in the document you gave the words " Instruction Set Manual " it didnt find anything.
Wow. There’s a lot of missing information there. What’s the value of location represent? Where’s the binary number? In the location? What processor are you using (registers depend on the processor)? What language is this program written in?
You're statement makes no sense. You can only put one 32-bit value in a 32-bit register- which one, the binary number or the location (address)? Learn how to program- masking, bit shifting, ANDing, ORing, etc.Hello, I want to write a program that takes a binary number and a location and puts it inside a 32 bit register.
Is there a manual i could use to accomplish that?
Some google keyword so could use that will pont me to the right direction?
Thanks