TWiki
>
Main Web
>
TechTips
?
>
AssemblyProgramming
>
ATTvsIntelAssembly
(24 Feb 2006,
MattWalsh
)
E
dit
A
ttach
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
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r4
<
r3
<
r2
<
r1
|
B
acklinks
|
R
aw View
|
M
ore topic actions
Topic revision: r4 - 24 Feb 2006 - 01:07:13 -
MattWalsh
Main
Log In
Main Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
Webs
Main
Sandbox
TWiki
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback