Code:
'bytes 1 to 6
' 1, 2, 3, 4, 5, 6
EEPROM 1, ["A","B","C","D","E","F"]
EEPROM 7, ["G","H","I","J","K","L"]
EEPROM 13,["M","N","O","P","Q","R"]
EEPROM 19,["S","T","U","V","W","X"]
EEPROM 25,["Y","Z",27,28,29,30]
Locator VAR BYTE
MyBytes var byte[31] 'Could be 30 but lets make it easy.
START:
'Say that the value of Locator (index) comes from somewhere.
'Locator should be in a form that will support the table in EEPROM.
READ Locator , MyBytes.[locator] 'First Byte of the desired block in EEPROM.
READ Locator +1, MyBytes.[Locator +1] '...
READ Locator +2, MyBytes.[Locator +2] '...
READ Locator +3, MyBytes.[Locator +3] '...
READ Locator +4, MyBytes.[Locator +4] '...
READ Locator +5, MyBytes.[Locator +5] 'Sixth Byte of the desired block in EEPROM.
'Once you set a working table, you should then use a FOR loop.
GOTO START
Bookmarks