summaryrefslogtreecommitdiff
path: root/register.h
blob: 323b66886523e7abf730ede3f90cd24396db1f05 (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 long long CC_N_REGS;

#endif