newlib-cygwin/newlib/libc/sys/w65/crt0.c

17 lines
170 B
C
Raw Normal View History

2000-02-18 03:39:52 +08:00
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);
}