Go to the first, previous, next, last section, table of contents.


dosmemput

Syntax

#include <sys/movedata.h>

void dosmemput(const void *buffer, int length, int offset);

Description

This function transfers data from the program's virtual address space to MS-DOS's conventional memory space. The offset is a physical address, which can be computed from a real-mode segment/offset pair as follows:

offset = segment * 16 + offset;

The length is the number of bytes to transfer, and buffer is a pointer to somewhere in your virtual address space (such as memory obtained from malloc) where the data will come from.

Return Value

None.

Portability

not ANSI, not POSIX

Example

unsigned short save_screen[25][80];
dosmemput(save_screen, 80*2*25, 0xb8000);


Go to the first, previous, next, last section, table of contents.