On 12/22/2021 at 5:27 PM, ZeroByte said:
Can you go into a little more detail about what it is I'm looking at? I'm interested in this library as dealing with HiRam is quite a PITA. What's the narrow band at the top? Low RAM? Is data being moved between Hi and Lo RAM?
All data is managed in hi-ram. That is banked ram. From address 0x2000 till 0x44000, assuming that the banked ram is a continuous space. (We both know it is not). So divide 0x44000 / 0x2000, which gives 22 banks. However the index is managed in bank 1 of bram, so 20 banks of 0x2000 bytes are used for the heap. Bank 0 is unused.
The heap allocation starts from the top moving down.
I'll post the source code of the heap manager later once I'm behind my laptop.
I'm stil optimizing it though...
Sven