We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
I find Arm has 16 bit immediate value load to register instruction, but it has no instruction to load 32 bit value to register. I am new to asm level programming. How many ways to load a register to a desired value for an Arm CPU?
thanks,
This blog may be useful:
How to Load Constants in Assembly for ARM Architecture
In particular it shows how to use MOVW and MOVT to load two 16-bit constants from the instruction steam, which is often a better solution that a literal load (which pollutes the D-Cache).