Acorn Computers BBC Micro Model B w/8271 — Acorn BBC Micro Model B w/8271 User Guide Manual PDF

368 Changing responses to errors If the user wishes to change the way the computer behaves when it detects an error during a cassette file operation (eg LOAD or SAVE ) then this can be done with the *OPT statement. *OPT by itself resets error handling and the ‘message switch’ to their default values. Default values are given later. *OPT1,X is used to set the message switch which controls the detail of the message. X=0 Implies no messages are issued. X=1 Gives short messages. X=3 Gives detailed information including load and execution addresses. *OPT2,X is used to control the action that the computer takes when it detects an error during a cassette file operation.

X=0 Lets the computer ignore all errors though messages may be given. X=1 The computer prompts the user to retry by rewinding the cassette. X=2 The computer aborts the operation by generating an error. *OPT3,X is used to set the inter-block gap used when recording data using PRINT# and BPUT# . The gap on SAVE is fixed. The value of X determines the gap in 1/10 seconds. If X is set to greater than 127 then the gap is set to the default value. The default values for the *OPT command are: *OPT,1 Short messages. For LOAD , SAVE , CHAIN , *SAVE , *LOAD , *RUN *OPT2,1 Prompt for retry. *OPT3,6 0.6 second inter-block gap. For BGET# , INPUT# , BPUT# , PRINT# *OPT1,0 No messages.

*OPT2,2 Abort on error. *OPT3,25 2.5 second inter-block gap. Note: The effect of the *OPT command is different for each file system. When writing programs that are to run on cassette and disc the user must be fully aware of these different effects. The user is referred to the appropriate Disc Filing System User Guide .