Commit Graph

2 Commits (0f8236b404c12c7d47042fd1e7262488bc6b52e8)

Author SHA1 Message Date
James T. Martin 0f8236b404
Hacked together a god-awful hand-written lexer (untested). 2022-09-07 10:22:38 -07:00
James T. Martin 57aa667000
Completely rewrite stack management.
Now we always use the stack instead of keeping a TOS register.
This is very inefficient, but I'll worry about register
allocation later.

The new block model is inspired by x86's `enter` and `leave`
instructions. I intend to support nested procedures at some point
in the future.
2022-09-06 19:47:46 -07:00