Quote Originally Posted by mackrackit View Post
I played with this some last night, did some reading and could not find a solution.
Maybe Darrel or Bruce will chime in...
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.
Code:
ramU = ramF - ramS
Add 20h (32) to the 31 bytes reported and you get 63, the last address in RAM.

I think that line should be ...
Code:
    ramU = ramF + 1
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.

It's a difficult task to count RAM bytes used.
<br>