Thanks for helping out Pedro!
I'm still having issues getting these two statements to match, heres my latest code attempt:
static @far @eeprom UINT16 wBaseAddr @0x100000;
...
if ( (UINT8)(*(&wBaseAddr+dfInfo.saved.dfAddress+Offset)) != (UINT8)(*(dfInfo.saved.ramAddress+Offset)) )
{ ...
Where:
dfInfo.saved.dfAddress = 0
dfInfo.saved.ramAddress = 0xffff4
Offset = 0
sizeof(dfInfo.saved.ramAddress) = 8 <-- has to be kept at UINT8
sizeof(Offset) = 16
sizeof(dfInfo.saved.dfAddress) = 16
Viewing memory at 0x100000 shows 48 65 6c 6c 6f...
Viewing memort at 0xffff4 shows 48 65 6c 6c 6f...