Shop OBEX P1 Docs P2 Docs Learn Events
Hide tree variables into one byte? — Parallax Forums

Hide tree variables into one byte?

ArchiverArchiver Posts: 46,084
edited 2003-12-06 08:32 in General Discussion
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.

Comments

Sign In or Register to comment.