<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Tue, 13 May 2008 09:26:41 +0100
From   : aw29009@... (Andrew)
Subject: BBC Script and Crunch

In message <080512002502@...>
          jgh@... (Jonathan Graham Harston) wrote:

>> 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<----
> 
Thanks. Yes, this is what I find out eventually.

> 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.
> 
I see, thanks.

Andrew

-- 
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>