6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 22, 2024 7:23 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sat Jun 05, 2021 6:24 pm 
Offline

Joined: Thu May 13, 2021 8:56 am
Posts: 31
Location: Hellevoetsluis-NL
Hello,

I wont to implement the floatingpoint routines from Steve Wozniak.
Enaugh info is availble on the web but
I Have trouble to convert a float to the 4 byte format, and back.

In the source I found as an example 1.4426950409 => $80,$5C,$55,$1E

Can someone explane me the conversion.

Thank for any help.

Cheers,

Jan


Top
 Profile  
Reply with quote  
PostPosted: Sat Jun 05, 2021 7:02 pm 
Offline
User avatar

Joined: Sun Jun 30, 2013 10:26 pm
Posts: 1949
Location: Sacramento, CA, USA
It's not super-complicated, but I stalled on my attempts due to a secret combination of lack of spare time, lack of enthusiasm, and lack of talent. I speculate that a small improvement in any of those three qualities could have produced working code, but that's just the way the cookie crumbled. Maybe later ...

viewtopic.php?f=2&t=5652

viewtopic.php?f=1&t=3633

viewtopic.php?f=2&t=5724

viewtopic.php?f=2&t=5879&p=72341&hilit=wozfloat#p72341

_________________
Got a kilobyte lying fallow in your 65xx's memory map? Sprinkle some VTL02C on it and see how it grows on you!

Mike B. (about me) (learning how to github)


Top
 Profile  
Reply with quote  
PostPosted: Mon Jun 28, 2021 12:35 am 
Offline
User avatar

Joined: Thu Mar 11, 2004 7:42 am
Posts: 362
Buried in the rabbit hole of all those threads is this post which covers converting the bytes the floating point number they represent, and goes through some examples.

viewtopic.php?p=3116#p3116


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 41 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: