[comp.sys.apple] LongInt format, SANE, etc.

AWCTTYPA@UIAMVS.BITNET ("David A. Lyons") (12/02/88)

>Date:         Wed, 23 Nov 88 15:20:44 HST
>Reply-To:     pnet01!pro-simasd!pro-nsfmat!pro-pac!zach@nosc.mil
>From:         Zach Taft <zach@PRO-PAC.CTS.COM>
>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

KAPFFER@DMZRZU71.BITNET (Matthias Kapffer) (12/15/88)

> Date:         Sat, 3 dec 88 00:03:09 CST
> From:         "David A. Lyons"
>               <AWCTTYPA%UIAMVS.BITNET%cunyvm.cuny.edu@BRL.MIL>
> Subject:      LongInt format, SANE, etc.

>> Date:         Wed, 23 Nov 88 15:20:44 HST
>> Reply-To:     pnet01!pro-simasd!pro-nsfmat!pro-pac!zach@nosc.mil
>> From:         Zach Taft <zach@PRO-PAC.CTS.COM>
>> Subject:      Re: Format of LongInt, etc...

>> [...]

> [...]
> 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.)

The  newer  edition  is  real;  it's  title  is _Apple Numerics Manual, Second
Edition_.   The  ISBN  has  *changed* to 0-201-17738-2.  The book now includes
describtions  of  the  65816  (IIgs) and the 68881 (Mac II) SANE engines.  (At
least  that's the difference between the two editions as noted in the forword;
I've never seen the first one.)

______________________________________________________________________________
M a t t h i a s   K a p f f e r

mail :  Hermann Brill-Strasse 10
        D-6200 Wiesbaden
        West Germany
phone:  +49 6121 460854
email:  BITNET   : KAPFFER@DMZRZU71