OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libc/] [sys/] [w65/] [crt0.c] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
 
2
 
3
int p;
4
extern int edata;
5
extern int end;
6
start()
7
{
8
int  *s;
9
  asm ("lda #stack");
10
  asm ("tcs");
11
  for (s = &edata; s != &end; s++)
12
    *s = 0;
13
 
14
  main();
15
  exit(0);
16
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.