DOS Tool Kit: Assembler

Here's an undocumented fact about the DOS Tool Kit: If you have assembled a relocatable file and are then trying to run it from a BASIC program, make sure that the BASIC program file name does not begin with the same characters as your relocatable file.
An example of what to avoid:

Relocatable file = Relocate Example.OBJO
BASIC file = Relocate

If you make this error, the following BASIC program (named Relocate) will fail and display the error message "Undefined statement at 5".

10 ADDRS=0: REM PRE ALLOCATE VARIABLE TABLE
20 PRINT CHR$(4); "BLOAD RBOOT" CALL 520
30 ADRS=USR(0),"RELOCATE.OBJO"
40 CALL ADRS

Simply by changing the name of the relocatable file to Example.OBJO, and changing line 30 in the above program as follows, you can correct the problem.

30 ADRS=USR(0),"EXAMPLE.OBJO"
Published Date: Feb 18, 2012