Absolute Functions

Sometimes it is useful to call an absolute function (e.g., a special function in ROM). The following listing is a simple example of calling an absolute function using normal ANSI-C.

Listing: Absolute function


#define erase ((void(*)(void))(0xfc06))

void main(void) {

  erase(); /* call function at address 0xfc06 */

}