OK maths is not my strong point
I am trying to store a word variable which indicates the finishing address of my data in eeprom, this is fine up to 255 but after that does not seem to work, here is the relevant code –
SYMBOL Addrs = w6
(lots of code)
hi2cout 0,(Addrs)
Later I wish to recover the address with
hi2cin 0,(Addrs)
But this only saves and returns the LSB, I could of course save b12 & b13 separately, but how do I then combine them into a word variable when I read them back, I’m sure there is a clever routine to do this but it is beyond my feeble capabilities at the moment.
Many thanks for any help
I am trying to store a word variable which indicates the finishing address of my data in eeprom, this is fine up to 255 but after that does not seem to work, here is the relevant code –
SYMBOL Addrs = w6
(lots of code)
hi2cout 0,(Addrs)
Later I wish to recover the address with
hi2cin 0,(Addrs)
But this only saves and returns the LSB, I could of course save b12 & b13 separately, but how do I then combine them into a word variable when I read them back, I’m sure there is a clever routine to do this but it is beyond my feeble capabilities at the moment.
Many thanks for any help