Welcome to mirror list, hosted at ThFree Co, Russian Federation.

crt0.c « w65 « sys « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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);
}