//cpp-file
#include <iostream>
extern "C"
{
int square(int num);
}
int main()
{
int num;
std::cin >> num;
std::cout << square(num);
}
;masm32-file
.386
.model tiny, C
.code
square PROC
push ebp
mov ebp, esp
mov eax, DWORD PTR [ebp+8]
imul eax, DWORD PTR [ebp+8]
pop ebp
ret
square ENDP
end