Added / started some infrastructure / boilerplate code.

This commit is contained in:
2024-10-30 00:28:11 -05:00
parent 8923a2006d
commit 2c85077031
12 changed files with 273 additions and 27 deletions
+17 -1
View File
@@ -1,5 +1,21 @@
#include <stdio.h>
#include "../includes/futil.h"
int main(int argc, char** argv) {
printf("Hello World\n");
char* file;
size_t count;
if (argc <= 1) {
printf("Usage: assm <file.asm>\n");
return 2;
}
if (!ReadAllString(argv[1], &file, &count)) {
printf("Failed to read file '%s'.", argv[1]);
return 1;
}
printf(file);
}