I really appreciate if someone recommend a book to learn coding in assembly. The target processor is STM32F0. Anyone there?
I already checked those of Joseph Yiu. Actually, I need a book with clear examples.
I think it's upto which assembler you use. At least Gnu assembler has different directives than Armasm.
When it comes to the instructions themselves and the core peripherals, the Architecture Reference Manual is probably the best description there is.
(ARMv6-M Architecture Reference Manual, http://infocenter.arm.com )
Also, keep in mind that different manufacturers have different peripherals in different addresses. Arm specification is about the core only.
The best description for STM32F0 series devices is the reference manual, like this (RM0091) https://www.st.com/content/ccc/resource/technical/document/reference_manual/c2/f8/8a/f2/18/e6/43/96/DM00031936.pdf/files/DM00031936.pdf/jcr:content/translations/en.DM00031936.pdf .
My two cents are the best way to learn ARM assembly is that reading compiled binary with your or others' source code. Different level of optimization also provides various techniques how to utilize architectural benefits as well as coding tweaks. Of course, you might need to learn ARM architecture in details too.