To: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: GAS vs. Intel. From: bernd AT bwhwob DOT escape DOT de (Bernd Wiegmann) Date: Sat, 16 Jan 93 20:05:55 CET Organization: Arnold Bros. (est. 1905) peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock) writes: > The first time I had to look at a 68000 assembly language book, I was totally > lost until I realized that the operand order was reversed from Intel's. > Searching through two 68K books, I found no statement of what the operand > order should be. It's probably a religious issue, but I would argue that > since in most high level languages you would say dest=source, an assembler > shouls use the same order. I hope this does not start an assembler war like one of those (in)famous Editor wars. I think the order of the operands depends on the meaning of the mnemonic. The Motorola mnemonic is called mov (for move) so the logical order of the operands is from to. Zilog used the mnemonic LD (for load) and the logical order is (load) arg (with) value. I think Intel should have called it LD too to avois this kind of confusion. Bernd -------------------------------------------------------------------------- Bernd Wiegmann | e-mail: bernd AT bwhwob DOT escape DOT de Grauhorststrasse 15 | Tel.: +49 5361 33622 (voice) D-3180 Wolfsburg 1 | +49 5361 33752 (data)