_SetLastV86Page


include vmm.inc

VMMcall _SetLastV86Page, <PgNum, flags>

or      eax, eax            ; nonzero if set, zero if error
jz      not_set

Sets the page number of the last page in V86 memory for the current virtual machine. This service is intended for exclusive use by the virtual V86 memory manager device, and is only available for Windows version 3.1 or later. Uses EAX.

PgNum

New linear page number for the last V86 page.

flags

Operation flags. Must be zero.

This service is intended to help the V86MMGR support backfill machines. These machines have unused, unoccupied memory from the end of MS-DOS memory (typically at 512K) up to 640K (page 0A0h). On such machines, it is desirable to fill out (backfill) this unoccupied space so that virtual machines provide memory up to 640k.

See also _GetLastV86Page