diff options
| author | Carson Fleming <cflems@cflems.net> | 2026-03-28 07:21:26 -1000 |
|---|---|---|
| committer | Carson Fleming <cflems@cflems.net> | 2026-03-28 07:21:26 -1000 |
| commit | ee85f90edd17d9c3fadc0d118021c18a5bb8463c (patch) | |
| tree | 8dadc80019a1af86c6a133cf7195a2cb42115695 /register.h | |
| parent | 617732aac7394fb335baf957dc8cebac1fea756d (diff) | |
| download | ccc-ee85f90edd17d9c3fadc0d118021c18a5bb8463c.tar.gz | |
impl x86_64 calling convention
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 |
