I've got a bunch of 8-bit data of varable length (from one to 7 bytes in length) that I need to access byte-wise.
My intial plan was to make a table of start locations and point Y at it and then to get, say the 3rd item: I'd get Y+3, for the LOCATION and then subtract Y+4 from Y+3 to get the LENGTH. Then I'd point X at the start of the real data and then read in X+LOCATION until X+LOCATION+SIZE with a loop.
Is this the best way? I'm going to have probably 90 chunks of data probably averaging 5 bytes long. Should I place this in the flash (program memory), EEPROM or SDRAM? Why should I choose one over the other? This info won't be changing over time.