• A fairly quick Count Leading Zeroes for Cortex-M0
    The Basics Some of us need to find out how many leading zero-bits there are in a 32-bit word. Such a feature is useful on many occasions, especially when writing a fast divide subroutine. The Cortex...
  • Count Leading Zeros
    Note: This was originally posted on 6th April 2009 at http://forums.arm.com Using the ARM9 CLZ instruction - I am wondering, generally, how often would it be required to use this function and does it...
  • Gcc naked attribute leaves some trailing function prologue asm instructions
    I've the following implementation for a svc exception handler on a cortex-m0: int __attribute__((naked)) sv_call_handler(uint32_t n, uint32_t arg1, uint32_t arg2, uint32_t arg3, uint32_t arg4, uint32_t...
  • Number of byte count
    Iam working with a project using AXI 4.0 protocol with incrememtal burst type .i need to find the number of bytes in each transfer. please anyone help me. thank you in advance
  • ARM Assembly how to print numbers instead of their ascii representation of that number
    I am new to arm assembly, i'm trying to print integer to screen instead of their ASCII representation of that number. Below is the code which i'm trying with instead of printing 99 i'm getting 'c' ...