Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Jani Nikula
@jani@floss.social  ·  activity timestamp 3 weeks ago

I wanted to find a small niche hobby coding project that approximately nobody would care about.

I'm tooting about it now, and I don't expect you to care.

I want to use m68k-linux-gnu-as cross-assembler, but it doesn't support the Motorola syntax the original Amiga tools did.

How hard can it be to write a preprocessor that converts vasm mot syntax module compatible assembly to GNU as?!

Turns out, less trivial than I thought.

#Amiga #RetroComputing #m68k#Assembly

  • Copy link
  • Flag this post
  • Block
Your friendly 'net denizen
@cstanhope@social.coop replied  ·  activity timestamp 3 weeks ago

@jani I had to do something similar once when when a company I worked for moved from a commercial cross compiler to GCC. Instead of trying to convert by hand all the assembly we had, I wrote a gawk script to do it. It may have taken me just as long to do the job from start to finish, but at least I wasn't bored the whole time. 😆

  • Copy link
  • Flag this comment
  • Block
Jani Nikula
@jani@floss.social replied  ·  activity timestamp 3 weeks ago
@cstanhope It's not like I have a huge code base I couldn't quickly convert and continue with GNU as.

But I actually want to keep using the mot syntax, if only for nostalgia.

For example, registers can be referenced as d0 instead of %d0, and comments start with ; instead of |.

  • Copy link
  • Flag this comment
  • Block
Jani Nikula
@jani@floss.social replied  ·  activity timestamp 3 weeks ago

Pure assembly syntax actually is trivial to parse and convert.

It's the directives, macros, and expressions that aren't.

  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.2.21 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login