chore: migrate project into clean repository

This commit is contained in:
yuuux
2026-08-13 16:50:52 +08:00
commit d1d25a09e7
27405 changed files with 9422808 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
#define NUM_ARGS 2
static char __argvbuf0[] = {"exe"};
static char __argvbuf1[] = {"-v"};
static int __argc = NUM_ARGS;
static char * __argv[NUM_ARGS] = { __argvbuf0, __argvbuf1 };
void __iar_argc_argv(void)
{
// setup R0 (argc) and R1 (argv) arguments to main (see cmain.s)
asm volatile ("MOVS R1, %0" : : "r" (__argv));
asm volatile ("MOVS R0, %0" : : "r" (__argc));
}