Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

ASM keyword in C language

This is a discussion on ASM keyword in C language within the C and C++ forums, part of the Software Development category; When we use ASM keyword in C language we can execute assembly code throw C but if we modify any register value then the code is comlplede not executed why. ...

Go Back   Geeks Talk > Software Development > C and C++
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 08-10-2007
Expert Member
 
Join Date: Feb 2007
Posts: 1,279
Thanks: 0
Thanked 192 Times in 154 Posts
Geek_Guest has a spectacular aura aboutGeek_Guest has a spectacular aura aboutGeek_Guest has a spectacular aura about
ASM keyword in C language

When we use ASM keyword in C language we can execute assembly code throw C but if we modify any register value then the code is comlplede not executed why.

if we compile

void main()
{
asm{
INT18
}
}

This code is comlied but not executed. You know it is interept
other interept are also not executed why? Various tools and software also modify or tranfer the values in register but they are executed easily

Question asked by visitor Sharad singh
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-21-2007
Contributing Member
 
Join Date: Jul 2007
Location: India
Posts: 31
Thanks: 6
Thanked 4 Times in 4 Posts
kamanianil is on a distinguished road
Post Re: ASM keyword in C language

Quote:
Originally Posted by Geek_Guest View Post
When we use ASM keyword in C language we can execute assembly code throw C but if we modify any register value then the code is comlplede not executed why.

if we compile

void main()
{
asm{
INT18
}
}

This code is comlied but not executed. You know it is interept
other interept are also not executed why? Various tools and software also modify or tranfer the values in register but they are executed easily

Question asked by visitor Sharad singh

can you give me plz one answer..? you have declared interrupt there after 'asm' keyword..? if yes than there must be a specific vector location for interrupt....you can't write inside the loop..
Reply With Quote
Reply

  Geeks Talk > Software Development > C and C++

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Regarding QTP keyword driven framework vjlaxmi QTP 10 05-19-2009 11:51 PM
GD-001 Among all the OOPS Language, which one is the best? Why it is the best? admin Group Discussions 19 12-14-2007 02:34 AM
Which script language we should know Geek_Guest LoadRunner 1 09-06-2007 12:10 PM
Events in C# language Geek_Guest C# 2 04-11-2007 04:09 AM
Language problem joel Interviews 3 01-06-2007 01:50 AM


All times are GMT -4. The time now is 09:27 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved