Created
January 20, 2025 05:35
-
-
Save psilord/8d6a6ecb976a2b38b6a7def5c6710643 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Type BLInst | |
| Field N:UInt = 1024 * 1024 * 5 ' number of Lisp objects (doubles) to store | |
| Field hp:ULong = 0 ' heap pointer | |
| Field sp:ULong = N ' stack pointer | |
| Field cell:Double[N] | |
| Field nil_val:Double | |
| Field quit_val:Double | |
| Field tru_val:Double | |
| Field err_val:Double | |
| Field env_val:Double | |
| End Type | |
| Function makeBLInst() : BLInst | |
| ... | |
| End Function | |
| Then add the BInst reference to all functions so they know for which | |
| BLInst object they are working for on their behalf. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment