about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--090register-names.subx42
1 files changed, 24 insertions, 18 deletions
diff --git a/090register-names.subx b/090register-names.subx
index 59f1e701..db2c1e6a 100644
--- a/090register-names.subx
+++ b/090register-names.subx
@@ -1,25 +1,31 @@
+# This data structure uses pointers. Since Mu requires pointers in data to be
+# handles, we need to create some fake alloc ids.
+#
+# Fake alloc ids used in this file:
+#   "HAND" = 0x48414e44
+
 == data
 Registers:  # (table string int)
   # a table is a stream
-  0x80/imm32/write
+  0xc0/imm32/write
   0/imm32/read
-  0x80/imm32/length
+  0xc0/imm32/length
   # data
-  "eax"/imm32  0/imm32
-  "ecx"/imm32  1/imm32
-  "edx"/imm32  2/imm32
-  "ebx"/imm32  3/imm32
-  "esp"/imm32  4/imm32
-  "ebp"/imm32  5/imm32
-  "esi"/imm32  6/imm32
-  "edi"/imm32  7/imm32
+  0x48414e44/imm32 "HANDeax"/imm32  0/imm32
+  0x48414e44/imm32 "HANDecx"/imm32  1/imm32
+  0x48414e44/imm32 "HANDedx"/imm32  2/imm32
+  0x48414e44/imm32 "HANDebx"/imm32  3/imm32
+  0x48414e44/imm32 "HANDesp"/imm32  4/imm32
+  0x48414e44/imm32 "HANDebp"/imm32  5/imm32
+  0x48414e44/imm32 "HANDesi"/imm32  6/imm32
+  0x48414e44/imm32 "HANDedi"/imm32  7/imm32
   # for 8-byte registers
   # we don't actually check if these are used when they should be; be careful
-  "al"/imm32   0/imm32
-  "cl"/imm32   1/imm32
-  "dl"/imm32   2/imm32
-  "bl"/imm32   3/imm32
-  "ah"/imm32   4/imm32
-  "ch"/imm32   5/imm32
-  "dh"/imm32   6/imm32
-  "bh"/imm32   7/imm32
+  0x48414e44/imm32 "HANDal"/imm32   0/imm32
+  0x48414e44/imm32 "HANDcl"/imm32   1/imm32
+  0x48414e44/imm32 "HANDdl"/imm32   2/imm32
+  0x48414e44/imm32 "HANDbl"/imm32   3/imm32
+  0x48414e44/imm32 "HANDah"/imm32   4/imm32
+  0x48414e44/imm32 "HANDch"/imm32   5/imm32
+  0x48414e44/imm32 "HANDdh"/imm32   6/imm32
+  0x48414e44/imm32 "HANDbh"/imm32   7/imm32