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

View memory for symbols in assembly #174

Merged
merged 2 commits into from
Nov 13, 2022

Conversation

grahambates
Copy link
Contributor

Due to not having structured variables in assembly code, you'll typically want to find the address of a given symbol (i.e. label) and inspect the memory at that location when debugging.

I've added a new variable scope to list symbols that don't correspond to C variables. They already exist in the symbols table and we can identify them by their type (normal) and size (0). Giving these a memoryReference property means you get a View Binary Data icon which opens the address in the View Memory view.

image

In addition I've added a View Memory context menu item for this and a View Memory (pointer) option which adds indirection to open the memory address at that location.

image

The input dialog for the Amiga: View Memory command now accepts Symbol names as well as numeric addresses. You can also add a & prefix for indirection when using this method.

image

For completeness I've also added a scope for constants defined in assembly. These look pretty similar in the symbol table but have a base of 0.

image

@BartmanAbyss BartmanAbyss merged commit 5b59683 into BartmanAbyss:master Nov 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants