• Delay Subroutine LPC2148 Assembly
    Hi Experts, I have just started with ARM assembly, I have written a program in assembly for toggling GPIO. The issue that I am facing is that the code works when I use several "nop" in place of "bl delay...
  • How many ways to set a register 32 bit value?
    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...
  • Spin-lock implementation for Aarch64 -- how to enforce acquire semantics?
    Here is a minimal C implementation of a spinlock "lock" operation using GCC's built-in atomics : #include <stdbool.h> void spin_lock(bool *l) {   while (__atomic_test_and_set(l, __ATOMIC_ACQUIRE))  ...
  • Experimentation of Dual Issue
    Hi all, Can somebody specify asm code to experiment the dual issue of instructions and how the processor executes parallely ? Also i tried like performing LDM instruction followed by LSL instruction....
  • C and Assembly interworking
    Hi, i am working with c and assembly interworking. I am trying to pass the array from c to assembly, but i am getting the error. Please help me in finding the error. The code is as follows #include <stdio...