EDNEDN Senior Member Joined: 18/02/2023 Location: United StatesPosts: 298
Posted: 05:12pm 26 Aug 2024
Yes... Or if it made sense to support the PSRAM via the Dim statement, an extra 8 KB could be allocated for the block table at the same time memory is assigned for usage by the array being declared (in the Dim statement code). The difference being the block table needs to be in SRAM and the array being declared will consume space in the PSRAM.
The good news is only the first PSRAM based array would need a buffer setup for it. Subsequent Dim statements or arrays declared in Dim statements would all be using the same buffer memory. And if the user never declared an array In_PSRAM the memory for the block buffer never gets consumed.