13.07.2015 Views

Turbo Basic

Turbo Basic

Turbo Basic

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

When a run-time error occurs, <strong>Turbo</strong> <strong>Basic</strong> tells you the type of error (always innumeric form, and in words if launched from within <strong>Turbo</strong>· <strong>Basic</strong>) as well as thevalue in the processor's program counter at the time of the error.By recompiling, <strong>Turbo</strong> <strong>Basic</strong> is able to calculate the point in a source programcorresponding to a run-time address in an object program. For example, considerprogram TEST.BAS:x = 256PRINT CHR$(x)Although this program is syntactically correct, and will therefore compile successfully,a run-time error will be generated when the system attempts to print acharacter with an ASCII value of 256:Error 5 Illegal function call at pgm-ctr: 29The Run-time error option uses this program counter value to find the statementthat caused the error.57

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

Saved successfully!

Ooh no, something went wrong!