summaryrefslogtreecommitdiff
path: root/newlib/libc/sys/w65/crt0.c
blob: b7598973bae28036db83663b22c9da7b8cac2216 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16


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);
}