Skip to content

Commit

Permalink
Update StacksAt6502.md
Browse files Browse the repository at this point in the history
  • Loading branch information
agsb authored Oct 31, 2024
1 parent 9aa11da commit b657f3b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions notes/forth/StacksAt6502.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# The Stacks

_this is still a stub_

# The Stacks

_Charles Moore says 22 levels is enough for Forth._

The R65F11, a 6502 clone with native Forth inside, uses 30 cells for return stack and 50 cells for parameter/data stack.

The Forth Standarts recommends at least 24 cells for return stack and 36 cells for parameter/data stack.

## Back Stacks

The 6502 have two peculiar pages, the zero page and stack page, both unique and with 256 bytes. All sub-routines calls (JSR) and returns (RTS) uses the stack page for 16-bit pointers, also the indirect indexed and indexed indirect modes uses page zero. Those are valuable resources.
Expand Down

0 comments on commit b657f3b

Please sign in to comment.