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

372 Having created the ASCII version of SHORT called SHORT2 , the user then loads the file LONG . The command *EXEC "SHORT2" tells the computer to read in the file SHORT2 as if it were getting characters from the keyboard. If the file SHORT2 contains line numbers (as it does), then these lines will just be added to the BASIC program. Of course, a line number read in from SHORT2 will replace any line with an identical line number in LONG , so it is necessary to renumber the two programs SHORT and LONG so that their line numbers don’t clash.

A quicker method is given below – but if you use this method you must make sure that the second program that you loaded in uses larger line numbers than the first program. You will get surprising results if not. Firstly load the program (with the lower line numbers) in the normal way. Then get the computer to print, in hex, the top-of-program address less two by entering PRINT ~TOP-2 Call the resultant number XXXX . Then enter *LOAD SHORT XXXX to load the program SHORT (or whatever you have called it) in above the first program. Finally type END to get the computer to sort its internal pointers out.

A typical dialog might look like this – assuming that one program is called ONE and the other is called TWO . >LOAD "ONE" >PRINT~TOP-2 195F >*LOAD TWO 195F >END This method is very easy, but you must look after the line numbers.