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

BVM: Storing constants, etc. #87

Open
thosakwe opened this issue May 31, 2018 · 0 comments
Open

BVM: Storing constants, etc. #87

thosakwe opened this issue May 31, 2018 · 0 comments

Comments

@thosakwe
Copy link
Contributor

The MMU

From now on, upon starting an instance of the BVM, it will initialize a 65KB, read-write region of memory for constants. The first 16KB of the file will be copied here. This makes it stupid-simple to get constant values into a Bonobo program.

Executable memory starts at 0x10000. This memory cannot be read or written, only executed.

The very first 32 bits of the program are a pointer to the first routine that should be called. After constants are copied in to R/W memory, the CPU jumps to the address, and runs until completion.

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

1 participant