Date : Tue, 10 Nov 2009 01:03:38 +0000
From : afra@... (Phill Harvey-Smith)
Subject: Basic6809 1.00
Jonathan Graham Harston wrote:
>> Message-ID: <292997.29336.qm@...>
>
> Greg Cook wrote:
>> I prefer the existing way; Edgar Dijkstra hand-wrote a charming paper in
>> 1982 championing semi-inclusive ranges in this style, but Acorn had been
>> doing it this way since the System 1.
>
> It's so much more logical and intuitive
> for *SAVE pic 3000+5000
> and *SAVE pic 3000 8000
> to mean the same thing.
>
> Every start/end usage I can think of uses the specification that
> end=start+length, not end=start+length-1.
But it isn't end=start+length-1 is it ?
Think of it this way the start point is before the first byte, not after
it, so having counted length bytes you will be at 7FFF in your example.
Or thinking of it another way is :-
save blah,first byte,last byte.
Cheers,
Phill.
--
Phill Harvey-Smith, Programmer, Hardware hacker, and general eccentric !
"You can twist perceptions, but reality won't budge" -- Rush.