Maybe I have a next Problem. The Elements of the Array are randomly distributed in the RAM. I hope that is an Option in Oshonsoft. The example Code is below.
Pointers are the solution. But I cant find a way to get the start Adress of the Longarray in the Ram
Dim brakepoint As Byte
Dim terminator As Byte 'END of Values
Dim amount_alarm As Byte 'Number of Timers
Dim arr(10) As Long 'Takes The Values from EEPORM
'Eeprom-Values
'0 Byte = Number of Timers
'1 Byte Hour, Timer 1
'2 Byte Minute, Timer 1
'3 Byte Weekday Low nibble, Timer 1
'4 Byte Relais Output, Timer 1
'... , Timer xyz
'Terminator 0x3b
Const pos_amount_alarm = 0 'Position of "Number of Timers"
amount_alarm = 0 'Number of Timers init value = 0
'The Values in the EEPROM
EEPROM eepromvalue, 0x05, 0x08, 0x00, 0x01, 0x0f, 0x10, 0x00, 0x02, 0xf0, 0x11, 0x00, 0x03, 0x01, 0x20, 0x00, 0x04, 0x02, 0x22, 0x22, 0x05, 0x05, 0x3b
Read pos_amount_alarm, amount_alarm
Call get_value_from_eprom(amount_alarm, arr) 'Get EEPROM value
Function get_value_from_eprom(number_of_timer as Byte, arr_ref As reference) As Byte ' The Second Argument should be the RAM Address of my Array but i don’t know how
'Function fill the LongArray with the EEPROM Values
'need Reference of the arr
Dim pos As Byte 'current pos in EPPROM
Dim temp As Byte 'The EEPORM Value
brakepoint = 1
arr_ref = arr_ref + 1 ' Byte 0 = Number of Timers
For pos = arr_ref To number_of_timer Step 1
Read pos, temp
Pointer(arr_ref) = temp 'When I have the SRAM Adrress fill the Longarry
arr_ref = arr_ref + 1
Next pos
End Function