Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

How can i call my func?

$
0
0

This is my codes:

[code]

#include "stdafx.h"
#include <stdio.h>
int add(int a,int b){
__asm{
mov eax,a
mov ebx,b
add eax,ebx
}
}

int x86asm_add_call_func(int c,int d){
__asm{
push c
push d
call add
}
}

int main()
{
printf("%d",x86asm_add_call_func(3,4));
return 0;
}

[/code]

I want to call my add func in x86asm_add_call_func.How can i make this?



Viewing all articles
Browse latest Browse all 15302

Trending Articles