/*ADDM.C - PROGRAM IN C CALLING A FUNCTION IN ASSEMBLY*/ extern int addmfunc(); /*external assembly function*/ int temp = 10; /*global C variable */ main() { volatile int *IO_OUT=(volatile int *) 0x809802; /*addr for result*/ int count; for (count = 0; count < 5; ++count) { *IO_OUT++=addmfunc(count); /*calls assembly function five times*/ } }