summaryrefslogtreecommitdiff
path: root/misc-test/compilateur_c_en_c/asm_defs.h
blob: 6dff9886b1927d5550e9122b695f11200d0ce9fc (plain)
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
#ifndef ASM_DEFS_H
#define ASM_DEFS_H


#define I_NOP 0x0
#define I_ADD 0x1
#define I_MUL 0x2
#define I_SOU 0x3
#define I_DIV 0x4
#define I_COP 0x5
#define I_AFC 0x6
#define I_JMP 0x7
#define I_JMF 0x8
#define I_INF 0x9
#define I_SUP 0xa
#define I_EQU 0xb
#define I_PRI 0xc

#define PAD '_'
#define UNK 0xff

char instructionNames[][4] = {
	"NOP", "ADD", "MUL", "SOU", "DIV", "COP", "AFC", "JMP", "JMF", "INF", "SUP", "EQU", "PRI"
};

#endif /* ASM_DEFS_H */