Post Reply 
48SX: Missing memory?
05-29-2015, 01:01 PM
Post: #1
48SX: Missing memory?
I've got a 48SX with a 32K card in port 1 merged with main memory. Something isn't adding up right.

I've got 23,429.5 bytes in HOME, totaled by running this small program:

Code:
\<< 0 \-> T
  \<< VARS 1
    \<< DUP BYTES SWAP DROP DUP 'T' STO+ 2 \->LIST \>>
    DOLIST T
  \>>
\>>

(DOLIST is provided by GXLIB, as it's not a standard part of the 48SX.)

Going into the hidden directory and running this program gives me a total of 609.

Then I have two libraries in port 0, Keyman and GXLIB, for a total of 3409 bytes. (Recalling them to the stack from the LS LIBRARY PORT0 menu and running BYTES.)

So that's 23,429.5 + 609 + 3409 (or should I say 23,429.5 609 + 3409 +?), for a total of 27,447.5 bytes.

Alright, so MEM DROP MEM with an otherwise clear stack shows 31,002.5 bytes free. That's a total of 58,450 bytes accounted for. But what of the other ~7 KB?

I had a similar issue on my 48GX with a merged 128 KB card, but the difference was far more pronounced, I think closer to 20-30 KB. I did a backup/full reset/restore on that one, and it all came back. Is there something causing orphaned objects to hang around in memory and not get garbage collected? Is there a remedy besides a full reset?
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
48SX: Missing memory? - Dave Britten - 05-29-2015 01:01 PM
RE: 48SX: Missing memory? - Bruno - 06-01-2015, 02:11 PM
RE: 48SX: Missing memory? - Dave Britten - 06-01-2015, 02:24 PM
RE: 48SX: Missing memory? - Bruno - 06-05-2015, 10:16 AM
RE: 48SX: Missing memory? - Han - 06-05-2015, 10:27 AM
RE: 48SX: Missing memory? - Dave Britten - 06-05-2015, 10:58 AM



User(s) browsing this thread: 1 Guest(s)