-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path20151607.c
58 lines (52 loc) · 990 Bytes
/
20151607.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#include "main.h"
#include "argument.h"
int main()
{
char arg[INPUT_SIZE];
char tmp_arg[INPUT_SIZE];
read_opcode_file();
while(1)
{
printf("sicsim> ");
fgets(arg,INPUT_SIZE, stdin);
strcpy(tmp_arg, arg);
refine_argument(tmp_arg, arg);
if (is_help(arg, tmp_arg))
;
else if (is_dir(arg, tmp_arg))
;
else if (is_quit(arg))
;
else if (is_history(arg, tmp_arg))
;
else if (is_dump(arg, tmp_arg))
;
else if (is_edit(arg, tmp_arg))
;
else if (is_fill(arg, tmp_arg))
;
else if (is_reset(arg, tmp_arg))
;
else if (is_opcodelist(arg, tmp_arg))
;
else if (is_opcode_mnemonic(arg, tmp_arg))
;
else if (is_type(arg, tmp_arg))
;
else if (is_assemble(arg, tmp_arg))
;
else if (is_symbol(arg, tmp_arg))
;
else if (is_loader(arg, tmp_arg))
;
else if (is_progaddr(arg, tmp_arg))
;
else if (is_bp(arg, tmp_arg))
;
else if (is_run(arg, tmp_arg))
;
else
error_print(ERROR_NOT_FOUND);
}
return 0;
}