Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Jani Nikula
@jani@floss.social  ·  activity timestamp last month

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
Jani Nikula
@jani@floss.social replied  ·  activity timestamp last month

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
Jani Nikula
@jani@floss.social replied  ·  activity timestamp last month
@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
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.3.13 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login