Alextek117 wrote:Hello everyone,
Which book would you suggest to learn ARM assembly? I'm looking at ARM Assembly Language: Fundamentals and Techniques, Second Edition by William Hohl & Christopher Hinds. It seems like a good book but it's center around ARM7 and not ARMv8 like the rp3.
I have that book, and I can recommend it.
The other resource of course is Google. Search for "arm sdiv instruction" for example and you will see many sites describing the instruction - usually quicker than looking it up in a book.
Having said that, the above book will give you a huge amount of background information that is not so easily found on google.
Finally, use the compiler. If you want to see how something is done, create a simple example in C, compile it to assembler with a recent version of GCC and study the resulting code. If you use too high an optimization level (-O3) the assembler output will be hard to understand, but -Os is readable enough and often produces code more similar to hand written assembler. Make sure you fully understand each instruction, what its doing and why its there.