summaryrefslogtreecommitdiff
path: root/register.h
blob: 943e83977b922d09ccf74a81ebfcde83ce2e2c2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef REGISTER_H
#define REGISTER_H

struct reg {
    const char* qword;
    const char* dword;
    const char* word;
    const char* byte;
};

extern const struct reg RAX;
extern const struct reg RDI;
extern const struct reg RSI;
extern const struct reg RDX;
extern const struct reg R10;
extern const struct reg R9;
extern const struct reg R8;

extern const struct reg* const CALLING_CONV[];
extern const unsigned char CC_N_REGS;

#endif