Home »
Digital Archaeology »
Computer Arcana »
Commodore »
Commodore 8-bit »
Assembly - Convert 16 bit integer to ascii help please
Re: Assembly - Convert 16 bit integer to ascii help please [message #33036 is a reply to message #33008] |
Sun, 13 January 2013 02:12   |
Groepaz
Messages: 640 Registered: December 2011
Karma:
|
Senior Member |
|
|
rusure wrote:
> On Saturday, January 12, 2013 8:56:32 AM UTC-7, JB wrote:
>> I am looking for a routine to convert a 16 bit integer into ascii (text)
>>
>>
>>
>> ex. convert $C000 (49152) to the characters "49152" stored in a memory
>> address.
>>
>> Ideally I would like to have a routine that you can pass an option to
>> either print leading 0's or strip them. But first things first I guess.
>> :)
>
> A C64 systems routine at $bdcd prints the decimal equivalent of a two byte
> integer. Here is how to use that code:
its not a very good idea to use direct calls into basic rom though =P
--
http://www.hitmen-console.org http://magicdisk.untergrund.net
http://www.pokefinder.org http://ftp.pokefinder.org
Every program has at least one bug and can be shortened by at least one
instruction --- from which, by induction, one can deduce that every program
can be reduced to one instruction which doesn't work.
|
|
|
 |
|
Assembly - Convert 16 bit integer to ascii help please
By: JB on Sat, 12 January 2013 10:56
|
 |
|
Re: Assembly - Convert 16 bit integer to ascii help please
|
 |
|
Re: Assembly - Convert 16 bit integer to ascii help please
By: Anonymous on Sun, 13 January 2013 09:38
|
 |
|
Re: Assembly - Convert 16 bit integer to ascii help please
By: Anonymous on Sun, 13 January 2013 09:47
|
 |
|
Re: Assembly - Convert 16 bit integer to ascii help please
By: JB on Sun, 13 January 2013 10:28
|
 |
|
Re: Assembly - Convert 16 bit integer to ascii help please
By: Anonymous on Sun, 13 January 2013 11:42
|
 |
|
Re: Assembly - Convert 16 bit integer to ascii help please
By: Anonymous on Fri, 18 January 2013 14:30
|
 |
|
Re: Assembly - Convert 16 bit integer to ascii help please
By: rusure on Sat, 12 January 2013 21:14
|
 |
|
Re: Assembly - Convert 16 bit integer to ascii help please
By: Groepaz on Sun, 13 January 2013 02:12
|
 |
|
Re: Assembly - Convert 16 bit integer to ascii help please
By: rusure on Sun, 13 January 2013 21:20
|
 |
|
Re: Assembly - Convert 16 bit integer to ascii help please
By: Groepaz on Mon, 14 January 2013 05:20
|
 |
|
Re: Assembly - Convert 16 bit integer to ascii help please
By: Anonymous on Mon, 03 June 2013 05:50
|
 |
|
Re: Assembly - Convert 16 bit integer to ascii help please
By: JB on Sun, 13 January 2013 10:26
|
 |
|
Re: Assembly - Convert 16 bit integer to ascii help please
By: rusure on Sun, 13 January 2013 22:01
|
 |
|
Re: Assembly - Convert 16 bit integer to ascii help please
By: JB on Sun, 13 January 2013 22:35
|
 |
|
Re: Assembly - Convert 16 bit integer to ascii help please
By: rusure on Mon, 14 January 2013 10:37
|
 |
|
Re: Assembly - Convert 16 bit integer to ascii help please
By: Anonymous on Fri, 31 May 2013 22:24
|
 |
|
Re: Assembly - Convert 16 bit integer to ascii help please
By: Anonymous on Mon, 03 June 2013 05:24
|
Goto Forum:
Current Time: Fri May 16 13:04:44 EDT 2025
Total time taken to generate the page: 0.00332 seconds