Path: utzoo!utgpu!watmath!maytag!watvlsi!watale!zarko From: zarko@watale.waterloo.edu (Zarko Draganic) Newsgroups: comp.sys.mac.programmer Subject: Writing Async device drivers in MPW C/Pascal Keywords: DrvrRuntime.o, DRVR Message-ID: <3071@watale.waterloo.edu> Date: 20 Feb 89 22:53:13 GMT Distribution: comp Organization: U of Waterloo, Ontario Lines: 17 Hi- MPW's DRVRRuntime lib allows you to write a device driver in a high level language - it takes care of returning in the proper way (via JIODone or RTS depending on the call). As a result, the driver handles all calls synchronously because there's no other choice. Does anyone have some better DRVRRuntime glue which allows a driver to call routines to 1)check whether his call was IMMED or ASYNC, and 2) call exit routines for IODone/IONotDone or immed RTS, accordingly. Yeah, I know it'd be easier to just write the whole drvr in asm, but someone is supplying C and Pascal code which I'd rather not port. If no-one has the glue, I will write it- mail me if you could use it. kilothanx, ** zarko@watale.uwaterloo.ca ** ** The IBM weenies here don't care about my opinions anyway. **