userland: add assembly support

Move arm assembly cheat here, and start some work on x86 cheat as well.
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-03-22 00:00:00 +00:00
parent 4943c9ed2e
commit 287c83f3f9
117 changed files with 3870 additions and 547 deletions

17
userland/arch/main.c Normal file
View File

@@ -0,0 +1,17 @@
/* This is the main entrypoint for all .S examples. */
#include "stdio.h"
#include "stdint.h"
#include "lkmc.h"
int asm_main(uint32_t *line);
int main(void) {
uint32_t ret, line;
ret = asm_main(&line);
if (ret) {
printf("error %d at line %d\n", ret, line);
}
return ret;
}