[OpenBIOS] Dynamic memory allocation
tarl-b2 at tarl.net
Wed Jun 6 19:23:38 CEST 2012
On 2012-Jun-6 08:03 , Programmingkid wrote:
> I couldn't find any documentation on alloc-mem, but I think this is
> how it works. It pops the top number on the stack and tries to
> allocate that amount of memory. If it succeeds it returns the address
> of the memory. If it fails, it returns 0. I think I would release the
> memory using free-mem. Does this sound about right?
It's documented in ieee 1275, page 109.
As for free-mem, that's probably correct, but most FCode never calls it.
The assumption is that any memory allocated during boot needs to stay
More information about the OpenBIOS