• 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...
  • 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...
  • 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...
  • 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...
  • 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...