2006-07-19 09:21 PM
problems with passing variables of a function
2006-07-19 07:25 PM
Hi,
now I have my next problem: I have a function which is defined like this: void Test(uint16 type, uint16 cardNo, uint16 msgNo, uint16 value, uint16 length, uint16 counter); Now, I call it like this: Test(1, 2, 3, 4, 5, 6); When I look at the variables inside the function, type, cardNo, msgNo and value are ok, but for length and counter I get wrong values. When I look into the lst-file I can see following comment: 1911 ; CSEs: 1912 ; msgNo = R14 1913 ; value = R15 1914 ; cardNo = R13 1915 ; type = R12 1916 ; counter = offset 2 1917 ; length = offset 0 Why doesn't this work? This code worked on a ST10F269, but now I use the ST10F276 and Tasking V8.0r1. I don't use any debugger, I send this values via ASC to a ''hyperterminal'' where I can see this values. Regards, Juergen