Re: 86 Basic to ASM
[Prev][Next][Index][Thread]
Re: 86 Basic to ASM
It seems that if you just made a p-code generator, it wouldn't help the speed,
and the size difference would be offset by the p-code interpreter on the
calculator. Also, whatever compiling/interpreting method you use, you would
have to be able to make calls to the built-in interpreter to execute TI-BASIC
code generated during runtime (such as a mathematical expression entered at an
INPUT command).
________________
Jeff Tyrrill
http://tyrrill-ticalc.home.ml.org/
http://ti-files.home.ml.org/
-----Original Message-----
From: Open discussion of TI Graphing Calculators On Behalf Of Reinier
Zwitserloot
Sent: Thursday, July 03, 1997 10:16 AM
To: CALC-TI@LISTS.PPP.TI.COM
Subject: Re: 86 Basic to ASM
Contrary to what people have been saying, this is very possible. However:
I don't think this one will be very 'smart' for converting TI-BASIC *on*
the TI-85. Instead, write a compiler for the PC that takes TI-basic files,
and turns them into Z80 assembly, along with the correct adresses for the
TI85, rom <pick one>, or, probably better, Zshell compatible. You could
also make a semi-compiler, a p-code generator, which is what QBasic does
(lousy, if you ask me), and then you could leave the code common to all the
programs generated this way as library in usgard.
NB: Compiled basic is in fact not too hard, and it can be quite fast. For
IBMs, Powerbasic (a compiled basic) has been outdoing C from time to
time...
Whoever wants to write *that*... phooi. tuff job.
--
-R.Zwitserloot@BTInternet.com
Mark G Malley <markgm@JUNO.COM> wrote in article
<19970630.210829.4830.0.MarkGM@juno.com>...
> Does anyone know if it is possible to write a program that will turn 86
> basic into asm. It would probably be close to impossible, but it would
> make writing quick and efficient programs easy! If anyone has any ideas,
> let me know. Thanks!
>
>
> -MarkGM@Juno.com
>
Follow-Ups: