Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The purpose of this description is just for the understanding of memory allocation in the Z88. Programmer have to use the provided system calls to properly allocate memory. He should not bypass the operating system and tweak directly in the memory tables. 

...

bits 0-11 Offset of next MAT entry in chainbit 12 MAT_LAST : this page is last in chain, bits 0-11 are MemHandle>>4
               bit 0 alone
bit 0 only set (MAT_SYSTEM) page is used by OZ (eg. screen file, see examples below)
bit 12 MAT_LAST : this page is last in chain, bits 0-11 are MemHandle>>4

bit 13 MAT_FULL : page fully used, can't be split
bit 14 MAT_ALLOCFIXED : page is allocated as fixed memory
bit 15 MAT_SWAP : page is used by OZ for bad application memory

...