int15_copy()

Copy data from high memory (above 1 MB) to a buffer, or to low memory (below 1 MB)

Synopsis:

unsigned char int15_copy (long from, long to, long len) 

Arguments:

from
The address in memory of the data to be copied.
to
The destination address in memory
len
The length (in bytes) of the data chunk to copy.

Description:

The int15_copy() function is intended for an x86 system with a BIOS, running in real mode. The function lets you copy data from high memory (above 1 MB) to a buffer, or to low memory (below 1 MB).

The int15_copy() function also allows functions such as image_scan() and image_setup() to perform scanning and setup of images located in high memory.

Returns:

0
Success
-1
Failure