¢¢ COMPILING MADE EASY ¢¢ by Ron Fetzer ¢Member of THE OL' HACKERS ATARI U.G.¢¢ The TURBO-BASIC COMPILER is the¢easiest and the most trouble free¢compiler for BASIC programs ever¢written. It works equally well with¢ATARI BASIC or TURBO-BASIC. A compiled¢program will increase in speed from¢10-15 times over its BASIC version.¢ In certain programs, this¢sometimes can be a problem. If you¢have critical timing loops, they will¢also increase in speed from 10-15¢times. To overcome this, use the¢TURBO-BASIC command of PAUSE n. PAUSE¢60 is equal to about 1 second of¢delay. For longer pauses increase the¢number [n]. The PAUSE command will not¢speed up when compiled. The following¢instructions are for a 1 disk drive¢system.¢¢ MAKING A SELFBOOTING COMPILED DISK ¢¢1. Format a disk and put DOS on it.¢(This will be your compiled disk.)¢2. Copy the file RUNTIME.COM from the¢compiler disk onto your new disk and¢re-name it AUTORUN.SYS. RUNTIME.COM is¢needed to run the compiled program.¢3. Put the COMPILER DISK into the¢drive and go to DOS, option [L]. Load¢the program COMPILER.COM into your¢computer. REMOVE the compiler disk.¢4. Put your program disk with the¢BASIC program that is to be compiled,¢into the disk drive.¢5. Press '1' for one disk drive. You¢will see a directory of files of your¢disk. With the arrow keys go to the¢program that you want to compile.¢6. Press RETURN and the program will¢be compiled. REMOVE your program¢disk.¢7. Insert the disk with DOS and the¢AUTORUN.SYS into the drive.¢8. Give the compiled program the¢filename of AUTORUN. The filename¢extender of .CTB(Compiled Turbo-Basic)¢will be automatically attached by the¢program. PLEASE NOTE the following.¢You can ONLY save a compiled program¢in drive 1. Answer [N] to SPEICHERN¢(SAVING) again.¢9. Press CNTRL+R to boot up your new¢disk. Answer 'J' Ja=Yes¢¢ You now have a self booting¢compiled program. Compiled programs¢and all TURBO-BASIC programs run only¢on XL/XE computers. The following¢program structure will NOT COMPILE. If¢you have one of these please change it¢first.¢¢ 10 FOR X = 1 TO 20¢ 20 IF X =15 THEN NEXT X¢ 30 NEXT X¢¢ If the compiler sees two NEXTs in¢a loop it assumes it as an error. The¢compiler is written in German. This¢can be a little upsetting, However,¢below is the translation in ENGLISH:¢¢ TURBO-BASIC XL Compiler Version 1.1 ¢ =================================== ¢¢ Which program should be compiled?¢¢First select the disk drive number¢between 1 and 8 and then select the¢program with the arrow keys <-,->, up¢arrow, down arrow. Then press RETURN¢ ¢ CONTROL D = RETURN TO DOS¢ CONTROL R = REBOOT¢--------------------------------------¢¢ Here are some German words that¢might help you.¢¢GERMAN ENGLISH¢------ -------¢JA YES¢NEIN NO¢SPEICHERN SAVING TO A DISK¢PROGRAMLEANGE PROGRAM LENGTH¢FEHLER ERROR¢ZEILE LINE NUMBER¢LAUFWERKSNUMMER DISK DRIVE NUMBER¢PFEILTASTEN ARROW KEYS¢TASTE DRUCKEN PRESS A KEY¢COMPILIERT COMPILED¢WAHLEN SELECTING¢**************************************¢*¢ I hope I have made you realize¢how really simple it is to compile a¢BASIC program with th COMPILER, so¢that it will run like a machine¢language program.¢December 20,1990¢¢