source: trunk/libs/newlib/src/libgloss/xc16x/crt0.S @ 675

Last change on this file since 675 was 444, checked in by satin@…, 7 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 809 bytes
RevLine 
[444]1/*
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__
35calls #SEG:_main,#SOF:_main
36#else
37calla cc_UC,_main
38#endif
39        mov r8,#0x0     
40        trap #0
41ret
Note: See TracBrowser for help on using the repository browser.