Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > 32bit Decimal convertion
2018-10-05 07:02
JackAsser

Registered: Jun 2002
Posts: 2014
32bit Decimal convertion

Anybody got this shitz for 32-bit numbers? http://codebase64.org/doku.php?id=base:hexadecimal_to_decimal_c..
2018-10-05 09:12
Krill

Registered: Apr 2002
Posts: 2980
You're too lazy to pick any of the 3 approaches and modify the routine for 32-bit numbers? :)
2018-10-05 09:55
Frantic

Registered: Mar 2003
Posts: 1648
If he is, I could sort of sympathise with that, if it was part of a large project like Eye of the Beholder with zillions of lines of code and someone else had already implemented a 32-bit version of that routine.

I can't sympathise with the spelling of "Convertion" (Conversion) though. ;)
2018-10-05 10:08
chatGPZ

Registered: Dec 2001
Posts: 11386
did you check 6502.org? i think they had sth.... i am too lazy to look though =D
2018-10-05 10:26
JackAsser

Registered: Jun 2002
Posts: 2014
Quote: You're too lazy to pick any of the 3 approaches and modify the routine for 32-bit numbers? :)

exactly
2018-10-05 10:26
JackAsser

Registered: Jun 2002
Posts: 2014
Quote: If he is, I could sort of sympathise with that, if it was part of a large project like Eye of the Beholder with zillions of lines of code and someone else had already implemented a 32-bit version of that routine.

I can't sympathise with the spelling of "Convertion" (Conversion) though. ;)


Dang!! :)
2018-10-05 10:29
JackAsser

Registered: Jun 2002
Posts: 2014
Quote: did you check 6502.org? i think they had sth.... i am too lazy to look though =D

Ahh no, I didn't. Checking now... nope, same there as on Codebase.

I guess I'll roll my own then. Just so annoyingly boring and my general purpose division in EotB is only 16-bit.. Thinking of some simple shift+add with the 1/10 since that is a very simple bitpattern 110011001100110011...
2018-10-05 10:32
JackAsser

Registered: Jun 2002
Posts: 2014
Or I just show the experience points in hex... ;)
2018-10-05 10:33
JackAsser

Registered: Jun 2002
Posts: 2014
Quote: If he is, I could sort of sympathise with that, if it was part of a large project like Eye of the Beholder with zillions of lines of code and someone else had already implemented a 32-bit version of that routine.

I can't sympathise with the spelling of "Convertion" (Conversion) though. ;)


Also not zillions, but just 40688 at the moment (675kb).
2018-10-05 10:35
Krill

Registered: Apr 2002
Posts: 2980
Quoting JackAsser
nope, same there as on Codebase.
Indeed, Codebase has a straight 1:1 rip of the original 6502.org page, without giving proper credit. Not cool, Codebase, not cool.

Quoting JackAsser
Thinking of some simple shift+add with the 1/10 since that is a very simple bitpattern 110011001100110011...
Please elaborate. :)
2018-10-05 10:36
JackAsser

Registered: Jun 2002
Posts: 2014
Quote: You're too lazy to pick any of the 3 approaches and modify the routine for 32-bit numbers? :)

Actually I didn't even bother to look closer on that code posted there but I didn't now and it's meant to be extended.

"The principle should be pretty clear. You can take it out to as many digits as you want."

However it relies on decimal mode being set, something my interrupt handlers can't handle and I'm not willing to fuck timing all over the place.
 
... 17 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 | 3 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Flashback
psych
algorithm
morphfrog
stephan-a
Guests online: 94
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 No Listen  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Rainbow Connection  (9.5)
7 Dawnfall V1.1  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top NTSC-Fixers
1 Pudwerx  (10)
2 Booze  (9.7)
3 Stormbringer  (9.7)
4 Fungus  (9.6)
5 Grim Reaper  (9.3)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.141 sec.