Shop OBEX P1 Docs P2 Docs Learn Events
Simple memory management system to create arrays at run-time — Parallax Forums

Simple memory management system to create arrays at run-time

ToeToastToeToast Posts: 3
edited 2012-07-12 00:20 in Propeller 1
Hi,

I'm fairly new to the Propeller and was hoping that someone may have knowledge or guide me to where I may find information about the following initiative I'm working on:-

Being a PropBasic fan, I'm keen to develop a simple memory allocation system (using PASM) that offers the ability to define 1 & 2 dimensional arrays based on available HUB RAM and available EPPROM storage.
The information I'm looking for is:-

1) how to determine how much HUB RAM is available when the program is running in LMM mode ?
2) at what address does this contiguous block start from ?
3) how to determine how much EEPROM space is available after the program has been stored there ?
4) at what address does this contiguous block start from ?

I know I can use PropBasic to define 1 dimensional arrays, but my main requirement is for 2 dimensional arrays in RAM and the ability to store configuration data in the EEPROM so it can be
accessed next time the system restarts. I developed a similar system on the SX but I just need a little help with the finer details about the memory locations to reference.

Once complete, I'll share to to the forum if anyone is interested.

Thanks in advance for any help.
Tony
Sign In or Register to comment.