Bug 184 - ORG statements with expressions that have unresolved symbols
Summary: ORG statements with expressions that have unresolved symbols
Status: CONFIRMED
Alias: None
Product: RMAC
Classification: Unclassified
Component: Core (show other bugs)
Version: unspecified
Hardware: All All
: Normal enhancement
Assignee: Shamus Hammons
URL:
Depends on:
Blocks:
 
Reported: 2021-05-07 06:05 CDT by ggn
Modified: 2021-08-20 10:15 CDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ggn 2021-05-07 06:05:08 CDT
For example, if you want to assemble something that ends at ramtop you could do:

.org RAMTOP-code_size

code_start:

...
...

code_end:
code_size=code_end-code_start

For now this will result in an error since none of the labels after the .org are known when .org will be assembled. So at least for this simple example we could flag that the .org address be modified before the fixups start, since hopefully by then all labels should have been resolved. And if not, then give an error.