Opcode syntax: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content deleted Content added
m Bot: Replace deprecated source tag with syntaxhighlight |
m Bot: Replace deprecated source tag with syntaxhighlight |
||
Line 35: | Line 35: | ||
The AT&T syntax format for macros: |
The AT&T syntax format for macros: |
||
< |
<syntaxhighlight lang="asm"> |
||
.macro <name> <args> |
.macro <name> <args> |
||
<operations> |
<operations> |
||
.endm |
.endm |
||
</syntaxhighlight> |
|||
</source> |
|||
Example: |
Example: |
||
Line 64: | Line 64: | ||
You can use the following script to convert short snippets of code (one liners) from Intel syntax to AT&T syntax: |
You can use the following script to convert short snippets of code (one liners) from Intel syntax to AT&T syntax: |
||
< |
<syntaxhighlight lang="bash">#!/bin/bash |
||
set -e |
set -e |
||
Line 100: | Line 100: | ||
tail -n +$lineno "$objdump" |
tail -n +$lineno "$objdump" |
||
</syntaxhighlight> |
|||
</source> |
|||
== See Also == |
== See Also == |