Opcode syntax: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content deleted Content added
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 ==
|