Bug 210 - Output switch -fr with 6502 code is currently non working
Summary: Output switch -fr with 6502 code is currently non working
Alias: None
Product: RMAC
Classification: Unclassified
Component: Core (show other bugs)
Version: unspecified
Hardware: All All
: Normal normal
Assignee: Shamus Hammons
Depends on:
Reported: 2022-10-26 13:28 CDT by ggn
Modified: 2022-12-21 16:57 CST (History)
1 user (show)

See Also:

The patches! (4.08 KB, patch)
2022-10-26 13:31 CDT, ggn

Note You need to log in before you can comment on or make changes to this bug.
Description ggn 2022-10-26 13:28:34 CDT
A user submitted the following source:

    .org $2000

and tried to assemble it using "rmac -fr test.s". The result was rmac erroring out with "cannot output absolute binary without a starting address (.org or command line)".

Oops! I never thought of this eventuality when I added the -fr switch!

And really, it's mostly down to the way we handle sections and architectures, which is a bit lol in general. Quite a few things have to be cleaned up. The main work for this will most likely happen in #124 (AKA named sections).

For now, I have applied a small layer of band-aid on top and probably laid down something towards fixing this mess.

Patch following, with the test suite passing etc etc.
Comment 1 ggn 2022-10-26 13:31:04 CDT
Created attachment 200 [details]
The patches!
Comment 2 Shamus Hammons 2022-12-21 16:57:52 CST
Thanks for the patch!  :-)