next up previous contents index
Next: Functions and Procedures Up: TypesVariables and Constants Previous: Types

Variables.

var
   { puts count bytes from data to ptr(seg:ofs) of the DOS memory }
   dosmemput : procedure(seg : word;ofs : word;var data;count : longint);

   { gets count bytes from ptr(seg:ofs) of the DOS memory to data }
   dosmemget : procedure(seg : word;ofs : word;var data;count : longint);

   { moves count bytes from ptr(sseg:sofs) to ptr(dseg:dofs) }
   dosmemmove : procedure(sseg,sofs,dseg,dofs : word;count : longint);

   { fills count bytes beginning with ptr(seg:ofs) with c }
   dosmemfillchar : procedure(seg,ofs : word;count : longint;c : char);

   { fills count words beginning with ptr(seg:ofs) with w }
   { this function is especially used by the CRT unit.   }
   dosmemfillword : procedure(seg,ofs : word;count : longint;w : word);
These procedure variables give you access to the DOS memory in each mode of the DOS extender. It is strongly recommended to use these functions.

The procedural variables are assigned by the startup code of the GO32 unit to the correct procedures.

var
   dosmemselector : word;
Selector to the DOS memory. The whole DOS memory is mapped to a single segment. This function will only work in DPMI mode.



Michael Van Canneyt
Tue Mar 31 16:46:10 CEST 1998