Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

[lpc2000] Jump from variable

2006-02-23 by Marko Pavlin

How can I call function where address is in pointer? Something like this:


void test1(void){
   puts("blah");
}


void *exec;

void main(void) {
    exec = (void *)test1;
    __asm
    {
    	BL 		exec
    }

...

It's out of context. There will be more pointers and *exec can be constant:
const void *exec = (void *)test1;


Thanks!

Marko

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.