Re: A83: link routine


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

Re: A83: link routine




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


Follow-Ups: