• LJMP in C?
    What's the best way to do this in C? #pragma ASM LJMP APP_START; //Run app #pragma ENDASM ..or, is that it? APP_START does not exist. This is the launch point of an application loader. The...
  • From C, inline assembly LJMP to Numerical Address
    How do I perform a long jump to a numerical address from my C code? I'm pretty sure I have to do this with inline assembly - however that seems complicated for C51. I figured in C I could do this: ...
  • Turn off LJMP in Compiler
    Is there any way to have the compiler NOT generate LJMP's and other jumps that use absolute addresses? I'm asking because I'm trying to copy a Flash loader into RAM, and so I'd like all my jumps...
  • STARTUP.A51 LJMP $C_START problem
    In STARTUP.A51 MOV SP,#?STACK-1 LJMP ?C_START It compile to MAIN.HEX @0x0400 MOV SP(0x81),#0x20 LJMP C:0441 LJMP main(C:0100) @0x0440 SJMP C:03D2 Why it jump into the middle...
  • Interrupt without LJMP
    Timer0 is used for freq. generation at port 3.5 (Portf) of my AT89C4051 @ 24MHz. Each time the timer overflows the port is toggled. 1st case in asm: ORG 00BH tim0_int cpl Portf reti 2nd case...