21 lines
360 B
C
21 lines
360 B
C
#include <stdio.h>
|
|
#include "../includes/futil.h"
|
|
|
|
int main(int argc, char** argv) {
|
|
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);
|
|
} |