Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Digital Archaeology » Computer Arcana » Commodore » Commodore 8-bit » Assembly - Convert 16 bit integer to ascii help please
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Assembly - Convert 16 bit integer to ascii help please [message #33142 is a reply to message #33068] Sun, 13 January 2013 22:01 Go to previous messageGo to previous message
rusure is currently offline  rusure
Messages: 1030
Registered: March 2012
Karma:
Senior Member
On Sunday, January 13, 2013 8:26:56 AM UTC-7, JB wrote:
> Yeah I know about $BDCD but that will only print the number not store it in a memory location. I did break that routine down and can make it work, but basic rom has to be switched in for it to work. I'd like to have a solution that will run regardless if basic is in or out.


You decided that it would be easier to write your own routine from scratch rather than fuss with $BDCD using a C64 machine language monitor. Right now, you don't know where the routine converts the binary to text decimal as well as where it stores the text. Because the C128 has a hard wired monitor in its system, I found the decimal text in the stack at $0100. That would be the first place to look in the C64.

My programs are simple and short enough to peacefully coexist with BASIC.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PTV-Newsletter 5/2013
Next Topic: THE MULTICART IS FINALLY READY!!!!!!
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Jan 29 03:55:36 EST 2023

Total time taken to generate the page: 0.00270 seconds