Bansai
Registered: Feb 2023 Posts: 54 |
Quoting rupySo UXN is the JVM of "6502"-level (8/16-bit) instruction sets? Eric Chahi's game "Another World" might provide some useful lessons learned wisdom regarding the design of such machines:
https://fabiensanglard.net/anotherWorld_code_review/
Regarding compilers, the expression handling portion of a basic shift-reduce parser (e.g., an operator precedence grammar) should be able to decompose arithmetic expressions into a stack-based form quite easily. I couldn't see myself programming a stack-based ISA unless--at least initially--I had a rich set of macros at my disposal, mainly so I could avoid push/pop misalignment mistakes. |