Structs can now pass into and be returned from functions + Easy struct reassignment #17
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Solves part of #4, as this PR doesn't touch array access
Partially adds compiler support for what I'm calling "large variables" for the moment, you can explicit assign a large variable of the same size to another large variable to copy all of its parameters to the left hand, as well, putting large variables as parameters for a function now pushes x number of bytes to the stack
Functions that return large variables will return a pointer to the variable, and assignment to another large variable generates a constant number of mov and inc instructions to fill the large variable on the left hand
Currently "large variables" only encompass structs, but hopefully I've left things flexible enough for future expansion (not that I really know what else to add past this)
See image for working code using struct functions and struct var reassignment w/ outputs