Opcode syntax: Difference between revisions

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