home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 8 / FM Towns Free Software Collection 8.iso / t_os / rb3d / source / userlib.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-01  |  710 b   |  28 lines

  1. #include <egb.h>
  2. #include <msdos.cf>
  3.  
  4. void USR_getBlock(char *egb_work,char *buf,int x0,int y0,int x1,int y1)
  5. {
  6.     char para[64];
  7.     DWORD(para + 0 ) = (unsigned int)buf;
  8.     WORD (para + 4 ) = getds();
  9.     WORD (para + 6 ) = (short)x0;
  10.     WORD (para + 8 ) = (short)y0;
  11.     WORD (para + 10) = (short)x1;
  12.     WORD (para + 12) = (short)y1;
  13.     EGB_getBlock(egb_work,para);
  14. }
  15.  
  16. void USR_putBlock
  17. (char *egb_work,char *buf,int clip,int x0,int y0,int x1,int y1)
  18. {
  19.     char para[64];
  20.     DWORD(para + 0 ) = (unsigned int)buf;
  21.     WORD (para + 4 ) = getds();
  22.     WORD (para + 6 ) = (short)x0;
  23.     WORD (para + 8 ) = (short)y0;
  24.     WORD (para + 10) = (short)x1;
  25.     WORD (para + 12) = (short)y1;
  26.     EGB_putBlock(egb_work,clip,para);
  27. }
  28.