• Count the number of trailing zeros without clz?
    I am trying to count the number of trailing zeros in floating points without using the clz command. what would be the easiest way to rewrite this code? ctz         RSB      r1,r0,#0         CMP      r0...
  • Problem with storing data instruction STR (ASM)
    I'm a really beginner with ARM. I write a very simple program to find the sum of three values Q,R,S and store it in the memory. However it doesn't works. Someone can show me what is my mistake. Thanks...
  • Interruptible-restartable instructions and Others
    Hi, As I have found in: Cortex-M0+ Devices Generic User Guide: 2.1.3. Core registers There is information about instruction behaviour during interrupts: "Interruptible-restartable instructions The interruptible...
  • Processor sometimes ignoring WFI instruction
    Hello everyone, I have a problem with WFI instruction and deep sleep mode. Normally everything work correct, but sometimes processor ignore instruction WFI and continue work. I use ARM Cortex-M0+...
  • Compute the division via shift instruction
    I write the code as following to evaluate the expression n = n / 2 asrs r0, r0, #1 But, I found the GCC will translate the expression n = n / 2 into the following instruction lsrs r1, r0, #31...