Make a page of extended memory accessible.
void* __fastcall__ em_map (unsigned page);
The function maps one page of extended memory into linear memory and returns a pointer to the page frame. Depending on the hardware and driver, the data is either mapped into the address space or transfered into a buffer. If you don't need the actual contents of the page (for example because you're going to overwrite it completely), it is better to call
em_usewill not transfer the data if it is possible to avoid that.
em_mapwill invalidate the memory window, so if you made any changes to the data in the window, call
em_commitfirst, or the changes are lost.
- The function is only available as fastcall function, so it may only be used in presence of a prototype.
- The function produces undefined results if no extended memory driver is loaded.
- See also
em_commit, em_load_driver, em_use