summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--readme.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/readme.md b/readme.md
index 5710886..82550b7 100644
--- a/readme.md
+++ b/readme.md
@@ -4,3 +4,13 @@ its a forth for linux x86\_64. mostly made for personal stuff.
if you use it and it breaks, too bad
public domain
+
+## forth registers
+there are a set of 'virtual registers' (see moving forth part 1)
+
+W, the working register, is r11.
+X, the secondary working register, is r12.
+IP, the instruction pointer, is r13.
+SP, the working stack pointer, is r14.
+RSP, the return stack pointer, is rsp.
+TOS, the top of the stack, is r15.