Results 1 to 2 of 2

Thread: ASM keyword in C language

  1. #1
    Geek_Guest
    Guest

    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


  2. #2
    Junior Member
    Join Date
    Jul 2007
    Answers
    18

    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..


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact