-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
43b38a9
commit 6856c4d
Showing
3 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
#include <stdint.h> | ||
|
||
static uint64_t c_source_letter = 0; | ||
void usage(int err); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,23 @@ | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
|
||
#include "file_buffer.h" | ||
|
||
void usage(int err) | ||
{ | ||
FILE* dest = err ? stderr : stdout; | ||
|
||
fprintf(dest, "Usage: hasm [option] [file]\n"); | ||
fprintf(dest, "-I set default include directory\n"); | ||
fprintf(dest, "-v shows you your version of HASM\n"); | ||
fprintf(dest, "-h shows you this helpmap\n"); | ||
|
||
exit(err ? -1 : 0); | ||
} | ||
|
||
int main(int argc, char** argv) | ||
{ | ||
read_filesrc("examples/test.hasm"); | ||
usage(1); | ||
return 0; | ||
} |