Detecting the TUBE

= Detecting the TUBE =

Not all software routines are compatible with the TUBE (e.g. the 6502 co-processor) in use so being able to check for this can be handy. The code below will test for the TUBE and if detected notify the user and end the program. If the TUBE is not detected then the program will branch to the label 'routine' where your own code can go.

Edit by J.G.Harston
The proper way is to detect which side of the Tube you are executing on. If you're executing in the I/O processor it's irrelavant whether there's a Tube active or not.