<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Sun, 11 May 2008 14:59:58 +0100
From   : aw29009@... (Andrew)
Subject: BBC Script and Crunch

In message <6307cc9d4f.Andrew@...> you wrote:

> In message <4c6a9b0d0804090126j24de470dj15942b305d060fc0@...
> m> you wrote:
> 
>> On 08 Apr 2008 23:29:37 +0100, Jonathan Graham Harston
>> <jgh@...> wrote:
>>> > Message-ID: <4c6a9b0d0804070112j53fdf3d7o4a1f785676690467@...>
>>>
>>> "A W" wrote:
>>> > Jonathan Graham Harston
>>> > > The parameters to *CRUNCH specify what /not/ to remove, so you are
>>> > > telling *CRUNCH to:
>>> > >
>>> > I thought I'd included REM removal?
>>>
>>> You're right. That's odd. Have you tried *CRUNCH with no
>>> parameters at all?
>>>
>>> --
>> It did seem to work within BASIC without parameters but I'll test it
>> again with the script file without parameters and in basic with
>> parameters.
>> 
> Interesting.
> 
> *CRUNCH BCLSVT removes the REM statement from the second line when
> I've loaded the program and then pressed <Escape>. However I can't get
> the script file to do it then save it:
> 
> BBC Script
> Machine BBC B
> OSCLI"BFS"
> LOAD"VICTORY"
> OSCLI"CRUNCH BCLSVT:":SAVE"VICTORY2"
> HMLOAD
> 
> Any idea why?
> 
> Incidentally, what does ":" do as I didn't use that within BASIC?
> There are still colons in the listing.
> 
The only way I can get what I want to do (develop in RISC OS desktop, 
then crunch out comments automatically before running the game) is by 
using a script and an EXEC file:

BBC Script
Machine BBC B
LoadROM Toolkit+-2
OSCLI"EXEC CRUNCHER"

then via "cruncher":


LOAD "VICTORY"
OSCLI"CRUNCH BCLSVT:"
SAVE "VICTORY2"


Andrew



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