This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

I/O Port Simulation mismatch?

I have two simple code examples:

; Example 1
ORG 0
MOV A,#0xff
MOV P0,A
TOP: MOV P1,P0
SJMP TOP
END

----------------------

; Example 2
ORG 0
TOP: MOV A,#0xff
MOV P0,A
MOV P1,P0
SJMP TOP
END

----------------------

Both examples attempt to do the same thing. When clicking on pins of P0 the value is sent to P1. When I single step (F11) through the programs the perform in an identical manner. When I run the programs (F5), example 2 ends up with a mismatch between P0 pins and P1 values.

What could cause such a mismatch?

0