<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Sat, 30 Oct 2004 17:11:49 +0100
From   : "Jason Watton (Lycos)" <jason.watton@...>
Subject: Re: Dimensioned area space

AFAIR...

(Do you mean P.GH%-TOP in the last line...? If so...)

Variables @%, A%, B%, C%... to Z% are pre-allocated memory (at &400, I
think...?) by BASIC. Using them doesn't eat user RAM [beyond norm].
Variable GH% (integer variable called 'GH') isn't pre-allocated. So BASIC
allocates it some storage then writes the address to it. Hence some memory
loss. I can't say why 10, though...

Jason.
----- Original Message ----- 
From: "Andrew W" <a.weston2@...>
To: <bbc-micro@...>
Sent: Saturday, October 30, 2004 4:37 PM
Subject: [BBC-Micro] Dimensioned area space


> If in BASIC I type:
> DIM A%-1
> P.A%-TOP
> I get as expected: '0'
>
> If I type
> DIM A%-1
> P.A%-TOP
> DIM G% 0
> P.A%-TOP
> I get '1' as expected (I think I expected it anyway ;-))
>
> However if I type:
> DIM A%-1
> P.A%-TOP
> DIM GH% 0
> P.A%-TOP
> I get '10'
> where is the memory going?
>
> regards,
>
>
> A.Weston
> -- 
>
>
>
>
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>