Path: utzoo!attcan!uunet!ncrlnk!ncr-sd!hp-sdd!hplabs!ucbvax!pro-pac.cts.com!zach From: zach@pro-pac.cts.com (Zach Taft) Newsgroups: comp.sys.apple Subject: Format of LongInt, etc... Message-ID: <8811211337.AA04476@crash.cts.com> Date: 20 Nov 88 10:09:00 GMT Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: pnet01!pro-simasd!pro-nsfmat!pro-pac!zach@nosc.mil Organization: The Internet Lines: 39 Hi, Well I certainly appreciated the last advice (from Kevin) on some of the programming quirks of the 65816, but I've run into another problem that I would like some help on. Can someone please describe the way that Integers and Long Integers are stored in memory? The reason I ask is that I want to write some routines that will be able to convert 8-bit results into 16-bit Integers and Long Integers. From what I've been able to read I assume that they are stored in reverse order, just as pointers and other addressing variables are. That is: $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 Well, that's it. If you can shed some light on this, please do! 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