Re: A86: ASM Converter from 85->86


[Prev][Next][Index][Thread]

Re: A86: ASM Converter from 85->86



At 05:26 PM 8/1/97 -0500, you wrote:
>>> above all of that, the program to do the conversion would be smaller.
>>Smaller than what?
>
>Than a program to change the source code.  If you made a program to 
>account for all possible contingencies in the source code, it would be 
>ridiculously large. One that dealt with bytecodes would't have to be.  If 

That's what a header, or include file is for.  Make it exactly like
ti-85.h, except have the 86 addresses in there.  Like:

#DEFINE     ROM_CALL(CLEARLCD)           call _clrLCD

I don't know if oyu can do this, but - 

#DEFINE     out (6),a                    out (4),a

That would take care of almost everything.  Some things, like _almost
anything_ dealing with variables, would not be seamlessly convertable.

However, a lot of programmers just put the address in, like $800C instead
of CURSOR_ROW, so that wouldn't work.

All considered, it's just not worth it.  As Dan said, just let the author
take care of porting it.  If they don't want to, ask if you can do it for
them.




-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Alan Bailey            mailto:bailela@charlie.cns.iit.edu
 IRC:Abalone                     Web:nowhere at the moment
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 


Follow-Ups: References: