• MOV in ASM
    if my ASM code is previously coded to run for 256Byte internal RAM of MCU (use MOV instruction) and i now need to change to external 2Kbyte RAM (use MOVX), then should i change R7 to R7:R6 because R7...
  • using and compiling with #pragma ASM
    I wanted to use the inline assembly code with C and hence added the assembly code as follows in the last line of the program as follows #include<reg51.h> float test; unsigned int t_first,t_second...
  • #pragma asm directive
    using #pragma asm directive and generating source file is not been able to generate C_Start referance. I know that I'll have to add c51s.lib file. But in UV3 How do I add this lib file? Docs avaible...
  • #pragma bytealign
    I have defined a #pragma bytealign in my code after a #pragma pack(1), in order to use structure pointers then I have defined a #pragma pack() to cancel the effect of the first pack(1) after the definition...
  • #pragma ASM/ENDASM inside a #define (???)
    Hello, I'm having trouble using #pragma ASM/ENDASM inside a #define statement. This is what I want to do inside the #define: - push ACC (assembly) - push IE (assembly) - EA = 0 (C) This...