Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!harvard!caip!lll-crg!lll-lcc!qantel!hplabs!sdcrdcf!burdvax!bpa!cbmvax!randy From: randy@cbmvax.UUCP Newsgroups: net.micro.amiga Subject: Re: Console device question Message-ID: <156@cbmvax.cbmvax.cbm.UUCP> Date: Mon, 28-Apr-86 10:28:47 EDT Article-I.D.: cbmvax.156 Posted: Mon Apr 28 10:28:47 1986 Date-Received: Fri, 2-May-86 21:27:07 EDT References: <2563@decwrl.DEC.COM> Reply-To: randy@cbmvax.UUCP (Randy Weiner) Organization: Commodore Technology, West Chester, PA Lines: 39 In article <2563@decwrl.DEC.COM> shives@glory.DEC (Mark Shives) writes: > >... In the Rom Kernal Manual in the chapter on the Console Device >there is a program called "cons.c". I have verified that I have typed in >the program correctly... > > The symptoms seem to be that it skips commands... > > Mark Shives >dec-rhea!dec-glory!shives >DECNET- GLORY::SHIVES Mark, I have typed and run the program without any problems. Therefore, I can offer the following suggestions: First, which compiler are you using. My guesss is that it is the Manx Aztec-C. Note that this compiler defaults an 'int' to 16-bits. The Amiga libraries expect a 32-bit int., for example: the io_length field of the device request block. The quick solution is to use the +L (??) option that forces all ints to 32-bits. The suggested solution (refer to the Aztec manual) is to cast/coerce the value being passed (to ConWrite, amoung others) as long. If you are using the Lattice compiler, then there is a high probability that a typo exists. Did you copy the entire example from cons.c, or did you make use of previous code fragments to build the working example? I am grasping at straws here since I have no reason to think there is anything wrong with the example, as I have said, I have a working copy (and it is the same as the printed example). Let me know how you make out. -- Randy Weiner -- Commodore Business Machines <> uucp: {ihnp4|seismo|caip}!cbmvax!randy arpa: cbmvax!randy@seismo.css.GOV TEL: 215-431-9180