Menu

#3 JMP @A + DPTR ending up somewhere else

v0.2
open
nobody
None
1
2024-01-23
2018-11-05
Anonymous
No

JMP @A + DPTR doesn't seem to work correctly.
With A being 0 and DPTR being 0x2453 (example in a program I am simulating), I would expect a jump to code address 0x2453 (and this would make sense). Unfortunately it doesn't seem to work - Single stepping once, I end up at 0xF62C, which is an unused area of my program memory.

I tried getting the sources and tracing it myself, but it seems to be incompatible with my VS2013.

2 Attachments

Discussion

  • Anonymous

    Anonymous - 2018-11-21
    Post awaiting moderation.
  • Michał Cichoń

    Michał Cichoń - 2019-04-15

    Thank you for reporting and sorry for late response.
    I will apply your patch and make a new release.

     
  • Petr Pazourek

    Petr Pazourek - 2024-01-23

    Unfortunately, the issue is still available.
    The current implementation is doing PC = PC + A + DPTR, but the correct behavior
    should have been PC = A + DPTR.

     

    Last edit: Petr Pazourek 2024-01-23

Anonymous
Anonymous

Add attachments
Cancel