home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / pc_hw / mem / dmpl.txh < prev    next >
Encoding:
Text File  |  1996-01-30  |  908 b   |  37 lines

  1. @node dosmemputl, memory
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <sys/movedata.h>
  6.  
  7. void _dosmemputl(const void *buffer, size_t xfers unsigned long offset);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. This function transfers data from the program's virtual address space
  13. to MS-DOS's conventional memory space, using only long-word (32-bit)
  14. transfers.  The @var{offset} is a physical address, which can be
  15. computed from a real-mode segment/offset pair as follows:
  16.  
  17. @example
  18. offset = segment * 16 + offset;
  19. @end example
  20.  
  21. The @var{xfers} is the number of long-words to transfer, and
  22. @var{buffer} is a pointer to somewhere in your virtual address space
  23. (such as memory obtained from @code{malloc}) where the data will come
  24. from.
  25.  
  26. @subheading Return Value
  27.  
  28. None.
  29.  
  30. @subheading Example
  31.  
  32. @example
  33. unsigned short save_screen[25][80];
  34. dosmemputl(save_screen, 0xb8000, 40*25);
  35. @end example
  36.  
  37.