Re: A86: Re: basic programs and stuff


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

Re: A86: Re: basic programs and stuff




On Fri, 2 Jul 1999 07:26:21 EDT Jeanne9005@aol.com writes:
>
>So how long would the call take to actually tokenize the program?  Is 
>it the 
>same time as executing the program, or would it be faster, because of 
>the 
>direct processor call?  Also, how would _tokenize be used..?

it would be faster than running a program from the homescreen, because
that has to tokenize the command line as well, but i don't think it would
be much faster than compiling with _exec_basic

_COMPILE uses _tokenize like this:
(after checking if it's needed)
    call    _OP1TOOP3
    call    _setupEditEqu
    call    _CKOP1REAL      ;(type byte of op1->a)
    cp      $12             ;if it's a program,
    call    z,_bufDelete
    call    _tokenize
    call    _closeEditEqu
    bit     2,(iy+#13)
    jp      nz,_errMemory   ;error 15, memory
    jp      _OP3TOOP1

-josh

>Glen
>www.geocities.com/CapeCanaveral/Runway/6208
>
>In a message dated Fri, 2 Jul 1999  2:09:00 AM Eastern Daylight Time, 
>Joshua 
>J Seagoe <rabidcow@juno.com> writes:
>
>> 
>> _tokenize takes input from the edit buffer, i think.
>> 
>> but what you're looking for is _COMPILE equ $51e5
>> _COMPILE takes the program (or equation) name in op1 (and address in 
>bde,
>> so rst $10 first)
>> it copies the var name to op3 (and back) and modifies all registers
>> also, this will call a memory error if there's not enough space.
>> 
>> -josh
>> 

___________________________________________________________________
Get the Internet just the way you want it.
Free software, free e-mail, and free Internet access for a month!
Try Juno Web: http://dl.www.juno.com/dynoget/tagj.