HI,I have a problem about %if...
here is my programme(helloworld.asm):
extern printf
[SECTION .data]
msg1 db "hello world", 0xa, 0
msg2 db "wrong",0xa, 0
num db 1
[SECTION .text]
global main
main:
%if num==1
push dword msg1
%else
push dword msg2
%endif
call printf
add esp, byte 4
return:
mov eax, 0
ret
It seems will print "hello world", but in fact , the result is "wrong" .
Is my programme wrong ?