Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!ittatc!dcdwest!sdcsvax!sdcrdcf!hplabs!hpda!hpisoa2!hpitg!cbmvax!randy@cbmvax From: randy@cbmvax Newsgroups: net.micro.amiga Subject: Re: Console device question Message-ID: <156@cbmvax> Date: Mon, 28-Apr-86 19:28:00 EDT Article-I.D.: cbmvax.156 Posted: Mon Apr 28 19:28:00 1986 Date-Received: Tue, 13-May-86 01:22:38 EDT References: <2563@decwrl> 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