15 #define MEM_SIZE (6 * 1024)
17 #define MAX_ARGS_NUMBER 4
19 #define COMMENT_CHAR '#'
20 #define LABEL_CHAR ':'
21 #define DIRECT_CHAR '%'
22 #define SEPARATOR_CHAR ','
23 #define LABEL_CHARS "abcdefghijklmnopqrstuvwxyz_0123456789"
25 #define NAME_CMD_STRING ".name"
26 #define COMMENT_CMD_STRING ".comment"
36typedef char args_type_t;
47 args_type_t type[MAX_ARGS_NUMBER];
56 #define INSTRUCTION_ID_SIZE 1
57 #define CODING_BYTE_SIZE 1
70 #define DIR_IND_CODE 0b100
80 #define PROG_NAME_LENGTH 128
81 #define COMMENT_LENGTH 2048
82 #define COREWAR_EXEC_MAGIC 0xea83f3
86 char prog_name[PROG_NAME_LENGTH + 1];
88 char comment[COMMENT_LENGTH + 1];
94 #define CYCLE_TO_DIE 1536
op_t op_tab[]
The op_tab containing the informations of the instructions.
Definition op.c:18