Path: utzoo!attcan!uunet!husc6!think!ames!pasteur!ucbvax!pro-pac.cts.com!zach From: zach@pro-pac.cts.com (Zach Taft) Newsgroups: comp.sys.apple Subject: Re: Format of LongInt, etc... Message-ID: <8811241437.AA10717@crash.cts.com> Date: 24 Nov 88 01:20:44 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: pnet01!pro-simasd!pro-nsfmat!pro-pac!zach@nosc.mil Organization: The Internet Lines: 46 Hi again, Listen, I don;t know how anyone got on this tangent about processors having different storage methods of integers... All I need to know is HOW long and short integers are stored and used in the APW programming environment, and this includes their use in assembly language programming toolkit calls... 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 So one would assume that the 16-bit Integers and Long Integers would be stored in the same way: #$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 Now, I realize that there are a number of other discussions that can come from this subject, but PLEASE someone just tell me if the examples I listed above are correct. 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! So, again, please tell me if the examples above are correct or incorrect. I sure would like to hear from some of the examples programming people at Apple! :-) Thanks for any help! 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