From ee85f90edd17d9c3fadc0d118021c18a5bb8463c Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Sat, 28 Mar 2026 07:21:26 -1000 Subject: impl x86_64 calling convention --- register.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 register.h (limited to 'register.h') 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 -- cgit v1.2.3