Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indirect jump #153

Open
BacchusFLT opened this issue Jan 31, 2024 · 4 comments
Open

Indirect jump #153

BacchusFLT opened this issue Jan 31, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@BacchusFLT
Copy link

BacchusFLT commented Jan 31, 2024

In a current project, I have a JMP (<address>). To me this should make the <address> a word, that is also defined as an address, and there should be a code starting point at the address of that word. As I understand it, the <address> was made a label, but the other steps didn't work as I outlined them.

@fadden
Copy link
Owner

fadden commented Feb 1, 2024

This is an open item in the "TO DO" list:

Trace code across indirect jumps, e.g. "JMP (addr)", if we can determine that the operand address is within the file and the location referenced is also within the file. Handle the incorrect behavior at page boundaries on the 6502.

I wasn't sure how useful this would be because the contents of the location can change, but if you're disassembling a ROM that might not be the case.

@BacchusFLT
Copy link
Author

BacchusFLT commented Feb 1, 2024 via email

@fadden
Copy link
Owner

fadden commented Feb 1, 2024

My expectation is that sometimes an indirect JMP will be valid, and sometimes it won't. If it's invalid, but it points to a place in the file, it could generate a code start in the wrong place. We'd want a "do not follow" checkbox to manually disable the JMP traversal for such cases. Something similar came up in #147 (comment).

@fadden fadden added the enhancement New feature or request label Feb 1, 2024
@BacchusFLT
Copy link
Author

BacchusFLT commented Feb 1, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants