diff options
| author | kitty <nepeta@canaglie.net> | 2026-01-22 17:34:19 +1100 |
|---|---|---|
| committer | kitty <nepeta@canaglie.net> | 2026-01-22 17:34:19 +1100 |
| commit | 59dcc299077eb7c01d960c4b3e102fe2590668e3 (patch) | |
| tree | b2fb65891ed34baf35fdce8c3897143aecaca2bc /readme.md | |
| parent | fdf1935e2cc4142bf1585a78844f5b7df0e1cd8f (diff) | |
namechange SP → NOS; start stack actually empty
Diffstat (limited to 'readme.md')
| -rw-r--r-- | readme.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |
