freem / asm6f

A fork of loopy's ASM6, a 6502 assembler.
96 stars 24 forks source link

INCBIN/BIN bugfix, code cleanup #27

Closed koitsu closed 1 year ago

koitsu commented 5 years ago

Just wanted to note this here: you may find some, most, or even all of my commits here useful: https://github.com/koitsu/asm6f/commits/master

An executive summary would be the following:

At bare minimum, the INCBIN/BIN fix from 40706e3 should be brought in. I would strongly suggest parts of the Makefile as well, particularly proper use of make variables for dependencies.

The warning-related stuff took me several hours to actually clean up/work out. When I started, I actually had to use -ferror-limit=0 due to the code having almost 200 warnings once more extreme warning flags were added.

Anyway, I'd love for these to be brought in, simply because we have enough forks already... :-)

All of this needs very thorough testing, i.e. on a big/hefty project. There are some things I changed (example) that make me a little bit wary.

koitsu commented 1 year ago

Some of these have been addressed:

However, the big patch (for cleaning up a lot of the code) as well as changing the Makefile have yet to be put into their own PRs. Hopefully I'll get to that this month. Have the code already done, just need to PR it.

koitsu commented 1 year ago

Going to close this ticket since I'm just going to do all of this in PRs (ex. PR https://github.com/freem/asm6f/pull/36 and PR https://github.com/freem/asm6f/pull/37 with more to come).