• Reentrant function whose arguments are located to absolute addr
    I defined a reentrant function with 4 long arguments like this (excerpt from the lst) 21 unsigned long func0(unsigned long a, unsigned long b, unsigned long c, unsigned long d) large reentrant 22 ...
  • Array as Argument
    I want to send control codes to a printer they look like this : unsigned char cntrl_codes[6] = { 0x0d, 0x14, 0x1b, 0x4c, 0x0d, 0x0d}; I have made a function to send this array to serial port ...
  • sprintf argument restriction
    Hi, A question regarding C51 v6.23a... The C51 manual suggests that, using the 'large' memory model, sprintf is restricted to a 40 byte parameter list. Having used this knowledge to resolve a...
  • Could not pass argument in register
    Hello to everyone I have problem with passing argument in register I have 3 functions, The first and the second is ok and they use only R7, A ,B in function body and argument is passed in register...
  • Pointers as arguments in function calls
    I have an interrupt service routine that uses Register Bank 2. From within the ISR I call a function, passing a pointer as the argument-- e.g. XXX is defined in a typedef struct declaration The...