proc addInt(a,b:int):int {.asmNoStackFrame.} =
asm """
mov eax, `a`
add eax, `b`
ret
"""
echo addInt(3,4)
RunThe above results run to 0.,I hope someone can help me. thanks
proc addInt(a,b:int):int {.asmNoStackFrame.} =
asm """
mov eax, `a`
add eax, `b`
ret
"""
echo addInt(3,4)
RunThe above results run to 0.,I hope someone can help me. thanks