Re: A83: Exponent in op1


[Prev][Next][Index][Thread]

Re: A83: Exponent in op1




TI's documentation is lacking here.  Here's their example fp number:

80 82 23 45 00 00 00 00 00 = -234.5

The first byte makes the number negative (80==neg,00==pos).  The second 
byte is the exponent.  80h = an exponent of 0.  Here, the exponent is 
82, or 2 higher than 0.  So, I assume that...

80 80 23 45 00 00 00 00 00 = -2.345

If that's true, then I really should inc a.  Anyway, thanks Linus!

BTW: overflow isn't really an issue here, but thanks for the reminder.

>From: Linus Akesson <lairfight@softhome.net>
>To: Henry Davidowich <assembly-83@lists.ticalc.org>
>Date: Thu, 22 Oct 1998 19:28:53 +0100
>Subject: Re: A83: Exponent in op1
>Reply-To: assembly-83@lists.ticalc.org
>
>
>On 21-Oct-98, Henry Davidowich wrote:
>
>>How could I multiply op1 by 100?  I basically want to adjust the 
>>exponent.  Something like:
>
>>ld a,(op1+1)
>>dec a
>>dec a
>>ld (op1+1),a
>
>>something like this?
>
>>______________________________________________________
>>Get Your Private, Free Email at http://www.hotmail.com
>
>Something like it yep, but my guess is that you should inc a instead. 
Not
>100% sure as I don't really remember... (ref to ti's documentation).
>
>If the user entered the number you'll have to check it against overflow
>aswell.
>
>Linus
>
>


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com