Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83 based; site homxb.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!homxb!gemini From: gemini@homxb.UUCP (Rick Richardson) Newsgroups: net.unix,net.unix-wizards,net.micro.pc Subject: Re: XENIX assmblr OUT - Device Driver Message-ID: <1422@homxb.UUCP> Date: Fri, 11-Apr-86 08:19:23 EST Article-I.D.: homxb.1422 Posted: Fri Apr 11 08:19:23 1986 Date-Received: Mon, 14-Apr-86 05:43:27 EST References: <298@kodak.UUCP> Organization: PC Research, Inc. Lines: 15 Keywords: out, in, I/O, XENIX device driver, assembler Xref: watmath net.unix:7613 net.unix-wizards:17560 net.micro.pc:7768 [Trying to use in/out in assembler from a XENIX device driver, stills gets TRAP] I don't know for sure about XENIX, but VENIX/286 provides C callable (from the driver) routines that do IN/OUT for you. They are io_in[bw](port) and io_out[bw](port, val). I would be surprised if XENIX didn't also provide the same sort of thing. As for directly using the IN/OUT instructions from assembler in a driver, that also works under VENIX/286, with no extra shenanigans. BTW, the only driver in VENIX/286 that has a portion written in assembler is the console driver. All the rest are completly C. Rick Richardson, PC Research, Inc. (201) 922-1134, (201) 834-1378 @ AT&T-CP ..!ihnp4!castor!{rer,pcrat!rer} <--Replies to here, not to homxb!gemini, please.