Bug 210

Summary: Output switch -fr with 6502 code is currently non working
Product: RMAC Reporter: ggn <ggnkua>
Component: CoreAssignee: Shamus Hammons <jlhamm>
Status: RESOLVED FIXED    
Severity: normal CC: jlhamm
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Attachments: The patches!

Description ggn 2022-10-26 13:28:34 CDT
A user submitted the following source:

    .org $2000
    rts

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!  :-)