Search found 3 matches

by fenrock
Sat Oct 31, 2020 4:13 pm
Forum: General Discussions
Topic: error in wozfp1.txt
Replies: 10
Views: 2215

Re: error in wozfp1.txt

I hadn't got that far translating the code yet, so missed those additional constant.

The value is calculated as 2^(x80 - high byte) * (3 lower bytes) / 2^22

Or reversed, take value .03465735903 * $400000 x 2^5
and you get: 46 FA 70

so correct version is 7B 46 FA 70


For negative values, the ...
by fenrock
Sat Oct 31, 2020 3:12 pm
Forum: General Discussions
Topic: error in wozfp1.txt
Replies: 10
Views: 2215

Re: error in wozfp1.txt

If you're fixing that file, you may want to apply the errata from Dr. Dobb's Journal, November/December 1976, page 57
http://www.classiccmp.org/cini/pdf/DrDobbs/DrDobbs-1976-11-12-v1n10.pdf


ERRATA FOR RANKIN'S 6502
FLOATING POINT ROUTINES
Dear Jim, Sept. 22, 1976
Subsequent to the publication of ...
by fenrock
Sat Oct 31, 2020 1:19 pm
Forum: General Discussions
Topic: error in wozfp1.txt
Replies: 10
Views: 2215

Re: error in wozfp1.txt

I know this is reviving an ancient thread, I only created an account to search/mention the same mistake, but also the fact that A1 is wrong too:

A1: 80 52 80 40 = 1.289077759

it should be:

A1: 80 52 B0 40 = 1.2920074 as required.

Again, the version at http://www.easy68k.com/paulrsm/6502/WOZFPIA ...