DING!
PBP's system vars use a minimum of 24 bytes.
Complex formulas can increase that, but it appears you don't have any of those yet.
So you create 40 additional byte variables and it's full. (24 + 40 = 64)
As for "LST View" ...
It apparently just looks for the last occurrence of "RAM_START +" and uses that address to calculate how much RAM was used.
That address is already referenced to RAM_START, but in the program, this line subtracts the start address again, which leaves the count too low.Add 20h (32) to the 31 bytes reported and you get 63, the last address in RAM.Code:ramU = ramF - ramS
I think that line should be ...However, RAM assignments are not always contiguous. You could have a single variable in BANK3 (chip other than 675) and it'll show almost all the RAM has been used, when there's only a few bytes being used. Or the last address may be the beginning of an array, which it won't count either.Code:ramU = ramF + 1
It's a difficult task to count RAM bytes used.
<br>
Bookmarks