Re: A83: link routine


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

Re: A83: link routine




It is a nice idea, but if you are linking to programs together, then you
both will have stored 1265 to x and it would think there was no
connection anyways. Think about it...

Edub311@aol.com wrote:
> 
> You can check whether a link cable is connected using BASIC using the
> "Getcalc" command.Now this will only work if you need to check for a calc at
> the beginning of a program, since you can put it before the "Send(9prgm"
> command.  The code:
> 
> :1265->X
> :GetCalc(X)
> :If X=1265
> :Then
> :Goto 1
> :End
> :Goto 2
> :Lbl 1
> :Disp "No Connection"
> :Stop
> Lbl 2
> :Send(9prgmNAME
> This works because if getcalc cant find another calculator, it gets it's own
> values
> 
> Now, Im sure there's some fancy, efficient ASM equivalent that im not aware
> of, but this is quick and easy.  The only problem is that you cant check
> during an ASM program (well you can by restarting the BASIC program, but its
> a pain in the ass.)
> 
> 
>                                         Bud

-- 
Scott "_Wrath_" Dial
homosapian@geocities.com
ICQ#3608935
http://www.geocities.com/~homosapian/


Follow-Ups: References: