diff options
| -rw-r--r-- | jefs.s | 2 | ||||
| -rw-r--r-- | readme.md | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -64,7 +64,7 @@ section .text global _start _start: ; init - mov r14, wstack + mov r14, wstack + 16 xor r15, r15 mov rdi, 0 @@ -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 |
