13.07.2015 Views

Turbo Basic

Turbo Basic

Turbo Basic

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

• Bounds• Overflow• Stack test8087 requiredTum on this option when you're using an 8087 coprocessor chip for program execution.With this option on, <strong>Turbo</strong> <strong>Basic</strong> generates the best possible code for Hoatingpointoperations, both fast·and compact, using inline 8087 statements. The disad~vantage is that a program generated with this option on won't run on a machinewithout an 8087.With the 8087 option off {the default), programs can go both ways; that is, if an8087 is available, the program will use it. If not, the program will use softwareroutines to accomplish the same thing (albeit more slowly).Note: In some cases, a program will read that your machine has an 8087 chipwhen it really doesn't; for example, if you've set the switch on for 8087 but have yetto install the chip. This will either cause <strong>Turbo</strong> <strong>Basic</strong> to hang when running aprogram or to generate compile-time errors when compiling. Environment variablessolve this problem nicely. Add the following to your AUTOEXEC.BAT file:SET87=noTake a look at Appendix G, "A DOS Primer," for more information on environmentvariables and AUTOEXEC.BAT files.Keyboard break .If you want to interrupt a program with Ctrl-Break, tum this option on. Note thatthis applies to Ctrl-Break only, not Ctrl-C; Ctrl-C cannot interrupt a <strong>Turbo</strong> <strong>Basic</strong> program.Keep in mind that interrupting a program with Ctr/~Break is final-there isno way to continue execution later.It is also important to note that Ctrl-Break doesn't take effect until.the programoutputs text (not graphics) to the screen or printer or performs keyboard input.This means that you cannot interrupt sequences that don't perform I/O; for example:TightLoop: GOTO TightLoopruns until you reset the system. (However, to save you from this tight loop problem,we have equipped <strong>Turbo</strong> <strong>Basic</strong> with an Auto save edit option. In other words, youcan set this option on so that if you need to exit from a program by rebooting, youcan still manage to save your program. Refer to "The Setup Menu.")You can use the follOwing options for trapping certain types of run-time errors.Normally, when a program is in the development phase, you'll want all of theseoptions turned on so that you can catch any problems. When your program isdebugged, turn these options off to generate a final program version that is fasterand requires less memory.<strong>Turbo</strong> <strong>Basic</strong>: The Program 49

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!