Retro68/gcc/newlib/libc/sys/w65/crt0.c
Wolfgang Thaller d464252791 re-add newlib
2017-04-11 23:13:36 +02:00

17 lines
170 B
C

int p;
extern int edata;
extern int end;
start()
{
int *s;
asm ("lda #stack");
asm ("tcs");
for (s = &edata; s != &end; s++)
*s = 0;
main();
exit(0);
}