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: 1989
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: 2839
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: 1627
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: 11111
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: 1989
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: 1989
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: 1989
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: 1989
Or I just show the experience points in hex... ;)
2018-10-05 10:33
JackAsser

Registered: Jun 2002
Posts: 1989
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: 2839
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: 1989
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
cba
Fred/Channel 4
ΛΛdZ
Menace/Spaceballs
Krill/Plush
curtcool
Mike
www.gb64.com
HOL2001/Quantum
Guests online: 111
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Bromance  (9.6)
10 Memento Mori  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Graphicians
1 Sulevi  (10)
2 Mirage  (9.8)
3 Lobo  (9.7)
4 Mikael  (9.7)
5 Archmage  (9.7)

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