start.c

来自「《嵌入式固件开发》一书的源码」· C语言 代码 · 共 28 行

C
28
字号
#include "stddefs.h"#include "monlib.h"extern void main();void__main(void){}voidstart(void){    char    **argv;    int     argc;    /* Connect the application to the monitor.  This must be done */    /* prior to the application making any other attempts to use the "mon_" */    /* functions provided by the monitor. */    monConnect((int(*)())(*(unsigned long *)0x20),(void *)0,(void *)0);    /* Extract argc/argv from structure and call main(): */    mon_getargv(&argc,&argv);    /* Call main, then return to monitor. */    return(main(argc,argv));}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?