<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Tue, 16 Jun 2009 22:06:20 +0100
From   : bbcmailinglist@... (Ian Wolstenholme)
Subject: Am I saving or loading 1 byte too many....?

I always use the "+" alternative, eg.

*SAVE xxxx 3000+1000

To me, that would save exactly &1000 bytes from and including &3000 up
to &3FFF, which is the &1000th byte.

There isn't a *LOAD xxxx 3000 4000 syntax, it's *LOAD xxxx 3000 which will
load xxxx starting at &3000 and continuing for the full length of file xxxx.

Best wishes,


Ian

----- Original Message -----
From: Mark Haysman [mailto:jumbos.bazzar@...]
To: bbc-micro@...
Sent: Tue, 16 Jun 2009 21:54:28 +0100
Subject: [BBC-Micro] Am I saving or loading 1 byte too many....?

Hi folks.

Okay, this is giving me a headache, and I can't decide which way round is 
right, but I'm sure you guys will flog me and tell me a definative answer.

*SAVE <xxxx> 3000 4000

Should that save the actual byte at &4000 or not? Or should it only save to 
&3FFF? I suppose if it saves &4000, the filesize would be &1001 wouldn't it, 
as it's actually written &1001 bytes, or is it &1000, as &4000-&3000 = 
&1000?

Similarly:

*LOAD <xxxx> 3000 4000

Should that retain the old value of &4000, or overwrite it with the last 
byte of <xxxx>

Thanks. Mark. 



_______________________________________________
bbc-micro mailing list
bbc-micro@...
http://lists.cloud9.co.uk/mailman/listinfo/bbc-micro
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>