old-cross-binutils/sim/erc32/examples/clock.c
1996-05-20 02:46:07 +00:00

8 lines
129 B
C

int clock()
{
volatile int *t_addr;
t_addr = (volatile int * ) 0x01F80080; /* Real-time clock address */
return(*t_addr);
}