Z88 Developers' Notes
Contents   Contents of System Calls

OS_Axp, allocate explicit page

RST 20H, DEFB $D2

IN:

     IX = memory handle
     B explicit bank
H explicit page
OUT, if call successfull:
     Fc = 0, OK
OUT, if call failed:
     Fc = 1
          A = RC_FAIL, failed to allocate memory
Registers changed after return:
     ..BCDEHL/IXIY same
     AF....../.... different
Notes:
Internal operating system usage.
Since page are on 256 byte boundaries the L register is ignored.

This call could be useful for properly allocating 512 bytes or more contigous memory area.
The first page is allocated with OS_Mal.
Next pages are allocated with OS_Axp specifying B and H+1 (and more...).
Bugs: