Re: Assembly - Convert 16 bit integer to ascii help please [message #33142 is a reply to message #33068] |
Sun, 13 January 2013 22:01 |
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.
|
|
|