On Mon, 19 Jan 2009 23:35:26 +0100 Georg-Johann Lay <[email protected]> wrote:
> > int f_call; > > f_call = fptr; //load the function via the pointer > > Just call it: > fptr(); //call function indirect Oh thanks, it works now ! :-) So I had only that part wrong, the declaration and initialisation of the pointer were correct then, better than nothing ;-) > Here, you have to do integer arithmetic, so cast the pointer to an int > and conpute on (unsigned) integer level. Thanks again, that did the trick, it now displays the pointer content on the LCD just fine. It reports 0x01BC when the map file says 0x0378. But 1BC times 2 makes 378 so... I am still not quite clear why the map file reports Flash adresses twice that of what the memory pointer of the AVR chip actually holds physically ? -- Vince _______________________________________________ AVR-GCC-list mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
