• 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...
  • Define act as function?
    I've been using defines as fucntions like this: sbit DRIVE_PIN05 = P1^3; #define DRIVE_PIN05_HIGH (P1MDOUT |= 0x08);(DRIVE_PIN05 = 0) #define DRIVE_PIN05_LOW (P1MDOUT |= 0x08);(DRIVE_PIN05 ...
  • User-defined function in uVision5
    Hi everyone, I have an assembly code that I want to run in uVision4. The .a51 code is as follows: MOV A, #002H MOV R0, #040H MOV 040H, #001H XCH A, @R0 MOV R0, #050H MOV 050H, #0F0H...
  • how to define this function WBYTE
    why I have this error??? MENUS.C(245): warning C206: 'wbyte': missing function-prototype MENUS.C(245): error C267: 'wbyte': requires ANSI-style prototype
  • Keil, Instrinis function defination
    I am using AT89C55WD, 40 pin DIP, in one of my project. I have connected 12Mhz crystal. It is 8051 variant. So inst time is 1us. Using Keil v4.72.9.0 & C compiler V9.50.0.0 I am programming in...