Hacker News new | ask | show | jobs
by Rusky 5350 days ago
Assembly without macros is pretty much one-to-one with machine code. Depending on your toolchain you could easily write a shell one-liner to assemble and disassemble it into the other syntax.

With macros, it would be completely impractical to do in the general case, considering the disparity between the macro systems of different assemblers (gas with the C preprocessor, nasm, etc. with their own macro systems).