-
Notifications
You must be signed in to change notification settings - Fork 3
/
lisence.h
33 lines (29 loc) · 1.1 KB
/
lisence.h
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
#ifndef LISENCE_H
#define LISENCE_H
#include <cstdio>
#define LC_RISCV_SIMULATOR
#define THIS_IS_A_RISCV_SIMULATOR
#define IF_YOU_HAVE_ANY_TROUBLE
#define PLEASE_CONTECT_ME_THROUGH_THE_MEANS_BELOW
void help_print(char* arg_name)
{
printf("\n");
printf("\n");
printf("This is a risc-v simulator.\n");
printf(" If you are facing any trouble, please contect me.\n");
printf(" My name: Zhang Huangzhao\n");
printf(" PKU ID: 1400017707\n");
printf(" Email: [email protected]\n");
printf("\n");
printf("Arguments:\n");
printf(" -v: set verbose mode (print some messages)\n");
printf(" -d: set debug mode (print much more messages)\n");
printf(" variable: add a global variable to the val list. When the simulator halts, print the memory values of each variable in the val list.\n");
printf(" riscv-executable-file: always goes first!");
printf("\n");
printf("Command: %s [riscv-executable-file] (-v) (-d) variable1 variable2 ...\n", arg_name);
printf(" eg. %s add -v result\n", arg_name);
printf("\n");
printf("\n");
}
#endif // LISENCE_H