Hide tree variables into one byte?
Archiver
Posts: 46,084
I'm at the edge of the BS2p resources. Nearly all banks are full.
But I have one big puzzle ahead.
The scratch pad has 126 bytes to share variables to different banks.
But I need to share 3 times as much data as the 126 bytes.
Var1 = 1 – 177 (byte)
Var2 = 1 – 12 (nib)
Var3 = 1 – 9 (nib)
Add the numbers give the max value 198. Perhaps the value from 199-
255 could indicate the variable sizes.
Is there a smart way to store the tree values into a byte in the
scratch pad, and then decipher it when it's needed using some sort
of calculation formula, then end up with the tree variables?
I know this is a difficult question, but any hint is helpful. Extra
external RAM is not a solution to me.
Stein.
But I have one big puzzle ahead.
The scratch pad has 126 bytes to share variables to different banks.
But I need to share 3 times as much data as the 126 bytes.
Var1 = 1 – 177 (byte)
Var2 = 1 – 12 (nib)
Var3 = 1 – 9 (nib)
Add the numbers give the max value 198. Perhaps the value from 199-
255 could indicate the variable sizes.
Is there a smart way to store the tree values into a byte in the
scratch pad, and then decipher it when it's needed using some sort
of calculation formula, then end up with the tree variables?
I know this is a difficult question, but any hint is helpful. Extra
external RAM is not a solution to me.
Stein.
Comments
> At 10:39 PM 12/5/03 +0000,