First BASIC to assembly compiler released
Posted on 3 January 1999, 00:59 GMT
David Hart has released the TI-BASIC Compiler v0.2 Alpha for Windows 9x/NT. This program will compile tokenised TI-BASIC programs into assembly programs for the TI-86. Currently there is only limited command support and most graphing commands are not supported. Compiling a program will increase its size by 20-40%, which is quite large when you compare BASIC and assembly programs. David will continue development on this program if he gets enough support (which he probably will).
|
|
|
The comments below are written by ticalc.org visitors. Their views are not necessarily those of ticalc.org, and ticalc.org takes no responsibility for their content.
|
|
Adding support for "advanced" TI-BASIC commands
|
my $0.2
|
Hey David, You know what would make this Compiler really rock? Include support for special ASM commands like these:
Sprite(
Invert(
Eraseline( TI86 can't erase lines :-(
Contrast(
PowerOff
Since the Compiler can only read tokenized code, You can put the special commands in your BASIC prgm in quotes on a line by themsleves like this:
:"Sprite( 2,5,00FFFE...)"
This will allow the command to appear in the tokenized code exactly how it was written in the original BASIC code (I think).
I'm not sure how your compiler works, but if you could figure out a way to add "Advanced ASM" commands, it would be so awesome!! Keep up the good work!
my 0.02
|
|
4 January 1999, 06:04 GMT
|
|
Re: First BASIC to assembly compiler released
|
Kane
|
Uh... it doesn't work for me. I get a Range Check Error every time I try to compile. Even when trying a simple program that Displays "Hi" wouldn't work. And yes, I ran it on my calc before sending it to the computer. So what could be wrong? I can't find anything in the help files about a Range Check error =[
|
|
4 January 1999, 22:17 GMT
|
|
Re: First BASIC to assembly compiler released
|
Mike
|
Yeah this would be nice if it acctually worked
|
|
4 January 1999, 22:31 GMT
|
|
Re: First BASIC to assembly compiler released
|
Roger
|
How come I get an error every time I try to compile a program with menus? The message is something about invalid parameters
|
|
5 January 1999, 04:44 GMT
|
|
Re: First BASIC to assembly compiler released
|
Mbeanis
(Web Page)
|
Everybody has said "Now do it for my calc!"
Well, I think the next logical step is the TI-85... like monkeys to humans (closest relation). Anyway, the BASIC "Assembly include" program function sounds pretty sweet, except that when the calc automatically tokenises the prog, it probably automatically inserts a Disp command before "ASM ", or am I totally wrong? I don't know enough, but it might be a problem. ANyway, good work, I wish I had a TI-86 now.
|
|
5 January 1999, 07:01 GMT
|
|
Re: First BASIC to assembly compiler released
|
higgimonster
|
This is a really great idea. I have an 83 and I am getting an 89 friday. I am asuming that i ue TI-BASIC to write these programs?
I hope so becaue I havee ton of progs that I have wwritten for my calc but they are too deemanding for my 6mhz of prosseccing power.
|
|
5 January 1999, 21:13 GMT
|
|
|
|
|
|
|
|
Re: Re: Re: First BASIC to assembly compiler released
|
Eugene
|
Actually, you CAN select commands from menus on a TI-89. On an 83, you HAVE to select from menus.
If I write any BASIC programs for my 82, I do it on my computer because I can't stand switching between the program editor and the menu--you can't see both at the same time! (Split screens? Dunno.)
Another difference is that we don't have the "One End Fits All" scenario. We end If-thens with an endif, for loops with endfor, generic loops with endloop, etc. (We even end prgms with endprgm!)
Here's a third: You can take advantage of parameters! (those things you can put in between the parentheses you tack on after a program name)
Let me also mention that you can also run programs without params from the keyboard by pressing diamond, then 1-9. Just rename the program kbdprgmx, replacing the x with a digit.
You will see more differences when you get the 89, if you decide to.
P.S. Just in case you want to know, I ran the same program (translated, of course) on the 82 and 89, and I noticed that the 89 ran much faster than the 82. (83? Same thing, I think.)
|
|
6 January 1999, 02:30 GMT
|
|
|
|
|
|
|
|
|
|
|
Really Slow 86''s
|
KAKE
|
Nathan Ladd,
i don't know whether you know this or not, but the 86 is THE slowest 8x calculator (okay, so maybe the 80 or the 81 is, they're irrelevant). the reasons are technical, but simply put, the z80 can't handled 100k of RAM. so it does some insane little switching thingy which takes time. so for anybody AT ALL that makes basic progs, a turbo is damn well near a requirement. it makes the calc actually usable. i know only 1 person who thinks it's just fine.
well, enough rambling. remember,
too many
chefs
ruin
the
-KAKE
|
|
7 January 1999, 04:12 GMT
|
|
1 2 3 4 5
You can change the number of comments per page in Account Preferences.
|