Cleanup for the da65 code base #2728
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.
This is a large cleanup of the da65 code base removing some of the hacks introduced earlier.
The most important change is the use of hash tables for all data tables that contained one entry per address before. This allows to remove the ugly special casing of "long addresses". In addition to that, I have also introduced fixed size integers for addresses and known target data types. For range errors in the info file, the attribute that contains the invalid value is now printed, so one has no longer to guess which of the attributes is out of range.
The changes do NOT include opening the address space to more than 64KB for the 65816 - this has to be done in a later change.
I wasn't bold enough to remove one other hack since I don't know how often it is actually used: The end of a range may optionally be specified with a '+' sign in front in which case it means an offset to the start. This is not in line with all other groups where a
SIZE
attribute is used and is quite unexpected since a '-' sign in front doesn't designate an offset.