This page had some great info

Inlining

Thanks to this I learned that you CANNOT put registers in both the input and clobber registers
Immediates
  • AT&T: $ prefix
  • Intel: no prefix

AT&T Intel
mv $2, %eax mv 2,eax

Addressing:

  • In AT&T, (,%rax,8) means 0 + 8*%rax

Examples

  • movl    $13, -4(%rbp) # stick 13 at memory location rbp - 4

-- MattWalsh - 08 Dec 2005

Topic revision: r4 - 24 Feb 2006 - 01:07:13 - MattWalsh
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback