www.retrosoftware.co.uk
http://www.retrosoftware.co.uk/forum/

Resident variables
http://www.retrosoftware.co.uk/forum/viewtopic.php?f=73&t=466
Page 1 of 1

Author:  Samwise [ Thu Mar 25, 2010 8:32 pm ]
Post subject:  Resident variables

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.

Author:  MartinB [ Thu Mar 25, 2010 9:31 pm ]
Post subject:  Re: Resident variables

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.

Author:  Samwise [ Thu Mar 25, 2010 9:35 pm ]
Post subject:  Re: Resident variables

Figured as much. Thanks for confirming it.

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

Sam.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/