Login Register


Easiest & Hardest Programming Language? filter_list
Author
Message
RE: Easiest & Hardest Programming Language? #40
AT&T syntax and Intel syntax represent the same thing, the difference being whether the operator or the operand should be provided first.


Intel syntax, operand first:
Code:
mov ax, 5 ; AX = 0x0005

AT&T syntax ,of the exact same operation , operator first, explicitly state how much memory is being transferred:
Code:
movw 5, %ax ; load up AX with 5, explicitly stating that 5 is a word and so is AX

Reply





Messages In This Thread
RE: Easiest & Hardest Programming Language? - by w00t - 03-12-2013, 03:34 AM



Users browsing this thread: 1 Guest(s)