Re: A83: Basic prog compiling
[Prev][Next][Index][Thread]
Re: A83: Basic prog compiling
On 03-Aug-98, Alan C Johnson wrote:
>I'm just saying that if you could find the core of the BASIC Assembler
>somewhere in the ROM (and I wouldn't be too suprised if Linus already
>has), you'd only have to change it a little in order to make it so it
>permanatly compiles the program. Let's say if the interpreter turns the
>BASIC code into ASM, you could modify it so it makes a program that calls
>_createprog and ldir the code to the new program.
Yes I have, but I don't "master" it completely yet. Still, I can say with 100%
certainty that what you're trying to do is impossible. (Not saying that you
can't do it anyway though.. =)) But the BASIC interpreter shares most of its
code with the parser. It is splattered all over the whole dozen of ROM pages,
and much of the system is built around it. When running a BASIC program, the
system jumps around in the ROM, keeping a pointer to the current command in
the program being executed. No assembly code is ever put into RAM during this
process. And compiling BASIC programs would generate fat, clumsy code, code
that can be found all over the ROM anyway. So it's no good idea, REALLY.
Linus
On 03-Aug-98, Alan C Johnson wrote:
>PS. I know the problem with CURCOL on the string routine, you couldn't
>control the colomn (or however you spell it) in BASIC.
>On Mon, 3 Aug 1998 22:45:48 +0900 "James Matthews"
><matthews@tkb.att.ne.jp> writes:
>>
>>i wouldn't even bother trying if I were you...think about it. How
>>would
>>you translate the following basic command?
>>
>>If (expr(Str)-1>0) or (iPart(A/B*Y1(2)) = 1/3)
>>Then
>>Disp "Wow, it worked!"
>>End
>>
>>Ok, so I'm overdoing it, but I love putting multiple commands on one
>>line
>>like that...and I'm sure other people do to. To change that to ASM
>>would
>>be, well...difficult.
>>
>>And also commands like:
>>normalcdf(), rref(), ref()...would be close to impossible to change to
>>ASM,
>>unless they have Rom calls.
>>
>>I mean, if you wanna try, go ahead :)...but I'd doubt you'd get to
>>far...but this is one point I wanna be proved wrong on...hehe
>>
>>Gambare!
>>
>>James.
>>
>>____________________
>>
>>James Matthews.
>>E-mail (family): matthews@tkb.att.ne.jp
>>E-mail (private): james_matthews@hotmail.com
>>
>>Homepage: http://home.att.ne.jp/gold/tomcat21/index.html
>>ICQ: 7413754
>>____________________________________
>>
>>----------
>>> From: VorTexx15@aol.com
>>> To: assembly-83@lists.ticalc.org
>>> Subject: Re: A83: Basic prog compiling
>>> Date: Monday, August 03, 1998 1:31 PM
>>>
>>>
>>> I'll program a computer program that converts basic to asm. it may
>>not
>>be
>>> exactly like ti basic though.
>>
>_____________________________________________________________________
>You don't need to buy Internet access to use free Internet e-mail.
>Get completely free e-mail from Juno at http://www.juno.com
>Or call Juno at (800) 654-JUNO [654-5866]
References: