msp430-gcc (GCC) 3.3.4
Running under Linux.

I have a problem with the Parameter passing. I set up a function.

u0Write(char *buf, int len) {
...
}

I then set up some data to pass
char *addr = &ADC12MEM0;
int buflength = 2;

then I call the function
u0Write(addr,bufferlength);

I tell the debugger to break at u0Write;
the Debugger prints out the parameters passed:
Breakpoint 1, u0Write (buf=0x2 "\202 À", len=320)
well here is the problem 320 (decimal == 0x140) and 0x02 is the value of the len parameter, looks like these are getting swapped somehow? anyown know why?

--Del

Reply via email to