Post #3516815
2026-07-01 17:51 UTC
Like, AFAIK, GAS does support m68k as a target. But I'm not familiar with GAS' flavor of syntax, and I don't know how much will violently break. Like, do we get macros like in AS? Also, does GAS support Z80? ASM68K doesn't, which makes the sound driver a pain in the ass, as it has to be either a binary blob, require another assembler, or a ROM hack of ASM68K to add Z80 support like Hivebrain did a few years ago. AS natively supports Z80 so it can assemble everything itself.
Replies (1)
-
@techokami@woof.tech 2026-07-01 17:56
If anyone is brave enough to give it a shot, https://github.com/sonicretro/s1disasm here's the Sonic 1 disassembly. Main branch uses AS; ASM68K is in another branch. This disassembly would be the best choice for such an experiment as there is support for two different assemblers already, and IIRC the AS branch doesn't use too much AS-specific stuff (unlike Sonic 2/3K which make heavy use of quick branching)