From: Dave McGuire <mcguire@ne...> - 2007-02-04 03:52:24
On Feb 3, 2007, at 10:48 PM, Joe G (Home) wrote:
> Within my SDCC C code I would like to call or jmp to 0x1F00
> specifically... to activate a boot loader..
> Any pointers would be appreciated.
You can use the _asm directive to accomplish this with ease...See
the docs for specifics.
Port Charlotte, FL
From: Bodo Wenzel <bodowenzel@we...> - 2007-02-04 11:24:18
Try "( ( void (*)(void) ) 0x1F00 ) ()" to call with pure C.
"void (*)(void)" is a type definition for a pointer to a function with no
parameter and no return value. For clarification you might like to hide it in
This definition is used to cast the value 0x1F00.
And (xxx)() is the call of the function at address xxx.