Re: A86: Re: Re: OP1
[Prev][Next][Index][Thread]
Re: A86: Re: Re: OP1
>It's pretty simple, it's just biased by FC00 - that is, FC00 (stored as
>00,FC) is an exponent of 0. Take the exponent you want and add FC00 to get
>those two bytes. The rest of the OP is just the number in BCD (i.e. 123
>would be stored as $12,$30).
Oh ok thanks dude. I understand now. This threw me off
FPNum3: ;-3.6512000000000e-04 = -.00036512
.db $80, $FC, $FB, $36, $51, $20, $00, $00, $00, $00
But when $FC00 is subtracted by 4 you get $FBFC and then you reverse it to
get the correct exponent. Cool, thanks
-Matt
Follow-Ups: