Re:Explaining how the MASM 2-pass assembler works
by mhh__ on Sunday September 12, 2021 @03:26PM
(#28504054)
Angels die when AT&T syntax is used. I genuinely hate it.
Re:Explaining how the MASM 2-pass assembler works
by pjmlp on Sunday September 12, 2021 @04:08PM
(#28504430)
One day I had the stupid idea to replace the nasm macros of my toy compiler with generated Assembly directly, and to reduce dependencies rely on gas, back when Intel syntax was hardly supported, so AT&T it was.
Never again.
MASM also uses the syntax one finds in the Intel CPU reference manuals. This is also done in the inline assembler for my compilers.
The gnu assembler syntax reverses the operands, which reverses the operands. This drives me crazy because assembler is hard enough without all the bugs from putting the operands in the wrong order.
Besides, I much prefer to be able to compare my assembler code with the Intel CPU specification.