• inline assembly to ljmp
    What's the inline assembly to ljmp to 0x00040000? I tried: __asm { ljmp 0x00040000 } but I get an error, but no description of what the error is. And, I haven't found any help online for the...
  • LPC2148 ADC working but incorrectly
    hey i am using LPC 2148. and configured the hardware for taking the analog signal at P0.28 which is ADC0 channel 1. i am using following code but the output stays 0 or 1023 only. my hardware...
  • 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...