Re: Assembly - Convert 16 bit integer to ascii help please [message #33143 is a reply to message #33142] |
Sun, 13 January 2013 22:35 |
JB
Messages: 42 Registered: January 2013
Karma:
|
Member |
|
|
I have been writing a BBS, so 99% of my ML is under basic. Not only does my routine need to print the #, but it needs to store it and print through the modem as well. Pretty tough to do with the basic routine.
On Sunday, January 13, 2013 10:01:59 PM UTC-5, rusure wrote:
> 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.
|
|
|