delorie.com/djgpp/doc/libc/libc_197.html | search |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#include <sys/movedata.h> void _dosmemputw(const void *buffer, size_t xfers, unsigned long offset); |
This function transfers data from the program's virtual address space to MS-DOS's conventional memory space, using only short-word (16-bit) transfers. The offset is a physical address, which can be computed from a real-mode segment/offset pair as follows:
offset = segment * 16 + offset; |
The xfers is the number of short-words 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.
None.
ANSI/ISO C | No |
POSIX | No |
unsigned short save_screen[25][80]; _dosmemputw(save_screen, 0xb8000, 80*25); |
webmaster | delorie software privacy |
Copyright © 2004 | Updated Apr 2004 |