My knowledge of Basic is the equivalent of someone who knows a few pieces of conversational French. The aim is to amend the code so it will save game data to a virtual disk image in drive 1 on my MMC. This is the code someone found for me on the BBC archive site:
My understanding of the code is that the PROC command is the equivalent of GOSUB on the Beeb and that it executes pre-defined sub routines that pertain to game saves (is that correct?). What would I need to change in this code to ensure that the game looks for a disk image in drive 1 instead of drive 0? This is essential because the MMC has no means to change disk files on the fly so the save disk needs to be in another drive.
Code: Select all
13710DEFPROCSG:CLS:PROCB("SAVING GAME",3,8,0,2):PROCB("ENTER NAME OF FILE",1,1,4,0):PROCi("",5,22,4,10):IFV%=2ENDPROCELSEF$=E$ 13740PROCB("READY DISC THEN PRESS RETURN",4,2,8,0):*FX15,0 13760REPEATUNTILGET=13:PRINTTAB(9);:K=OPENOUTF$:PRINT#K,M,L,e,i,k,h,D,A(2),U,t,c,S,g,F,C,H,V,a,G,W,X,y,w,T,Y,G%,z,u,F%,Z%:FORI=1TO48:PRINT#K,T(I),T$(I),T%(I),B%(I),C%(I),Z(I):NEXT:FORI=1TO24:PRINT#K,P$(I),P(I),R%(I),Y%(I),V%(I):NEXT:FORI=1TO12:FORb=0TO1:PRINT#K,W%(I,b):NEXT,:CLOSE#K:ENDPROC
Thank you for the time you've taken to read this and for any help you are able to provide.