<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Sun, 11 May 2008 23:58:09 +0100
From   : jgh@... (Jonathan Graham Harston)
Subject: BBC Script and Crunch

Andrew wrote:
> > BBC Script
> > Machine BBC B
> > OSCLI"BFS"
> > LOAD"VICTORY"
> > OSCLI"CRUNCH BCLSVT:":SAVE"VICTORY2"
> > HMLOAD
> >
> > Any idea why?
> >
> Having tested a bit more it seems that SAVE won't actually work in
> Script files. Is this true?
 
BBC Script files allow multiple lines of the following commands:
PALETTE CURSOR EXACTSPEED SOUND DISABLETAPE SCROLLHACK KEYMAP
PATCH SPEED INDEXFILE TAPEFILE LOADROM LOADRAM KILLROM MACHINE
 
followed by *EXACTLY* *ONE* additional line that is entered into
the keyboard buffer. You are completely misusing script files if
you are trying to have an arbitary number of lines of commands in
them. You need an exec file. Try:
 
File "script" filetype BBC
----8<----
BBC Script
Machine BBC B
*Exec execfile
----8<----
 
File "execfile" filetype FFF
----8<----
LOAD "VICTORY"
*CRUNCH BCLSVT:
SAVE "VICTORY2"
----8<----
 
Also, note that SAVE is an immediate command, not a program
command, so you can't use it in a multi-statement line. For
example:
 
PRINT "HI":SAVE "FRED"
 
will give Syntax error. Try putting the SAVE on a seperate line.
 
-- 
J.G.Harston - jgh@...                - mdfs.net/User/JGH
Taxation is like dairy farming. You have to extract the maximum
amount of milk with the minimum amount of moo.
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>