-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.c
36 lines (29 loc) · 762 Bytes
/
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include <stdio.h>
#include "file_processing.h"
#include "machine_code.h"
#include "opcode.h"
#include "keywords.h"
#define UASGE_MESSAGE "Usage: assemble an assembly code. by files provided in the terminal."
int test();
int main(int argc, char **argv) {
char *file_name;
test((*argv) + 1);
if (argc == 1) {
printf(UASGE_MESSAGE);
}
init_opcode_hash_table();
init_keywords_list();
while (--argc) {
file_name = *++argv;
process_file(file_name);
}
return 0;
}
int test() {
/* bool test=(bool)(1);
printf("%d",test);*/
/*bool test = (bool) (1 == 3);
machine_word_instruction x = {2, 2, 2, 2, 0};
char *ttttes = parse_instruction_word_string_represntation(x);*/
return 0;
}