• Assembly variables form C
    I am writing a small C function which is suppose to replace the assembly function My rest code is written in assembly and the assembler (asm51) is used The data declaration is done as t33 EQU...
  • Branching to main form assembly error
    Note: This was originally posted on 25th August 2012 at http://forums.arm.com Hey guys, do you know why a simple branch to main from the reset handler causes an hard fault? Heres an example where I try...
  • Function to generate Triangle wave form
    Greeting all, I'm trying to write a simulate function to generate triangle wave form to test on Keil IDE, but I could not make it. I've read the code examples in Simulation section for sine, square and...
  • Calling a C-function from assembler
    I wrote the following experimental program: //file c_function.h #ifndef c_function_h #define c_function_h int add_int(int a, int b); #endif //file c_function.c #include "c_function.h" int...
  • Calling assembly function from C
    I am working on a project that has multiple C files and an assembly file. A function in one of the C files is calling an assembly subroutine. The project compiles fine but linking produces the following...