Opcode syntax: Difference between revisions

Jump to navigation Jump to search
m
Bot: Replace deprecated source tag with syntaxhighlight
[unchecked revision][unchecked revision]
No edit summary
m (Bot: Replace deprecated source tag with syntaxhighlight)
Line 43:
Example:
 
<sourcesyntaxhighlight lang="asm">
.macro write string
movw string, %si
call printstr
.endm
</syntaxhighlight>
</source>
 
This would be equivalent to the NASM macro:
 
<sourcesyntaxhighlight lang="asm">
%macro write 1
mov si, %1
call printstr
%endmacro
</syntaxhighlight>
</source>
 
Additionally, the cpp and [[M4]] macro preprocessors are often used for macro handling.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu