Anonymous user
Opcode syntax: Difference between revisions
no edit summary
[unchecked revision] | [unchecked revision] |
m (dead link removal) |
No edit summary |
||
Line 35:
The AT&T syntax format for macros:
<source lang="asm">
.macro <name> <args>
<operations>
.endm
</
Example:
<source lang="asm">
.macro write string
movw string, %si
call printstr
.endm
</
This would be equivalent to the NASM macro:
<source lang="asm">
%macro write 1
mov si, %1
call printstr
%endmacro
</
Additionally, the cpp and
== Converting small snippets of code from Intel syntax to AT&T ==
|