JMP @A + DPTR ending up somewhere else
Brought to you by:
thedmd
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.
Anonymous
Thank you for reporting and sorry for late response.
I will apply your patch and make a new release.
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