URL
https://opencores.org/ocsvn/forwardcom/forwardcom/trunk
Subversion Repositories forwardcom
[/] [forwardcom/] [libraries/] [startup_light.as] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
/********************************* startup_light.as ************************** Author: Agner Fog* date created: 2018-03-22* Last modified: 2021-05-26* Version: 1.11* Project: ForwardCom library libc_light.li* Description: startup: program initialization* C declaration: void _entry_point(int argc, char *argv[], char *envp[])** This is the default startup code for ForwardCom programs.* This is a light version for small systems. It does not call global* constructors and destructors, but just calls _main** Copyright 2018-2021 GNU General Public License http://www.gnu.org/licenses*****************************************************************************/code section execute align = 4extern _main: function reguse = 0xFFFFFFFF,0xFFFFFFFF// execution starts here:__entry_point function public reguse = 0xFFFFFFFF,0xFFFFFFFFcall _main // call main, the user programsys_call(1, 0x10) // system call exitfiller // make sure execution stops if the system call returns for some reason__entry_point endcode end
Go to most recent revision | Compare with Previous | Blame | View Log
