diff options
Diffstat (limited to 'register.h')
| -rw-r--r-- | register.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/register.h b/register.h new file mode 100644 index 0000000..323b668 --- /dev/null +++ b/register.h @@ -0,0 +1,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 |
