In fact, the D_File don't occur the Basic and vars datas.
It only redirect the display reading.
Just POKE or LET things to the good 'relocated' D_File!
All "PRINT" or "PLOT" (Basic process) stay on the "right" (original:after Basic memory) screen offset, but isn't showed and stay hidden!
The D_File transfer can be used to display a "waiting" splash-screen... in a rem.
just type a rem with:
REM chr$(118)+chr$(118)+chr$(118)+chr$(118)+chr$(118)+chr$(118)+chr$(118)+chr$(118)+"PLEASE WAIT..."+chr$(118)+chr$(118)+chr$(118)+chr$(118)+chr$(118)+chr$(118)
And swap the D_file to this REM!
Warning to Errors prompts, they are displayed on the 'original' D_file offset... and hidden!
DEMO: "Wait" screen with progress bar.
Code: Select all
# REM XXXXXXXXXXX PLEASE WAIT .
# ..XXXXXXXXXXXXXX
1 REM [HEX:\
76,76,76,76,76,76,76,76,\
76,76,76,00,00,00,00,00,\
00,00,00,35,31,2A,26,38,\
2A,00,3C,26,2E,39,00,1B,\
1B,1B,76,76,76,76,76,76,\
76,76,76,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,05,76,76,76,76,76,\
]
9 LET DES=16514
10 REM SAVE DFILE
13 POKE 16507,PEEK(16396)
14 POKE 16508,PEEK(16397)
16 POKE 16396,DES-INT(DES/256)*256
17 POKE 16397,INT(DES/256)
18 POKE 16444,PEEK(16396)
19 POKE 16445,PEEK(16397)
20 LET P=16556
21 FOR S=P TO P+17
22 POKE S+1,136
23 NEXT S
25 FOR A=0 TO PI STEP VAL".17"
26 LET P=P+1
27 PLOT SIN A*COS A*25+SQR A*30,-SIN A*COS A*20+20
28 POKE P,128
29 NEXT A
100 POKE 16396,PEEK(16507)
110 POKE 16397,PEEK(16508)