at&t syntax
Posted: Fri Jun 04, 2004 5:55 am
I learned assembly with nasm using intel syntax, but I like using at&t's
syntax, but something is confusing me...
I know immediate values must be preceded by $, but what is the
difference between
mov $label,%eax
mov label,%eax
Also, nasm uses square brackets to return a value from a memory address like:
mov eax,[label]
What is the at&t equivalent of the square brackets?
syntax, but something is confusing me...
I know immediate values must be preceded by $, but what is the
difference between
mov $label,%eax
mov label,%eax
Also, nasm uses square brackets to return a value from a memory address like:
mov eax,[label]
What is the at&t equivalent of the square brackets?