Date : Tue, 16 Jun 2009 22:19:29 +0100
From : dm.hunt@... (David Hunt)
Subject: 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>
>
*SAVE <start> <end> stores all bytes from and including <start> to <end-1>
So, a file *SAVE test 3000 4000 would be $.test 003000 003000 001000
Dave