summary refs log tree commit diff
path: root/lisc/lisc.h
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-07-27 14:34:22 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-09-15 23:01:29 -0400
commit8899449c39f66b8d7db24c33a56708e7678e70ad (patch)
tree8d908632638b2b353fb89fd675205e9657c00769 /lisc/lisc.h
parentee784dbfcd68beccda0d9d33687bff2a94468109 (diff)
downloadroux-8899449c39f66b8d7db24c33a56708e7678e70ad.tar.gz
complete a crude register allocator
Diffstat (limited to 'lisc/lisc.h')
-rw-r--r--lisc/lisc.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisc/lisc.h b/lisc/lisc.h
index 95660cf..9031ede 100644
--- a/lisc/lisc.h
+++ b/lisc/lisc.h
@@ -20,8 +20,6 @@ enum {
 	RCX,
 	RDX,
 	RBX,
-	RSP,
-	RBP,
 	RSI,
 	RDI,
 	R8,
@@ -32,6 +30,8 @@ enum {
 	R13,
 	R14,
 	R15,
+	RSP, /* reserved */
+	RBP, /* reserved */
 	// NReg = R15 - RAX + 1
 	NReg = 3 /* for test purposes */
 };
@@ -89,6 +89,7 @@ enum {
 	OLoad,
 	/* reserved instructions */
 	OCopy,
+	OSwap,
 	OIACltd,
 	OIADiv,
 	OLast