System32 Function 14 (0Eh) - Request Memory Block + Selector

Description
This function lets an application/mod/server request a block of memory. The settings like code/data, 16Bit/32Bit Granularity, Base etc. is all handled by System32. The caller gets two values back to access the memory in 2 different ways, by Linear Addressing or by descriptor access.
Input

AL

14D (0Eh)

EBX

Bytes to allocate

DL

0 for Data, 1 for a Code Descriptor

DH

0 for 16Bit, 1 for 32Bit (This is only relevant for DataMemoryBlocks
Output

EDI

Linear Address of the requested memory block

CX

The Descriptor to access this same block

EBX

Bytes that were actually allocated. It will never be less than the requested amount, sometimes it's a bit more for allignment reasons
Errorcodes

None

None
Notes
None
Development Status
Working

Back