Example

Stowaway Bits

3

SP4CEBAR 2022-11-04 22:57 (Edited)

There's nothing like sneaking some extra bits into RAM into the gaps and spaces in between the registers

Yes it is a valid data storage method
And there just so happened to be an awful lot of spaces, most of them being the 4092 unused BG bits, and the 64 unused color bits

sneaking bits into these spaces useful for saving variables without having to make a global variable, this makes subprograms easier to copy to other projects because you don't have find and add the right global variables, assuming that RAM is used for other storage-hungry purposes

you could even define some standards for yourself: X,Y (vector) pairs are stored at ..., stored TIMER variables are stored at ..., other variables are stored at ...


Log in to reply.