summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jefs.s2
-rw-r--r--readme.md6
2 files changed, 4 insertions, 4 deletions
diff --git a/jefs.s b/jefs.s
index 40ba54d..b6b765f 100644
--- a/jefs.s
+++ b/jefs.s
@@ -64,7 +64,7 @@ section .text
global _start
_start:
; init
- mov r14, wstack
+ mov r14, wstack + 16
xor r15, r15
mov rdi, 0
diff --git a/readme.md b/readme.md
index 64af573..a4d38f3 100644
--- a/readme.md
+++ b/readme.md
@@ -29,12 +29,12 @@ 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. (this will only be needed if we switch to DTC, otherwise this can be Y, a third general purpose register)
-- SP, the working stack pointer, is r14.
+- NOS, the next-on-stack pointer, is r14.
- TOS, the top of the stack, is r15.
- RSP, the return stack pointer, is rsp.
-on SP (r14): note that since TOS is kept in a register,
-SP points to the *second* item in the stack.
+on NOS (r14): TOS is kept in a register,
+NOS points to the *second* item in the stack.
## miscellaneous notes and stuff