Author Topic: adm64 Vista 64 C with asm first  (Read 6847 times)

nobody

  • Guest
adm64 Vista 64 C with asm first
« on: March 24, 2009, 08:07:26 PM »
Hi ,

Here is my code.

----------------
#include

int main(void)
{
   int x =50;

asm{
      MOV EAX, x
      SHL EAX, 1
   }

printf("x = %d\n", x);

return 0;
}
---------------------
The outputted .exe does not work with:

bcc32 -omyFirst.exe myfirst.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
myfirst.c:
Warning W8002 myfirst.c 16: Restarting compile using assembly in function main
Turbo Assembler  Version 5.0  Copyright (c) 1988, 1996 Borland International

Assembling file:   myFirst.ASM
Error messages:    None
Warning messages:  None
Passes:            1
I tried it with XP and a 32 bits asus machine.  Does not work either.

How could I create a working 32 bits exe?


JPDaviau
How could I create a 64 bits exe?

nobody

  • Guest