• Problem passing nested struct with pointer on the stack
    The following code (part of a simple GUI running on a 251 platform with an LCD) attempts to pass a struct which is a member of another struct on the stack. A pointer to the container struct is dereferenced...
  • Passing 2-D array
    I want to pass a 2-D array from one function to another function. I wrote the program but sometimes i get wrong values. float Arr[81][10]; void Monitor_Slot1(void) { if(Slot_1 == 0) { Dev_Curr...
  • Pass Strings for debug Command
    Howdee I'm trying to create a UART Debug Function in which i can pass it some parameters 1 of them a string or array of data I've tried then following but none of them work FUNC void UARTinput...
  • Problems with Passing Pointers as Parameters
    Okay, I'm trying to pass a pointer to a char buffer to a function. It works fine in the Keil simulator/debugger, but not on the target hardware. // Variable Declaration #define MAX_RX_SIZE 100 static...
  • passing function pointers as parameters
    Hi, I have written a simple 8051-application using uVision2 V2.37. I have defined a function which expects a pointer to a function which is then saved in an array of function pointers: int registerFunction...