Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider heap space remaining before each ASSIGN /B= assignment #484

Merged
merged 1 commit into from
Dec 22, 2024

Conversation

kiwisincebirth
Copy link
Contributor

NOTE : This was actually tested with a CBIOS with a .FILL of $800 bytes (in resident code) to reduce heap size, and assert that allocations stoped before running out of heap.

I left a couple of debug statements in code to allow the remaining heap estimate to be displayed, and during testing the estimates were very slightly different (few bytes), compare to the reported bytes remaining, but not enough to make any difference.

@wwarthen
Copy link
Owner

Hi @kiwisincebirth,

This looks pretty good. It will definitely be a little off for RAM/ROM/Floppy drives in some cases because they have different sizes depending on system configuration. Regardless, this is probably fine for the purpose.

Thanks, Wayne

@wwarthen wwarthen merged commit 77b9826 into wwarthen:master Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants