Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 27th, 2005, 8:12 PM   #1
ASMvsC++
Newbie
 
Join Date: Oct 2005
Posts: 12
Rep Power: 0 ASMvsC++ is on a distinguished road
hpl me plzzzz

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??(me wanna make sure)
and did it run in Protect Mode???
I think it compiled source to 32 bit code coz it didnt cause error while compiling (my source have some 32bit code ,see???)

So if it was 32 bitcode why it could run in Dos Box ,coz Dos Box using
VM86 Mode

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??
And in this case wil it run in Protect mode??/

Thx plzz help me coz I still have bunch of ques after this
Every ans is apreciated

Last edited by ASMvsC++; Oct 27th, 2005 at 8:40 PM.
ASMvsC++ is offline   Reply With Quote
Old Oct 27th, 2005, 8:35 PM   #2
iignotus
Professional Programmer
 
iignotus's Avatar
 
Join Date: Apr 2005
Location: Nowhere Special
Posts: 466
Rep Power: 4 iignotus is on a distinguished road
Send a message via AIM to iignotus
eye dun thnk ne1 wud asn u r ? cz u dun fllw rulze :/

Even disregarding your infamiliarity with the English language, your post does not make much sense. Please reformat your question or something similar.
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[ 
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;}
iignotus is offline   Reply With Quote
Old Oct 27th, 2005, 8:47 PM   #3
ASMvsC++
Newbie
 
Join Date: Oct 2005
Posts: 12
Rep Power: 0 ASMvsC++ is on a distinguished road
edited !!! put code in TAB Code
Does I need perfect English to get ans from people in this forum ?? is it rules in here ??
Well I have just learn english for 3 months so... not perfect sympath 4 me !

And what doesnt make sense ! tell me ,I need s.o help me thx
ASMvsC++ is offline   Reply With Quote
Old Oct 27th, 2005, 9:29 PM   #4
Silvanus
Hobbyist Programmer
 
Silvanus's Avatar
 
Join Date: Aug 2005
Location: Hiding from... them...
Posts: 110
Rep Power: 4 Silvanus is on a distinguished road
Don't be a jerk, tempest. He doesn't speak English and is clearly a beginner programmer; cut him some slack. Calling him an idiot isn't going to help.

That said, the post is pretty much incoherent. Want to try again?
__________________
:wq
Silvanus is offline   Reply With Quote
Old Oct 27th, 2005, 9:30 PM   #5
ASMvsC++
Newbie
 
Join Date: Oct 2005
Posts: 12
Rep Power: 0 ASMvsC++ is on a distinguished road
~.~ sorry for say this >.<

what the h... are u talkin about ?? why so serious with some kinda f.... english or rulz
and what wrong with my post title
ASMvsC++ is offline   Reply With Quote
Old Oct 27th, 2005, 9:36 PM   #6
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 6 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
I'm a mean drunk, can a moderator please remove that last post...
__________________

tempest is offline   Reply With Quote
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
Old Oct 27th, 2005, 9:51 PM   #8
ASMvsC++
Newbie
 
Join Date: Oct 2005
Posts: 12
Rep Power: 0 ASMvsC++ is on a distinguished road
sorry for saying some not proper word :dry:

but I kinda angry ~.~
ASMvsC++ is offline   Reply With Quote
Old Oct 27th, 2005, 9:51 PM   #9
OpenLoop
Expert Programmer
 
OpenLoop's Avatar
 
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4 OpenLoop is on a distinguished road
Technically speaking, the bigger jerk here is iignotus. So what if he doesn't speak perfect english, no one is perfect. As far as i'm concerned, you're the one in violation of forums rules and not ASMvsC++.
OpenLoop is offline   Reply With Quote
Old Oct 27th, 2005, 9:55 PM   #10
ASMvsC++
Newbie
 
Join Date: Oct 2005
Posts: 12
Rep Power: 0 ASMvsC++ is on a distinguished road
so tell me what wrong with my ques why so concerned about rule ???
but do u guy understand what im asking ?? if u guys understand my ques , if everybody know what im asking ,so I hope s.o help me
ASMvsC++ is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:38 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC