Projects > Poasm

Inline string literals

(1/1)

Vortex:
Here is a macro example to specify inline string literals :


--- Code: ---.386
.model flat,stdcall
option casemap:none

ExitProcess PROTO :DWORD
printf PROTO C :DWORD,:VARARG

include CstrMacro.asm

.code

start:

    invoke  printf,\
            @Cstr("Tab\tcharacter\ttest\nAnother line\qSample line\nEscaped symbol \\\n")

    invoke  ExitProcess,0

END start
--- End code ---

ragdog:
Nice thank you

Navigation

[0] Message Index

Go to full version