1 ##==============================================================================
5 ## MN10200 startup code
7 ##==============================================================================
9 ## Copyright (c) 1995, 1996, 1997, 1998 Cygnus Solutions
11 ## The authors hereby grant permission to use, copy, modify, distribute,
12 ## and license this software and its documentation for any purpose, provided
13 ## that existing copyright notices are retained in all copies and that this
14 ## notice is included verbatim in any distributions. No written agreement,
15 ## license, or royalty fee is required for any of the authorized uses.
16 ## Modifications to this software may be copyrighted by their authors
17 ## and need not follow the licensing terms described here, provided that
18 ## the new terms are clearly indicated on the first page of each file where
22 ##------------------------------------------------------------------------------
26 ##------------------------------------------------------------------------------
31 mov _stack,a3 # Load up the stack pointer and allocate
34 mov _edata,a0 # Get the start/end of bss
37 cmp a0,a1 # If no bss, then do nothing
43 movb d0,(a0) # Clear a byte and bump pointer
53 jsr _main # Call main program
54 jmp _exit # All done, no need to return or
55 # deallocate our stack.