#2269 stm8 sim ld flags

closed-fixed
None
Simulator
5
2014-05-22
2014-04-20
No

According to the manual, the ld instructions of the stm8 set the n and z flags, depending on the operand, when one operand is aregister and the other is in memory.
However the simulator doesn't (at least not for ld a, (., sp), but I guess that one is not the only problem).

Once the simulator is fixed, some optimizations that rely on the correct behaviour can be enabled: The omission of the tnz following the loading of the shift count.

Philipp

Discussion

  • Fixed in revision #9027 thanks to patch #242 by Ben Shi.

    Philipp

     
    • status: open --> closed-fixed
    • assigned_to: Philipp Klaus Krause