View memory for symbols in assembly #174
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 aView Binary Data
icon which opens the address in theView Memory
view.In addition I've added a
View Memory
context menu item for this and aView Memory (pointer)
option which adds indirection to open the memory address at that location.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.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.