Show HN: Code garden deep-dive: my Forth C64 tetromino game(github.com)
github.com
Show HN: Code garden deep-dive: my Forth C64 tetromino game
https://github.com/ekipan/sss/blob/share-hn/Design.md
1 comments
Doc excerpts, as a teaser:
- SDF JKL layout keeps me on home row, ready to type Forth.
- 39 columns source text to fit the C64 screen.
- `0 prof` patches the first instruction to an `rts`,
disabling the profiler. `1 prof` restores the `eor`.
- The `dup 0= +` phrase ensures nonzero seed, harmless but
it's cute and I've grown fond of it.
- Might be able to spread `land` work across frames but the
complexity isn't worth it.
- I choose the extra `rdrop` cognitive load just for its
aesthetic.
- <!-- It's better left unsaid. -->
I would be tickled if this was the thing to bring
at least a few people from vaguely Forth-curious to
writing something substantial. Tell me what delights or
confuses you. What could be better, what needs examples.
Deep-dive: https://github.com/ekipan/sss/blob/main/Design.md
Repo front page: https://github.com/ekipan/sss
The Silent Soviet Stacker is, in order:
Try it (<5 minutes):
[1]: https://vice-emu.sourceforge.io/
[2]: https://github.com/jkotlinski/durexforth/releases
[3]: https://github.com/ekipan/sss/blob/share-hn/sss.fs