Thread: hpl me plzzzz
View Single Post
Old Oct 27th, 2005, 9:50 PM   #7
ASMvsC++
Newbie
 
Join Date: Oct 2005
Posts: 12
Rep Power: 0 ASMvsC++ is on a distinguished road
[quote=ASMvsC++]Hi guys

I got some ques but it seems to be noone in Vietnamese forum can solve for me,So I decided to move here for my ques cuz I know most of European and American they know much bout system

Im using BC 5.5 compiler .I have written a simple code like this

#include <conio.h>
#include <iostream.h>
void main()
{
       asm{ mov eax,100
               add eax,200
             }
     cout<<"Hi!"<<"\n";
     getch();
}


I compiled to exe file and run in Dos Box command line(dos box console in Window) and it worked

So let me ask some ques
did BC 5.5 complile that source to 32 bit opcode Or 16 bit opcode??
and what mode does it running on if we excute it

If I write another source


#include <conio.h>
#include <iostream.h>
void main()
{
     cout<<"Hi!"
    getch();
}  /// No 32 bit asm code
if I compile it --> will Compiler generate 32 bit code??
ASMvsC++ is offline   Reply With Quote