assembler is far from trivial at least for x86 where there are many possible encodings for a given instruction. emitting the most optimal encoding that does the correct thing depends on surrounding context, and you'd have to do multiple passes over the input.
jmalicki|23 days ago
chris_swenson|22 days ago
Whether that logic should belong in a compiler or an assembler is a separate issue, but it definitely was in the assembler there.
nicebyte|20 days ago