|
Post by feamsr00 on Mar 15, 2002 15:38:16 GMT -5
But think about it though, if one of the reasons basic is slow is because the calc has to translate each line, then why not redesign an emulator(VTI comes to mind) to run through it once and save the processor output?
|
|
|
Post by Jbirk on Mar 16, 2002 18:08:33 GMT -5
It is easier, and a more accurate emulator when you just simulate the hardware, and load the rom.
|
|
|
Post by feamsr00 on Mar 17, 2002 0:05:28 GMT -5
Umm ok, but what about the code being dumped to an asm prog then sent to calc?
|
|
|
Post by Jbirk on Mar 17, 2002 3:37:10 GMT -5
That sounds good to me, the only problem is that it woud be trickey to save the processor out put of the compiled basic program. Besides, it probably wouldn't work because a basic program is sompiled one line at a time, and therefor it might not be possible to gather the output.
|
|
|
Post by feamsr00 on Mar 17, 2002 10:06:06 GMT -5
ok leme clarify this... 1:run it on the computer in an emulator 2:when the emulator has the rom execute it, save the instruction to a file. 3:repeat 3 for length of prog 4:if needed add headers and such to code 5:send to calc
is this possible?
|
|
|
Post by Jbirk on Mar 29, 2002 3:14:36 GMT -5
Probably not without hiring a team of 50 for 5 years.
You can probably capture the output, but the output would be different if you pressed one key, because a getkey would save it to a file.
|
|
|
Post by Simucal on May 12, 2002 21:02:41 GMT -5
I was thinking about the possibility of writing a basic to assembly convertor, and I dont feel it would be as difficult as you guys have mentioned. I can see how a cleverly written C program could equate asm equivalants to basic programs.
However, I think the basic programs would have to follow certain guidelines. Too keep them from getting to complicated. In fact... I may write an example C program and a corresponding basic program and post it somewhere.
I'm almost sure I could do something that would work sufficently enough.
|
|
|
Post by Chris on May 13, 2002 10:28:54 GMT -5
hehehehe, a basic to asm program IS NOT POSSIBLE, the layout is COMPLETELY differenent and the only programs that have a similar layout r to complicated to understand by another programmer, let alone a computer program, the only way you can make a basic to asm converter is if the converter took the basic program and made an asm equivelent of the entire program, and a computer program CANNOT DO THAT
|
|
|
Post by Simucal on May 14, 2002 21:40:41 GMT -5
That is where I think you are wrong.
I will produce a working executable that will convert some very basic TI-Basic programs into assembly.
If interest is shown in the project I will put more time in it.
|
|
|
Post by JMan on Jul 2, 2002 9:52:39 GMT -5
Well, every basic token would have some ASM equivalent (the calc has to interpert it anyways) All you would have to do is just to translate that. Only trick would be the math functions.
|
|
|
Post by Chris on Jul 2, 2002 14:01:41 GMT -5
yes SOME...and they have to have a straightforward layout....but since most basic programs don't have that...it's not possible to make a practical basic2asm converter
|
|
|
Post by JMan on Jul 2, 2002 18:24:41 GMT -5
Well, keep in mind that some ASM is executed for every single command that you use. All you would have to do is decompile the TI-OS (I think that's illegal though... ;D) and see what is called every single command. Also, you wouldn't have to handle EVERY command, only ones remotly pertinent to progams that would benifit from the speed (only about games.)
|
|