• #define statements on variable declarations
    Hello. I am trying to find new and exciting ways to optimize (read: shrink down) my current code and want to include an eeprom autorefresh option to cut down on variables. Basically, when I have the...
  • HELP:How to define a complex MACRO?
    I had searched in the Discussion Forum for the whole moring but I couldn't find the right way to solve the problem I met,so I send this message hoping you guys can help me!Thanks in advance:-)My problem...
  • sbit with macro define
    Hi all, I just want to ask why I cannot use this in C51: ... sbit INPUT1 = P0 ^ 0; sbit INPUT2 = P0 ^ 1; #define CHECK_INPUT ((INPUT1 << 7) | (INPUT2 << 6)) When try using it: while(1...
  • Use MACRO C "#define value" in MACRO ASM
    I use KeilC uVision4 for 89C51 MCU. I use "Inline ASM Code", like this : void main() { #pragma ASM MOV R7, #( 80000/40000 ) #pragma ENDASM } -> When COMPILE, ASM result file give a...
  • How to define a macro function
    hi,     I want to ask a question.      How to define a macro function that can be called by C language in armasm?      I know that in GNU can be used in the following way: .macro push_x1_x12 push x1,x2...