home *** CD-ROM | disk | FTP | other *** search
- #include <egb.h>
- #include <msdos.cf>
-
- void USR_getBlock(char *egb_work,char *buf,int x0,int y0,int x1,int y1)
- {
- char para[64];
- DWORD(para + 0 ) = (unsigned int)buf;
- WORD (para + 4 ) = getds();
- WORD (para + 6 ) = (short)x0;
- WORD (para + 8 ) = (short)y0;
- WORD (para + 10) = (short)x1;
- WORD (para + 12) = (short)y1;
- EGB_getBlock(egb_work,para);
- }
-
- void USR_putBlock
- (char *egb_work,char *buf,int clip,int x0,int y0,int x1,int y1)
- {
- char para[64];
- DWORD(para + 0 ) = (unsigned int)buf;
- WORD (para + 4 ) = getds();
- WORD (para + 6 ) = (short)x0;
- WORD (para + 8 ) = (short)y0;
- WORD (para + 10) = (short)x1;
- WORD (para + 12) = (short)y1;
- EGB_putBlock(egb_work,clip,para);
- }