by support »
Hello,
It sounds like you tried to seek to a position that isn't a multiple of 4. Think about the elements of the memory as a file, in which the elements are laid out one after the other. The seeking operation makes you jump to a certain position in this file, so you can read or write there.
Since each element is 4 bytes long, it makes no sense seeking to a position that isn't a multiple of 4. So if you want to reach address N, seek to 4*N.
Regards,
Eli
Hello,
It sounds like you tried to seek to a position that isn't a multiple of 4. Think about the elements of the memory as a file, in which the elements are laid out one after the other. The seeking operation makes you jump to a certain position in this file, so you can read or write there.
Since each element is 4 bytes long, it makes no sense seeking to a position that isn't a multiple of 4. So if you want to reach address N, seek to 4*N.
Regards,
Eli