Hi!
I usually write code with C programming language, but this time I need to explore a .lst output to solve a problem.
Maybe it is a silly question... but I don't have strong experience with assembly code.
I'm using a H8S 2378 microcontroller.
I need some help about this very short code fragment:
MOV.B R0L,R0L
MOV.B R0L,R4L
MOV.B R4L,R4L
BNE address....
The instruction MOV.B R0L,R4L seems to be clear: the value in the 8-bit register R0L is transferred into R4L
But I don't understand the benefit of the other two MOV instructions (with source equal to destination) and the subsequent branch if not equal.
There is a lot of instructions like this in the .lst file.
Could you help me?
Thanks.
Marco