[Previous][Up][Next] |
Dos memory is accessed by the predefined dosmemselector selector; the GO32 unit additionally provides some functions to help you with standard tasks, like copying memory from heap to dos memory and the likes. Because of this it is strongly recommened to use them, but you are still free to use the provided standard memory accessing functions which use 48 bit pointers. The third, but only thought for compatibility purposes, is using the mem[]-arrays. These arrays map the whole 1 Mb dos space. They shouldn't be used within new programs. To convert a segment:offset real mode address to a protected mode linear address you have to multiply the segment by 16 and add its offset. This linear address can be used in combination with the DOSMEMSELECTOR variable.
|
Copy data from DOS memory to the heap. |
|
|
Copy data from the heap to DOS real mode memory |
|
|
Move data between 2 DOS real mode memory locations |
|
|
Fill a region of DOS memory with a specific byte-sized value |
|
|
Fill a region of DOS memory with a specific word-sized value |
|
|
Move data between 2 locations |
|
|
Fill segment with byte value |
|
|
Fill segment with word value |