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

How do you implement memory allocation #17

Closed
Blqtent opened this issue Oct 8, 2021 · 1 comment
Closed

How do you implement memory allocation #17

Blqtent opened this issue Oct 8, 2021 · 1 comment

Comments

@Blqtent
Copy link

Blqtent commented Oct 8, 2021

No description provided.

@nanochess
Copy link
Owner

The memory allocation is based on a gentleman's agreement. 0x7c00-0x7dff is where boot sectors are loaded, and before that no one typically uses the space. So BootOS relocates on 0x7a00-0x7bff and uses a few more bytes. So user programs are loaded like a boot sector and can use any of the memory onwards.

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

No branches or pull requests

2 participants