Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!cbmvax!carolyn From: carolyn@cbmvax.cbm.UUCP (Carolyn Scheppner CATS) Newsgroups: comp.sys.amiga Subject: Re: gameport Message-ID: <2021@cbmvax.cbmvax.cbm.UUCP> Date: Fri, 12-Jun-87 18:16:57 EDT Article-I.D.: cbmvax.2021 Posted: Fri Jun 12 18:16:57 1987 Date-Received: Sat, 20-Jun-87 18:38:24 EDT References: <431@milob.UUCP> Reply-To: carolyn@cbmvax.UUCP (Carolyn Scheppner CATS) Organization: Commodore Technology, West Chester, PA Lines: 30 In article <431@milob.UUCP> ds@milob.UUCP (David Sanborn) writes: > >[] >The fire button pin 6 of port 1 (right port) is connected to bit 7 of cia A. >Bryce Nesbitt not long ago posted information from the RKM about the 68000 >structure for accessing cia.resource. How do you do it from C ? (ie. the >equivalent structure in C). I should be able to OpenResource("ciaa.resource") >then read and write this bit much like you can (atleast now) the PotGo bits >(pins). Can I access the other input pins (pin 4) without using the >gameport.device? Not too long, Phil Lindsay posted a parallel resource example which used both the misc.resource and the cia.resource for safe direct control of the parallel port. His example could probably give you the shell you need. Check out comp.amiga.sources (?) - it may be there. It is also on Fish Disk #73. The cia register definitions, by the way, are in the 1.2 header hardware/cia.h. I believe you declare (for instance) extern struct CIA ciaa; and reference registers like: c = ciaa.ciaprb -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Carolyn Scheppner -- CBM >>Amiga Technical Support<< UUCP ...{allegra,caip,ihnp4,seismo}!cbmvax!carolyn PHONE 215-431-9180 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=