• Problem passing variable to function in ISR
    So, I have a problem sending a value to a function at different parts of my code. Here is my code: void LongRightShift(unsigned char NumBitsShift) { // My Code Here NumBitsShift = NumBitsShift;...
  • sbit as parameter to a function
    Is it possible to define a sbit variable e.g. sbit port0_0 = P0 ^ 0; and to call a function with this sbit-definition as a parameter? e.g. setPortPin(port0_0); And how does the declaration...
  • Pass 2 dimensional array in function
    Does it possible to pass a 2 dimensional array to a funciton? does it accepts?
  • How The sbit keyword works
    how can an sbit variable be assigned an address which is intrinsically assigned to something else. e.g will the following code work on an 8051? sfr SCON = 0x98; // declare SCON sbit SM0 = 0x9F;...
  • Passing Variables between Assembly & C functions
    Hi All, I'm more of a Assembly guy than C. I came across this forum when I am seeking for some quick guide of sharing data registers / variables of different files of C and .a51 in a simple program...