aboutsummaryrefslogtreecommitdiff
path: root/regs.h
diff options
context:
space:
mode:
Diffstat (limited to 'regs.h')
-rw-r--r--regs.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/regs.h b/regs.h
new file mode 100644
index 0000000..7da45bf
--- /dev/null
+++ b/regs.h
@@ -0,0 +1,19 @@
+/* GPRs */
+#define rAX 0
+#define rCX 1
+#define rDX 2
+#define rBX 3
+#define rSP 4
+#define rBP 5
+#define rSI 6
+#define rDI 7
+
+/* SSE and AVX (represent [XYZ]MM) */
+#define rX0 0 /* X8 */
+#define rX1 1 /* X9 */
+#define rX2 2 /* X10 */
+#define rX3 3 /* X11 */
+#define rX4 4 /* X12 */
+#define rX5 5 /* X13 */
+#define rX6 6 /* X14 */
+#define rX7 7 /* X15 */