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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [newlib-1.18.0/] [libgloss/] [xc16x/] [crt0.S] - Blame information for rev 862

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

Line No. Rev Author Line
1 207 jeremybenn
/*
2
 * Copyright (C) 2006 KPIT Cummins
3
 * Copyright (C) 2009 Conny Marco Menebröcker
4
 * All rights reserved.
5
 *
6
 * Redistribution and use in source and binary forms is permitted
7
 * provided that the above copyright notice and following paragraph are
8
 * duplicated in all such forms.
9
 *
10
 * This file is distributed WITHOUT ANY WARRANTY; without even the implied
11
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
 */
13
        .section .text
14
        .global _start
15
        .align 2
16
_start:
17
        #if __xc16xL__
18
        mov dpp0,#0x2
19
        #else
20
        mov dpp0,#0x300
21
        #endif
22
        mov dpp1,#1
23
        mov dpp2,#2
24
        mov dpp3,#3
25
        mov sp,#0xfc00
26
        mov r0,#0xc000
27
        #if __xc16x__
28
        mov csp,#0x0
29
        mov dpp0,#0x0
30
        #else
31
        mov csp,#0xc0
32
        #endif
33
 
34
#if __xc16xL__
35
calls #SEG:_main,#SOF:_main
36
#else
37
calla cc_UC,_main
38
#endif
39
        mov r8,#0x0
40
        trap #0
41
ret

powered by: WebSVN 2.1.0

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