Re-upload history
This commit is contained in:
commit
d5159ec11b
30 files changed
+4892
No files matched your search
+26
@@ -0,0 +1,26 @@
|
||||
#include <stdio.h>
|
||||
|
||||
//writerul [RULFILE] saiblibc.lib golibc.lib [LABEL-_SAIBStartup]
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
FILE *file = fopen(argv[1], "w");
|
||||
if (file == NULL) {
|
||||
printf("Error opening file %s\n", argv[1]);
|
||||
return 1;
|
||||
}
|
||||
|
||||
fprintf(file, "format:\n");
|
||||
fprintf(file, " code(align:1, logic:0x24, file:0x24);\n");
|
||||
fprintf(file, " data(align:4, logic:stack_end, file:code_end);\n");
|
||||
fprintf(file, "file:\n");
|
||||
fprintf(file, " %s;\n", argv[2]);
|
||||
fprintf(file, " %s;\n", argv[3]);
|
||||
fprintf(file, "label:\n");
|
||||
fprintf(file, " %s;\n", argv[4]);
|
||||
|
||||
printf("Write Rul Finish\n");
|
||||
|
||||
fclose(file);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user