You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently anything defined with equ is put into the define / macro table as is. Example:
SOMETHING equ 0x500+5
This will put "0x500+5" into the macros table under the name something. Instead I'm thinking naken_asm should evaluate 0x500+5 to 0x505 and put that in the symbol table (the same table that holds labels).
Positives:
All equ's will end up listed as symbols in .elf file output.
During disassembly, instructions that have addresses as operands can use the symbol table to print the address name with the address (maybe needing a command line option to turn feature that on).
Negatives:
Might break existing code if equ is used as a macro.
Have to change include files in the include/ directory since some things that aren't addresses were defined with equ.
The include files that came from Atmel also define non-address things with equ.
Also, it might make sense to put equ things in an equ table so that the regular symbol table that is mostly generated from labels get precedence over the equ table during disassembly.
I'm a little afraid of breaking code or having this not be quite right so I'm filing an issue hoping to get a discussion (hopefully there are some people following this project) on this before I get started on it or cancel the issue.
The text was updated successfully, but these errors were encountered:
Currently anything defined with equ is put into the define / macro table as is. Example:
SOMETHING equ 0x500+5
This will put "0x500+5" into the macros table under the name something. Instead I'm thinking naken_asm should evaluate 0x500+5 to 0x505 and put that in the symbol table (the same table that holds labels).
Positives:
Negatives:
Also, it might make sense to put equ things in an equ table so that the regular symbol table that is mostly generated from labels get precedence over the equ table during disassembly.
I'm a little afraid of breaking code or having this not be quite right so I'm filing an issue hoping to get a discussion (hopefully there are some people following this project) on this before I get started on it or cancel the issue.
The text was updated successfully, but these errors were encountered: