It is currently Mon Oct 20, 2014 4:49 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Resident variables
PostPosted: Thu Mar 25, 2010 8:32 pm 
Offline
Site Admin
User avatar
 Profile

Joined: Wed Dec 19, 2007 10:46 pm
Posts: 779
Quick question.

I know there are 26 resident integer variables A% - Z%.

What about real variables and string variables? i.e. are A - Z or A$ - Z$ reserved, or does using them eat up more memory?

I assume the latter, but just wanted to check.

Sam.


Top
 
 Post subject: Re: Resident variables
PostPosted: Thu Mar 25, 2010 9:31 pm 
Offline
User avatar
 Profile

Joined: Fri Apr 25, 2008 7:55 pm
Posts: 147
Ooh Sir! Please Sir, I know this one! Sir....?

Just the % variables have pre-allocated space in $400-$46B but all the rest use up memory pro-rata in a variables table from LOMEM (TOP) upwards and using a stack from HIMEM downwards.


Top
 
 Post subject: Re: Resident variables
PostPosted: Thu Mar 25, 2010 9:35 pm 
Offline
Site Admin
User avatar
 Profile

Joined: Wed Dec 19, 2007 10:46 pm
Posts: 779
Figured as much. Thanks for confirming it.

Point for the gangly boy at the back, with large turn-ups. :)

Sam.


Top
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron