Hello,
I am having a code execution issue when running my code in the cycle accurate simulator (I haven't yet tried to see what happens on the actual uP).
The if statement in the code shown below doesn't work as expected, i.e. If I2Cresult != I2C_NOT_IDLE, setting of result to EEPROM_FAILURE should be skipped. However, its not working that way. the debugger, executes the result = EEPROM_FAILURE when I2Cresult doesn't equal I2C_NOT_IDLE.
Is this a simulator issue?
I also included a snapshot of expressions, disassembly and CPU registers
Stephen



