Below is a patch that causes Turbo Pascal (Z80 version) to automatically
load the error message overlay file without asking the user first. In
essence, what happens is that Turbo displays the question (do you want
to load the message file), calls a subroutine to read the response, and
stores the response. The yes_or_no sbr returns a 0 if the answer was
'N', and non-zero (I didn't check the exact value) if the answer was
'Y'. Turbo then loads the message file if the zero flag is not set.
This patch overwrites the call to the "display string" function and the
start of the message. It clears the A register, adds one to clear the
zero flag, and branches past the call to yes_or_no. If don't you want
to load the error file, change the increment instruction to a no_op.
When the patched Turbo is run, the copyright message will be displayed
until the error file has been loaded, then it will display the "main"
menu. If the error file is not being loaded, the c-r message will be
displayed briefly, to be replaced by the main menu. Remember, this
patch is for the Z-80 versions, but a similar patch is available for the
IBM version.
NOTE: in the patches below, all user input is in lower case, and comments
to the user are in brackets [].