Well, at the first read/write the memory is 0000h. When sub eewrite is called adc.Byte1 should be written in 0000h and then the address becooes addr+1 or 0001h and adc.Byte0 is written there.
The the sub returns and sub eeread is called. The previous address was 0001h..so i am thinking is should substract 1 so that it can read whatever is written in 0000h first and then add 1 again to read whatever is in 0001h....Does this sound wrong?
Bookmarks