home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD2.bin / bbs / gnu / libnix-0.7-src.lha / libnix-0.7 / sources / amiga / misc / BeginIO.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-12  |  317 b   |  12 lines

  1. #ifdef __GNUC__
  2. #include <exec/devices.h>
  3. #include <exec/io.h>
  4. #include <inline/exec.h>
  5.  
  6. void BeginIO(struct IORequest *iorequest)
  7. { register struct IORequest *a1 asm("a1")=iorequest;
  8.   register struct Device    *a6 asm("a6")=iorequest->io_Device;
  9.   asm("jsr a6@(-30)"::"r"(a1),"r"(a6):"a0","a1","d0","d1");
  10. }
  11. #endif
  12.