Path: utzoo!yunexus!geac!syntron!jtsv16!uunet!seismo!sundc!pitstop!sun!decwrl!ucbvax!UIAMVS.BITNET!AWCTTYPA From: AWCTTYPA@UIAMVS.BITNET ("David A. Lyons") Newsgroups: comp.sys.apple Subject: LongInt format, SANE, etc. Message-ID: <8811282144.aa14887@SMOKE.BRL.MIL> Date: 2 Dec 88 11:21:26 GMT Article-I.D.: SMOKE.8811282144.aa14887 Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 54 X-Unparsable-Date: Monday 28 Nov 88 8:43 PM CT >Date: Wed, 23 Nov 88 15:20:44 HST >Reply-To: pnet01!pro-simasd!pro-nsfmat!pro-pac!zach@nosc.mil >From: Zach Taft>Subject: Re: Format of LongInt, etc... >[...] The reason that I want to know is so I can create a routine >which converts TWO 8-bit numbers into a 16 bit number. Again the >examples I showed before are: > $E04F21 -- is stored as -- 21 4F E0 00 > $DEFB -- is stored as -- FB DE > #$13B4185E -- is stored as -- 5E 18 B4 13 > #$4152 -- is stored as -- 52 41 > #256 -- is stored as -- 00 01 > #65536 -- is stored as -- 00 00 01 00 > #65792 -- is stored as -- 00 01 01 00 >[...] PLEASE someone just tell me if the examples I listed above are >correct. Yes, they are all correct. First time 'round, I didn't realize you were _asking_ if they were correct...looked like you knew. >I have been looking through all of the available manuals here in >Hawaii, but I cannot get ahold of the Apple SANE manual anywhere, so >maybe I this is where I am missing out. That's why I'm asking all of >you! You've got me confused here, since the above stuff has very little to to with SANE (Standard Apple Numerics Environment). Only one of the 4 data types defined by SANE is for integers, and it is an eight-byte signed (two's complement) type called "Comp" [the special value $8000000000000000 has the special name NaN ("not a number")]. You should be able to order the _Apple Numerics Manual_ through your local bookstore. It's published by Addison-Wesley; ISBN 0-201-17741-2. (There is supposed to be a newer edition than the one I have, though; I don't know if that means there will be a different ISBN number or not.) You can also get it through APDA, which you should join if you're doing any serious development work for the GS, and perhaps even if you aren't. [APDA is _not_ going away...it's just becoming more a part of Apple.] [Disclaimer: I'm not associated with APDA except that I've paid them a lot of money in the last couple of years.] >Zach Taft >UUCP: {nosc, cacilj, sdcsvax, hplabs!hp-sdd, sun.COM} > ...!crash!pnet01!pro-nsfmat!pro-pac!zach >ARPA: crash!pnet01!pro-nsfmat!pro-pac!zach@nosc.MIL >INET: zach@pro-pac.CTS.COM - BITNET: pro-pac.UUCP!zach@PSUVAX1 --David A. Lyons bitnet: awcttypa@uiamvs DAL Systems CompuServe: 72177,3233 P.O. Box 287 GEnie mail: D.LYONS2 North Liberty, IA 52317 AppleLinkPE: Dave Lyons